Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
050b9f359d | ||
|
|
42f947e410 | ||
|
|
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
|
---Super simple table concatenation: https://www.tutorialspoint.com/concatenation-of-tables-in-lua-programming
|
||||||
---@generic T
|
---@generic T
|
||||||
---@param t1 T[]
|
---@param table1 T[]
|
||||||
---@param t2 T[]
|
---@param table2 T[]
|
||||||
---@return T[]
|
---@return T[]
|
||||||
function EID:ConcatTables(t1, t2)
|
function EID:ConcatTables(table1, table2)
|
||||||
for i = 1, #t2 do
|
if table1 == nil then table1 = {} end
|
||||||
t1[#t1 + 1] = t2[i]
|
if table2 == nil then table2 = {} end
|
||||||
|
for _, value in ipairs(table2) do
|
||||||
|
table.insert(table1, value)
|
||||||
end
|
end
|
||||||
return t1
|
return table1
|
||||||
end
|
end
|
||||||
|
|
||||||
---Thing to fix find/replace pairs with hyphens (like "1-2") or pluses (like +1 Health) breaking because of special characters
|
---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
|
return false
|
||||||
end
|
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
|
-- Check if we have characters with Schoolbag or a pocket active item
|
||||||
function EID:CheckForMultipleActives(_, onlyChargeablePockets)
|
function EID:CheckForMultipleActives(_, onlyChargeablePockets)
|
||||||
if EID.InsideItemReminder then
|
if EID.InsideItemReminder then
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ EID.isRepentance = REPENTANCE or EID.isRepentancePlus -- REPENTANCE variable can
|
|||||||
require("eid_config")
|
require("eid_config")
|
||||||
EID.Config = EID.UserConfig
|
EID.Config = EID.UserConfig
|
||||||
EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default!
|
EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default!
|
||||||
EID.ModVersion = 5.07
|
EID.ModVersion = 5.09
|
||||||
EID.ModVersionCommit = "fc0c4e3"
|
EID.ModVersionCommit = "42f947e"
|
||||||
EID.DefaultConfig.Version = EID.Config.Version
|
EID.DefaultConfig.Version = EID.Config.Version
|
||||||
EID.isHidden = false
|
EID.isHidden = false
|
||||||
EID.player = nil -- The primary Player Entity of Player 1
|
EID.player = nil -- The primary Player Entity of Player 1
|
||||||
@@ -779,7 +779,7 @@ function EID:printBulletPoints(description, renderPos, ignoreBPConfig)
|
|||||||
local formatedLines = EID:fitTextToWidth(line, textboxWidth, EID.BreakUtf8CharsLanguage[EID:getLanguage()])
|
local formatedLines = EID:fitTextToWidth(line, textboxWidth, EID.BreakUtf8CharsLanguage[EID:getLanguage()])
|
||||||
local textColor = EID:getTextColor()
|
local textColor = EID:getTextColor()
|
||||||
|
|
||||||
local indentOffset = numIndentations * textOffset
|
local indentOffset = textOffset * numIndentations
|
||||||
for i, lineToPrint in ipairs(formatedLines) do
|
for i, lineToPrint in ipairs(formatedLines) do
|
||||||
-- render bulletpoint
|
-- render bulletpoint
|
||||||
if i == 1 then
|
if i == 1 then
|
||||||
|
|||||||
+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]
|
[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]
|
[url=https://github.com/wofsauge/External-Item-Descriptions/blob/master/CREDITS.md]Check out the credits here[/url]
|
||||||
</description>
|
</description>
|
||||||
<version>5.7</version>
|
<version>5.9</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