-- 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 _ and if we find nothing we look for 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