diff --git a/src/core/PlayArea.ttslua b/src/core/PlayArea.ttslua index 60f175fd..2ad7fdd3 100644 --- a/src/core/PlayArea.ttslua +++ b/src/core/PlayArea.ttslua @@ -9,15 +9,7 @@ DEBUG = false COLLISION_ENABLED = false local COUNTER = getObjectFromGUID('f182ee') -local TOKEN_DATA = Global.getTable('TOKEN_DATA') -local clueData = { - thickness = 0.1, - stackable = true, - type = 2, - image = TOKEN_DATA.clue.image, - image_bottom = TOKEN_DATA.doom.image -} - +local clueData = {} spawnedLocationGUIDs = {} --------------------------------------------------------- @@ -30,6 +22,15 @@ function onLoad(save_state) -- records locations we have spawned clues for spawnedLocationGUIDs = JSON.decode(save_state) or {} + local TOKEN_DATA = Global.getTable('TOKEN_DATA') + clueData = { + thickness = 0.1, + stackable = true, + type = 2, + image = TOKEN_DATA.clue.image, + image_bottom = TOKEN_DATA.doom.image + } + local dataHelper = getObjectFromGUID('708279') LOCATIONS = dataHelper.getTable('LOCATIONS_DATA')