Added modular desc ignore list for languagepacks (e.g. Korean)
This commit is contained in:
1 parent
e913ae13d0
commit
04d07847ee
20 files changed
+66
-1
No files matched your search
@@ -2,6 +2,9 @@
|
||||
local languageCode = "bul"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "cs_cz"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "de"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
EID.descriptions[languageCode].ModularDescriptions = {
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "el_gr"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "en_us"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
EID.descriptions[languageCode].ModularDescriptions = {
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "fr"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "it"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "ja_jp"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
local languageCode = "ko_kr"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
local C_ID = "5.100."
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {
|
||||
[C_ID .. 120] = true, -- Odd Mushroom (Thin) this is okay but there is no item_data.lua for rgon (tears for rep -> firerate for rep+ -> tears for rgon) so adding this for now
|
||||
[C_ID .. 215] = true, -- Goat Head
|
||||
[C_ID .. 240] = true, -- Experiment Treatment
|
||||
[C_ID .. 499] = true, -- Eucharist
|
||||
[C_ID .. 600] = true, -- Eye Drops
|
||||
}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "pl"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "pt"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "pt_br"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "ro_ro"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "ru"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "spa"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
EID.descriptions[languageCode].ModularDescriptions = {
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "tr_tr"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "uk_ua"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "vi"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
local languageCode = "zh_cn"
|
||||
EID.descriptions[languageCode].AdditionalInformations = {}
|
||||
|
||||
-- List of description IDs to ignore for fully automated descriptions
|
||||
EID.descriptions[languageCode].IgnoreFullyAutomatedDescriptions = {}
|
||||
|
||||
---------- Modular Descriptions ----------
|
||||
-- Table containing basic sentences and templates used to generate basic descriptions
|
||||
|
||||
|
||||
@@ -641,7 +641,8 @@ function EID:getDescriptionObj(Type, Variant, SubType, entity, checkModifiers)
|
||||
description.Entity = entity or nil
|
||||
|
||||
local generatedModularDesc = false
|
||||
if EID.FullyAutomatedDescriptions[description.fullItemString] then
|
||||
local hasIgnoreModular = EID.descriptions[EID:getLanguage()].IgnoreFullyAutomatedDescriptions and EID.descriptions[EID:getLanguage()].IgnoreFullyAutomatedDescriptions[description.fullItemString]
|
||||
if EID.FullyAutomatedDescriptions[description.fullItemString] and not hasIgnoreModular then
|
||||
local success, modularDescription = pcall(EID.GenerateDescription, nil, description)
|
||||
if success and modularDescription and modularDescription ~= "" then
|
||||
description.Description = modularDescription
|
||||
|
||||
Reference in new issue
Block a user