fixing onLoad bug
This commit is contained in:
parent
7f9d70aa56
commit
510588c74c
@ -9,15 +9,7 @@ DEBUG = false
|
|||||||
COLLISION_ENABLED = false
|
COLLISION_ENABLED = false
|
||||||
|
|
||||||
local COUNTER = getObjectFromGUID('f182ee')
|
local COUNTER = getObjectFromGUID('f182ee')
|
||||||
local TOKEN_DATA = Global.getTable('TOKEN_DATA')
|
local clueData = {}
|
||||||
local clueData = {
|
|
||||||
thickness = 0.1,
|
|
||||||
stackable = true,
|
|
||||||
type = 2,
|
|
||||||
image = TOKEN_DATA.clue.image,
|
|
||||||
image_bottom = TOKEN_DATA.doom.image
|
|
||||||
}
|
|
||||||
|
|
||||||
spawnedLocationGUIDs = {}
|
spawnedLocationGUIDs = {}
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
@ -30,6 +22,15 @@ function onLoad(save_state)
|
|||||||
-- records locations we have spawned clues for
|
-- records locations we have spawned clues for
|
||||||
spawnedLocationGUIDs = JSON.decode(save_state) or {}
|
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')
|
local dataHelper = getObjectFromGUID('708279')
|
||||||
LOCATIONS = dataHelper.getTable('LOCATIONS_DATA')
|
LOCATIONS = dataHelper.getTable('LOCATIONS_DATA')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user