Added Repentance language pack for Russian language by Sekaz
This commit is contained in:
1 parent
e922cdc74d
commit
751a1d20eb
8 files changed
+564
-38
No files matched your search
+7
-19
@@ -204,7 +204,7 @@ end
|
||||
|
||||
-- function to turn entity type names into actual ingame ID.Variant pairs
|
||||
function EID:getIDVariantString(typeName)
|
||||
if typeName == "collectible" or typeName == "collectibles" or typeName == "birthright" then return "5.100"
|
||||
if typeName == "collectible" or typeName == "collectibles" then return "5.100"
|
||||
elseif typeName == "trinket" or typeName == "trinkets" then return "5.350"
|
||||
elseif typeName == "card" or typeName == "cards" then return "5.300"
|
||||
elseif typeName == "pill" or typeName == "pills" or typeName == "horsepills" or typeName == "horsepill" then return "5.70"
|
||||
@@ -217,12 +217,7 @@ end
|
||||
-- function to turn entity typ and variants into their EID table-name
|
||||
function EID:getTableName(Type, Variant, SubType)
|
||||
local idString = Type.."."..Variant
|
||||
if idString == "5.100" then
|
||||
if SubType == 619 then
|
||||
return "birthright"
|
||||
else
|
||||
return "collectibles"
|
||||
end
|
||||
if idString == "5.100" then return "collectibles"
|
||||
elseif idString == "5.350" then return "trinkets"
|
||||
elseif idString == "5.300" then return "cards"
|
||||
elseif idString == "5.70" then
|
||||
@@ -307,7 +302,7 @@ function EID:getDescriptionObj(Type, Variant, SubType)
|
||||
description.Name = EID:getObjectName(Type, Variant, description.ID)
|
||||
|
||||
local tableEntry = EID:getDescriptionData(Type, Variant, description.ID)
|
||||
description.Description =tableEntry and tableEntry[3] or EID:getXMLDescription(Type, Variant, description.ID)
|
||||
description.Description = tableEntry and tableEntry[3] or EID:getXMLDescription(Type, Variant, description.ID)
|
||||
|
||||
description.Transformation = EID:getTransformation(Type, Variant, description.ID)
|
||||
|
||||
@@ -345,9 +340,6 @@ function EID:getDescriptionData(Type, Variant, SubType)
|
||||
local moddedDesc = EID.descriptions[EID.Config["Language"]].custom[fullString.."."..SubType] or
|
||||
EID.descriptions["en_us"].custom[fullString.."."..SubType] or nil
|
||||
local tableName = EID:getTableName(Type, Variant, SubType)
|
||||
if tableName == "birthright" then
|
||||
SubType = Isaac.GetPlayer(0).SubType + 1
|
||||
end
|
||||
local legacyModdedDescription = EID:getLegacyModDescription(Type, Variant, SubType)
|
||||
local defaultDesc = EID.descriptions[EID.Config["Language"]][tableName][SubType] or EID.descriptions["en_us"][tableName][SubType] or nil
|
||||
|
||||
@@ -409,7 +401,7 @@ function EID:getObjectName(Type, Variant, SubType)
|
||||
name = tableEntry[2]
|
||||
end
|
||||
end
|
||||
if tableName == "collectibles" or tableName == "birthright" then
|
||||
if tableName == "collectibles" then
|
||||
return name or EID.itemConfig:GetCollectible(SubType).Name
|
||||
elseif tableName == "trinkets" then
|
||||
return name or EID.itemConfig:GetTrinket(SubType).Name
|
||||
@@ -432,7 +424,7 @@ end
|
||||
function EID:getXMLDescription(Type, Variant, SubType)
|
||||
local tableName = EID:getTableName(Type, Variant, SubType)
|
||||
local desc= nil
|
||||
if tableName == "collectibles" or tableName == "birthright" then
|
||||
if tableName == "collectibles" then
|
||||
desc = EID.itemConfig:GetCollectible(SubType).Description
|
||||
elseif tableName == "trinkets" then
|
||||
desc = EID.itemConfig:GetTrinket(SubType).Description
|
||||
@@ -701,13 +693,9 @@ function EID:interpolateColors(kColor1, kColor2, fraction)
|
||||
return t
|
||||
end
|
||||
|
||||
function EID:updateDescriptionsViaTable(changeTable, tableToUpdate, clearNames)
|
||||
function EID:updateDescriptionsViaTable(changeTable, tableToUpdate)
|
||||
for k,v in pairs(changeTable) do
|
||||
if clearNames then
|
||||
tableToUpdate[k] = {""..k,"",v[3]}
|
||||
else
|
||||
tableToUpdate[k] = v
|
||||
end
|
||||
tableToUpdate[k] = v
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user