Converted Datasets of all languages to new Dataformat to support more tranformations and custom itemnames
This commit is contained in:
1 parent
dbb10a0de4
commit
ba2516e969
9 files changed
+4615
-4570
No files matched your search
+813
-794
File diff suppressed because it is too large.
Load diff
+552
-552
File diff suppressed because it is too large.
Load diff
+803
-799
File diff suppressed because it is too large.
Load diff
+805
-800
File diff suppressed because it is too large.
Load diff
+804
-800
File diff suppressed because it is too large.
Load diff
@@ -846,6 +846,6 @@ EID.descriptions["ru"].transformations = {
|
||||
"Супер Бездельник", -- 11
|
||||
"Книжный Червь", -- 12
|
||||
"Малыш-Паук", -- 13
|
||||
"Топтун" -- 14
|
||||
"Топать" -- 15
|
||||
"Топтун", -- 14
|
||||
"Топать", -- 15
|
||||
}
|
||||
+821
-816
File diff suppressed because it is too large.
Load diff
+13
-5
@@ -130,7 +130,7 @@ function EID:getDescriptionObj(objTable, objID)
|
||||
description.Name = EID:getObjectName(objID, objTable) or objTable
|
||||
|
||||
local legacyModdedDescription = EID:getLegacyModDescription(objTable, objID)
|
||||
description.Description = legacyModdedDescription or tableEntry[4] or tableEntry[3] or tableEntry[2] or "MISSING DESCRIPTION"
|
||||
description.Description = legacyModdedDescription or tableEntry[4] or "MISSING DESCRIPTION"
|
||||
|
||||
local legacyModdedTransformation = nil
|
||||
if objTable == "collectibles" then
|
||||
@@ -155,22 +155,30 @@ function EID:getObjectName(objID, objType)
|
||||
local tableEntry = EID.descriptions[EIDConfig["Language"]][objType][tonumber(objID)] or EID.descriptions["en_us"][objType][tonumber(objID)]
|
||||
if objType == "collectibles" then
|
||||
if EIDConfig["Language"]~="en_us" and #tableEntry==4 then
|
||||
return tableEntry[3]
|
||||
if tableEntry[3] ~= nil and tableEntry[3] ~= "" then
|
||||
return tableEntry[3]
|
||||
end
|
||||
end
|
||||
return EID.itemConfig:GetCollectible(objID).Name
|
||||
elseif objType == "trinkets" then
|
||||
if EIDConfig["Language"]~="en_us" and #tableEntry==3 then
|
||||
return tableEntry[2]
|
||||
if tableEntry[3] ~= nil and tableEntry[3] ~= "" then
|
||||
return tableEntry[3]
|
||||
end
|
||||
end
|
||||
return EID.itemConfig:GetTrinket(objID).Name
|
||||
elseif objType == "cards" then
|
||||
if EIDConfig["Language"]~="en_us" and #tableEntry==3 then
|
||||
return tableEntry[2]
|
||||
if tableEntry[3] ~= nil and tableEntry[3] ~= "" then
|
||||
return tableEntry[3]
|
||||
end
|
||||
end
|
||||
return EID.itemConfig:GetCard(objID).Name
|
||||
elseif objType == "pills" then
|
||||
if EIDConfig["Language"]~="en_us" and #tableEntry==3 then
|
||||
return tableEntry[2]
|
||||
if tableEntry[3] ~= nil and tableEntry[3] ~= "" then
|
||||
return tableEntry[3]
|
||||
end
|
||||
end
|
||||
return EID.itemConfig:GetPillEffect(objID).Name
|
||||
elseif objType == "sacrifice" then
|
||||
|
||||
@@ -26,11 +26,11 @@ require("mod_config_menu")
|
||||
--languages
|
||||
require("descriptions.ab+.en_us")
|
||||
require("descriptions.ab+.en_us_detailed")
|
||||
require("descriptions.ab+.bul")
|
||||
require("descriptions.ab+.bul") -- WIP
|
||||
require("descriptions.ab+.fr")
|
||||
--require("descriptions.ab+.pl") -- WIP
|
||||
require("descriptions.ab+.pt")
|
||||
require("descriptions.ab+.ru") -- WIP
|
||||
require("descriptions.ab+.ru")
|
||||
require("descriptions.ab+.spa")
|
||||
|
||||
require("eid_data")
|
||||
|
||||
Reference in new issue
Block a user