Move investigator counter object to on-demand retrieval

This commit is contained in:
Buhallin 2022-11-24 13:38:29 -08:00
parent d4a29c3229
commit 34ddd85675
No known key found for this signature in database
GPG Key ID: DB3C362823852294

View File

@ -8,7 +8,7 @@ DEBUG = false
-- we use this to turn off collision handling until onLoad() is complete
COLLISION_ENABLED = false
local investigatorCounter = getObjectFromGUID('f182ee')
local INVESTIGATOR_COUNTER_GUID = "f182ee"
local clueData = {}
spawnedLocationGUIDs = {}
@ -123,5 +123,6 @@ function onCollisionEnter(collision_info)
end
function getInvestigatorCount()
local investigatorCounter = getObjectFromGUID('f182ee')
return investigatorCounter.getVar("val")
end