Converted Datasets of all languages to new Dataformat to support more tranformations and custom itemnames

This commit is contained in:
Wofsauge committed 2020-10-25 18:39:21 +01:00
1 parent dbb10a0de4
commit ba2516e969
9 files changed
+4615 -4570

No files matched your search

+813 -794
View File
File diff suppressed because it is too large. Load diff
+552 -552
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+805 -800
View File
File diff suppressed because it is too large. Load diff
+804 -800
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -846,6 +846,6 @@ EID.descriptions["ru"].transformations = {
"Супер Бездельник", -- 11 "Супер Бездельник", -- 11
"Книжный Червь", -- 12 "Книжный Червь", -- 12
"Малыш-Паук", -- 13 "Малыш-Паук", -- 13
"Топтун" -- 14 "Топтун", -- 14
"Топать" -- 15 "Топать", -- 15
} }
+821 -816
View File
File diff suppressed because it is too large. Load diff
+13 -5
View File
@@ -130,7 +130,7 @@ function EID:getDescriptionObj(objTable, objID)
description.Name = EID:getObjectName(objID, objTable) or objTable description.Name = EID:getObjectName(objID, objTable) or objTable
local legacyModdedDescription = EID:getLegacyModDescription(objTable, objID) 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 local legacyModdedTransformation = nil
if objTable == "collectibles" then 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)] local tableEntry = EID.descriptions[EIDConfig["Language"]][objType][tonumber(objID)] or EID.descriptions["en_us"][objType][tonumber(objID)]
if objType == "collectibles" then if objType == "collectibles" then
if EIDConfig["Language"]~="en_us" and #tableEntry==4 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 end
return EID.itemConfig:GetCollectible(objID).Name return EID.itemConfig:GetCollectible(objID).Name
elseif objType == "trinkets" then elseif objType == "trinkets" then
if EIDConfig["Language"]~="en_us" and #tableEntry==3 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 end
return EID.itemConfig:GetTrinket(objID).Name return EID.itemConfig:GetTrinket(objID).Name
elseif objType == "cards" then elseif objType == "cards" then
if EIDConfig["Language"]~="en_us" and #tableEntry==3 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 end
return EID.itemConfig:GetCard(objID).Name return EID.itemConfig:GetCard(objID).Name
elseif objType == "pills" then elseif objType == "pills" then
if EIDConfig["Language"]~="en_us" and #tableEntry==3 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 end
return EID.itemConfig:GetPillEffect(objID).Name return EID.itemConfig:GetPillEffect(objID).Name
elseif objType == "sacrifice" then elseif objType == "sacrifice" then
+2 -2
View File
@@ -26,11 +26,11 @@ require("mod_config_menu")
--languages --languages
require("descriptions.ab+.en_us") require("descriptions.ab+.en_us")
require("descriptions.ab+.en_us_detailed") require("descriptions.ab+.en_us_detailed")
require("descriptions.ab+.bul") require("descriptions.ab+.bul") -- WIP
require("descriptions.ab+.fr") require("descriptions.ab+.fr")
--require("descriptions.ab+.pl") -- WIP --require("descriptions.ab+.pl") -- WIP
require("descriptions.ab+.pt") require("descriptions.ab+.pt")
require("descriptions.ab+.ru") -- WIP require("descriptions.ab+.ru")
require("descriptions.ab+.spa") require("descriptions.ab+.spa")
require("eid_data") require("eid_data")