Temporarily fixed item names using the variable name as their name, instead of the localization
This commit is contained in:
1 parent
09dcd44928
commit
17f73f4bf2
3 files changed
+12
-7
No files matched your search
+8
-4
@@ -436,14 +436,18 @@ function EID:getObjectName(Type, Variant, SubType)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if tableName == "collectibles" then
|
if tableName == "collectibles" then
|
||||||
return name or EID.itemConfig:GetCollectible(SubType).Name
|
local vanillaName = EID.itemConfig:GetCollectible(SubType).Name
|
||||||
|
return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName
|
||||||
elseif tableName == "trinkets" then
|
elseif tableName == "trinkets" then
|
||||||
return name or EID.itemConfig:GetTrinket(SubType).Name
|
local vanillaName = EID.itemConfig:GetTrinket(SubType).Name
|
||||||
|
return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName
|
||||||
elseif tableName == "cards" then
|
elseif tableName == "cards" then
|
||||||
return name or EID.itemConfig:GetCard(SubType).Name
|
local vanillaName = EID.itemConfig:GetCard(SubType).Name
|
||||||
|
return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName
|
||||||
elseif tableName == "pills" or tableName == "horsepills" then
|
elseif tableName == "pills" or tableName == "horsepills" then
|
||||||
local adjustedSubtype = EID:getAdjustedSubtype(Type, Variant, SubType)
|
local adjustedSubtype = EID:getAdjustedSubtype(Type, Variant, SubType)
|
||||||
name = name or EID.itemConfig:GetPillEffect(adjustedSubtype - 1).Name
|
local vanillaName = EID.itemConfig:GetPillEffect(adjustedSubtype - 1).Name
|
||||||
|
name = name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName
|
||||||
return string.gsub(name,"I'm Excited!!!","I'm Excited!!") -- prevent markup trigger
|
return string.gsub(name,"I'm Excited!!!","I'm Excited!!") -- prevent markup trigger
|
||||||
elseif tableName == "sacrifice" then
|
elseif tableName == "sacrifice" then
|
||||||
return EID:getDescriptionEntry("sacrificeHeader")
|
return EID:getDescriptionEntry("sacrificeHeader")
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ local game = Game()
|
|||||||
require("eid_config")
|
require("eid_config")
|
||||||
EID.Config = EID.UserConfig
|
EID.Config = EID.UserConfig
|
||||||
EID.Config.Version = "3.2"
|
EID.Config.Version = "3.2"
|
||||||
EID.ModVersion = "3.89"
|
EID.ModVersion = "3.90"
|
||||||
EID.DefaultConfig.Version = EID.Config.Version
|
EID.DefaultConfig.Version = EID.Config.Version
|
||||||
EID.isHidden = false
|
EID.isHidden = false
|
||||||
EID.player = nil
|
EID.player = nil
|
||||||
@@ -591,6 +591,8 @@ local searchPartitions = EntityPartition.FAMILIAR + EntityPartition.ENEMY + Enti
|
|||||||
|
|
||||||
local function onRender(t)
|
local function onRender(t)
|
||||||
EID.isDisplaying = false
|
EID.isDisplaying = false
|
||||||
|
EID:setPlayer()
|
||||||
|
|
||||||
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) then
|
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) then
|
||||||
EID.isHidden = not EID.isHidden
|
EID.isHidden = not EID.isHidden
|
||||||
end
|
end
|
||||||
@@ -602,7 +604,6 @@ local function onRender(t)
|
|||||||
-- Disabling Achievement detection for now, since it breaks on some occasions since new patch
|
-- Disabling Achievement detection for now, since it breaks on some occasions since new patch
|
||||||
--renderAchievementInfo()
|
--renderAchievementInfo()
|
||||||
|
|
||||||
EID:setPlayer()
|
|
||||||
if EID.GameVersion == "ab+" then
|
if EID.GameVersion == "ab+" then
|
||||||
if EID.player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
if EID.player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
||||||
EID:addTextPosModifier("Schoolbag", Vector(0,30))
|
EID:addTextPosModifier("Schoolbag", Vector(0,30))
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
|
|||||||
- Jake for the sweet [b]German[/b] language pack
|
- Jake for the sweet [b]German[/b] language pack
|
||||||
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
||||||
</description>
|
</description>
|
||||||
<version>3.89</version>
|
<version>3.90</version>
|
||||||
<visibility>Public</visibility>
|
<visibility>Public</visibility>
|
||||||
<tag id="Lua"/>
|
<tag id="Lua"/>
|
||||||
<tag id="Items"/>
|
<tag id="Items"/>
|
||||||
|
|||||||
Reference in new issue
Block a user