Merge pull request #4 from Buurazu/Buurazu-patch-1

Fix incorrect pill names on en_us_detailed
This commit is contained in:
Buurazu authored and GitHub committed 2021-11-23 00:56:55 -05:00
commit ba745ab8b2
1 file changed
+1 -1
+1 -1
View File
@@ -448,7 +448,7 @@ function EID:getObjectName(Type, Variant, SubType)
elseif tableName == "pills" or tableName == "horsepills" then
local adjustedSubtype = EID:getAdjustedSubtype(Type, Variant, SubType)
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
name = name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][adjustedSubtype][2] or vanillaName
return string.gsub(name,"I'm Excited!!!","I'm Excited!!") -- prevent markup trigger
elseif tableName == "sacrifice" then
return EID:getDescriptionEntry("sacrificeHeader")