dont remove custom data helper
This commit is contained in:
parent
6b3dd495d2
commit
a690d3daac
@ -165,6 +165,7 @@ function cleanUp()
|
||||
printToAll("Clean up started!", "Orange")
|
||||
printToAll("Resetting counters...", "White")
|
||||
|
||||
ignoreCustomDataHelper()
|
||||
getTrauma()
|
||||
updateCounters(DAMAGE_HORROR_GUIDS, RESET_VALUES, "Damage / Horror")
|
||||
updateCounters(RESOURCE_GUIDS, 5, "Resources")
|
||||
@ -227,6 +228,13 @@ function resetDoomCounter()
|
||||
end
|
||||
end
|
||||
|
||||
-- gets the GUID of a custom data helper (if present) and adds it to the ignore list
|
||||
function ignoreCustomDataHelper()
|
||||
local playArea = getObjectFromGUID("721ba2")
|
||||
local guid = playArea.getVar("custom_data_helper_guid")
|
||||
if guid then table.insert(IGNORE_GUIDS, guid) end
|
||||
end
|
||||
|
||||
-- read values for trauma from campaign log if enabled
|
||||
function getTrauma()
|
||||
RESET_VALUES = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user