Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
449d434803 | ||
|
|
521440a676 | ||
|
|
ce75ffbae9 |
No files matched your search
@@ -3146,14 +3146,16 @@ end
|
||||
|
||||
---Super simple table concatenation: https://www.tutorialspoint.com/concatenation-of-tables-in-lua-programming
|
||||
---@generic T
|
||||
---@param t1 T[]
|
||||
---@param t2 T[]
|
||||
---@param table1 T[]
|
||||
---@param table2 T[]
|
||||
---@return T[]
|
||||
function EID:ConcatTables(t1, t2)
|
||||
for i = 1, #t2 do
|
||||
t1[#t1 + 1] = t2[i]
|
||||
function EID:ConcatTables(table1, table2)
|
||||
if table1 == nil then table1 = {} end
|
||||
if table2 == nil then table2 = {} end
|
||||
for _, value in ipairs(table2) do
|
||||
table.insert(table1, value)
|
||||
end
|
||||
return t1
|
||||
return table1
|
||||
end
|
||||
|
||||
---Thing to fix find/replace pairs with hyphens (like "1-2") or pluses (like +1 Health) breaking because of special characters
|
||||
|
||||
@@ -371,6 +371,21 @@ function EID:CheckForTaintedPlayer()
|
||||
return false
|
||||
end
|
||||
|
||||
-- Check if we have any characters that can't have Red Health, to print additions to descs like Dead Cat
|
||||
function EID:CheckForNoRedHealthPlayer()
|
||||
if EID.InsideItemReminder then
|
||||
local player = EID.ItemReminderPlayerEntity
|
||||
return EID.CharacterToHeartType[player:GetPlayerType()] ~= "Red"
|
||||
else
|
||||
for _, player in ipairs(EID.coopAllPlayers) do
|
||||
if EID.CharacterToHeartType[player:GetPlayerType()] ~= "Red" then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
-- Check if we have characters with Schoolbag or a pocket active item
|
||||
function EID:CheckForMultipleActives(_, onlyChargeablePockets)
|
||||
if EID.InsideItemReminder then
|
||||
|
||||
@@ -11,8 +11,8 @@ EID.isRepentance = REPENTANCE or EID.isRepentancePlus -- REPENTANCE variable can
|
||||
require("eid_config")
|
||||
EID.Config = EID.UserConfig
|
||||
EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default!
|
||||
EID.ModVersion = 5.07
|
||||
EID.ModVersionCommit = "fc0c4e3"
|
||||
EID.ModVersion = 5.08
|
||||
EID.ModVersionCommit = "521440a"
|
||||
EID.DefaultConfig.Version = EID.Config.Version
|
||||
EID.isHidden = false
|
||||
EID.player = nil -- The primary Player Entity of Player 1
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ There are multiple Versions of the mod, depending on which DLCs you have install
|
||||
[img]https://i.imgur.com/jrdGbna.png[/img]
|
||||
[url=https://github.com/wofsauge/External-Item-Descriptions/blob/master/CREDITS.md]Check out the credits here[/url]
|
||||
</description>
|
||||
<version>5.7</version>
|
||||
<version>5.8</version>
|
||||
<visibility>Public</visibility>
|
||||
<tag id="Lua"/>
|
||||
<tag id="Items"/>
|
||||
|
||||
Reference in new issue
Block a user