39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
|
-- set true to enable debug logging
|
||
|
DEBUG = false
|
||
|
|
||
|
function log(message)
|
||
|
if DEBUG then
|
||
|
print(message)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
--[[
|
||
|
Known locations and clues. We check this to determine if we should
|
||
|
atttempt to spawn clues, first we look for <LOCATION_NAME>_<GUID> and if
|
||
|
we find nothing we look for <LOCATION_NAME>
|
||
|
format is [location_guid -> clueCount]
|
||
|
]]
|
||
|
LOCATIONS_DATA_JSON = [[
|
||
|
{
|
||
|
"Park Entrance": {"type": "perPlayer", "value": 2, "clueSide": "front"},
|
||
|
"Main Street, U.S.A.": {"type": "perPlayer", "value": 1, "clueSide": "front"},
|
||
|
"Park Entrance": {"type": "perPlayer", "value": 2, "clueSide": "front"},
|
||
|
"The Hub": {"type": "perPlayer", "value": 2, "clueSide": "front"},
|
||
|
"Adventureland": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"Frontierland": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"New Orleans Square": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"Critter Country": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"Galaxy's Edge": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"Fantasyland": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"Toontown": {"type": "fixed", "value": 3, "clueSide": "front"},
|
||
|
"Tomorrowland": {"type": "fixed", "value": 3, "clueSide": "front"}
|
||
|
}
|
||
|
]]
|
||
|
|
||
|
LOCATIONS_DATA = JSON.decode(LOCATIONS_DATA_JSON)
|
||
|
|
||
|
function onload(save_state)
|
||
|
local playArea = getObjectFromGUID('721ba2')
|
||
|
playArea.call("updateLocations", {self.getGUID()})
|
||
|
end
|