Health Up modifier for non-red characters + misc (#710)
* Health up / different effect modifiers
* ClosestPlayerTo, move utility functions
* ClosestPlayer adds to DifferentEffectPlayers table
* More data tables for Health Ups
* useless Lost items, comment the health mod atm
* HealingRed, RedToX
* HealingRed added
* Moving Pluralize
* oops
* Move Pluralize
* Move Pluralize
* allow choosing the position of modifiers in the table
* default layer to 0
* Changes to no red char conditions
* Support healing items in the modifier
* tweaks to health up data
* Support {1} in Result Header
* {1} in ResultHeader
* Tweak binge eater wording
* reword comment
This commit is contained in:
1 parent
9d8a2ae730
commit
e271302f69
29 files changed
+355
-230
No files matched your search
@@ -424,18 +424,22 @@ end
|
||||
|
||||
-- Adds a formatted "Result" text to the item name
|
||||
function EID:ItemReminderAddResultHeaderSuffix(descObj, newName)
|
||||
local resultHeader = EID:getDescriptionEntry("ItemReminder", "ResultHeader")
|
||||
if not string.find(resultHeader, "{1}") then resultHeader = "{1}" .. resultHeader end
|
||||
if newName then
|
||||
local iconString = EID:GetIconStringByDescriptionObject(descObj)
|
||||
descObj.Name = newName ..
|
||||
" (" .. iconString .. " " .. descObj.Name .. EID:getDescriptionEntry("ItemReminder", "ResultHeader") .. ")"
|
||||
" (" .. iconString .. " " .. EID:ReplaceVariableStr(resultHeader, descObj.Name) .. ")"
|
||||
else
|
||||
descObj.Name = descObj.Name .. EID:getDescriptionEntry("ItemReminder", "ResultHeader")
|
||||
descObj.Name = descObj.Name .. EID:ReplaceVariableStr(resultHeader, descObj.Name)
|
||||
end
|
||||
end
|
||||
-- Adds a formatted "Result" text appended to the item description
|
||||
function EID:ItemReminderAddResultAppend(descObj, newText)
|
||||
local iconString = EID:GetIconStringByDescriptionObject(descObj)
|
||||
descObj.Description = descObj.Description .. "#" .. iconString .. " {{ColorObjName}}" .. descObj.Name .. EID:getDescriptionEntry("ItemReminder", "ResultHeader") .. "#" .. newText
|
||||
local resultHeader = EID:getDescriptionEntry("ItemReminder", "ResultHeader")
|
||||
if not string.find(resultHeader, "{1}") then resultHeader = "{1}" .. resultHeader end
|
||||
descObj.Description = descObj.Description .. "#" .. iconString .. " {{ColorObjName}}" .. EID:ReplaceVariableStr(resultHeader, descObj.Name) .. "#" .. newText
|
||||
end
|
||||
-- Helper function for modifiers that want to replace the description in the overview, but append to the description otherwise
|
||||
function EID:ItemReminderAddResult(descObj, newText, inOverview)
|
||||
|
||||
Reference in new issue
Block a user