ah_sce_unpacked/unpacked/Custom_Model_Bag The Side Missions 2d16e1/Custom_Model_Bag The Grand Oak Hotel 5ccf55/Custom_Model Custom Data Helper b3a042.ttslua
2021-01-02 23:31:19 -05:00

36 lines
1.2 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 = [[
{
"Lounge ": {"type": "fixed", "value": 3, "clueSide": "back"},
"Luxury Suite": {"type": "perPlayer", "value": 1, "clueSide": "back"},
"Your Room": {"type": "fixed", "value": 1, "clueSide": "back"},
"Hotel Room_580dd8": {"type": "fixed", "value": 2, "clueSide": "back"},
"Hotel Room_1832f9": {"type": "fixed", "value": 5, "clueSide": "back"},
"Hotel Bar": {"type": "perPlayer", "value": 2, "clueSide": "back"},
"Workshop": {"type": "fixed", "value": 1, "clueSide": "back"},
"Boiler Room": {"type": "fixed", "value": 1, "clueSide": "back"},
"Janitor's Office": {"type": "fixed", "value": 2, "clueSide": "back"},
"Storage Room": {"type": "perPlayer", "value": 2, "clueSide": "back"}
}
]]
LOCATIONS_DATA = JSON.decode(LOCATIONS_DATA_JSON)
function onload(save_state)
local playArea = getObjectFromGUID('721ba2')
playArea.call("updateLocations", {self.getGUID()})
end