56 lines
2.9 KiB
Plaintext
56 lines
2.9 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 = [[
|
||
|
{
|
||
|
"Le Cépage Montmartre": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Moulin Rouge": {"type": "fixed", "value": 4, "clueSide": "back"},
|
||
|
"Montmartre": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Cimetière du Père-Lachaise": {"type": "fixed", "value": 4, "clueSide": "back"},
|
||
|
"Banks of the Seine": {"type": "fixed", "value": 4, "clueSide": "back"},
|
||
|
"Notre-Dame de Paris": {"type": "fixed", "value": 2, "clueSide": "back"},
|
||
|
"Champ de Mars": {"type": "fixed", "value": 2, "clueSide": "back"},
|
||
|
"Quartier Latin": {"type": "perPlayer", "value": 1, "clueSide": "back"},
|
||
|
"Eaves of Brocéliande": {"type": "perPlayer", "value": 1, "clueSide": "back"},
|
||
|
"Forest of Brocéliande": {"type": "perPlayer", "value": 1, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_65545c": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_400002": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_dbdb86": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_669711": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_8da7bf": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_833a39": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Forest of Brocéliande_5f1869": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Fontaine de Barenton": {"type": "perPlayer", "value": 5, "clueSide": "back"},
|
||
|
"The Heart of Brocéliande": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"Streets of München": {"type": "perPlayer", "value": 1, "clueSide": "back"},
|
||
|
"Ernst Schäfer's House": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"von Sebottendorf's Mansion": {"type": "perPlayer", "value": 2, "clueSide": "back"},
|
||
|
"von Sebottendorf's Cellar": {"type": "perPlayer", "value": 1, "clueSide": "back"},
|
||
|
"Sky": {"type": "perPlayer", "value": 1, "clueSide": "back"},
|
||
|
"Snow Gates": {"type": "perPlayer", "value": 1, "clueSide": "front"},
|
||
|
"Tibetan Village": {"type": "perPlayer", "value": 1, "clueSide": "front"},
|
||
|
"Tibetan Monastery": {"type": "perPlayer", "value": 2, "clueSide": "front"},
|
||
|
"Himalayan Mountains_1e21e5": {"type": "perPlayer", "value": 2, "clueSide": "front"},
|
||
|
"Himalayan Mountains": {"type": "perPlayer", "value": 1, "clueSide": "front"},
|
||
|
"Ritual Site": {"type": "fixed", "value": 0, "clueSide": "front"}
|
||
|
}
|
||
|
]]
|
||
|
|
||
|
LOCATIONS_DATA = JSON.decode(LOCATIONS_DATA_JSON)
|
||
|
|
||
|
function onload(save_state)
|
||
|
local playArea = getObjectFromGUID('721ba2')
|
||
|
playArea.call("updateLocations", {self.getGUID()})
|
||
|
end
|