Temporarily fixed item names using the variable name as their name, instead of the localization

This commit is contained in:
Wofsauge committed 2021-11-12 00:51:59 +01:00
1 parent 09dcd44928
commit 17f73f4bf2
3 files changed
+12 -7

No files matched your search

+8 -4
View File
@@ -436,14 +436,18 @@ function EID:getObjectName(Type, Variant, SubType)
end
end
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
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
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
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
elseif tableName == "sacrifice" then
return EID:getDescriptionEntry("sacrificeHeader")
+3 -2
View File
@@ -9,7 +9,7 @@ local game = Game()
require("eid_config")
EID.Config = EID.UserConfig
EID.Config.Version = "3.2"
EID.ModVersion = "3.89"
EID.ModVersion = "3.90"
EID.DefaultConfig.Version = EID.Config.Version
EID.isHidden = false
EID.player = nil
@@ -591,6 +591,8 @@ local searchPartitions = EntityPartition.FAMILIAR + EntityPartition.ENEMY + Enti
local function onRender(t)
EID.isDisplaying = false
EID:setPlayer()
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) then
EID.isHidden = not EID.isHidden
end
@@ -602,7 +604,6 @@ local function onRender(t)
-- Disabling Achievement detection for now, since it breaks on some occasions since new patch
--renderAchievementInfo()
EID:setPlayer()
if EID.GameVersion == "ab+" then
if EID.player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
EID:addTextPosModifier("Schoolbag", Vector(0,30))
+1 -1
View File
@@ -90,7 +90,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
- 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
</description>
<version>3.89</version>
<version>3.90</version>
<visibility>Public</visibility>
<tag id="Lua"/>
<tag id="Items"/>