ah_sce_unpacked/unpacked/Custom_Model_Bag Leaked Items 42cd6e/Bag Edge of the Earth Investigators ff1dee/Custom_Model_Bag Edge of the Earth Investigators a32f43/Custom_Model EotE Data Helper be458f.ttslua
2021-09-03 13:52:12 -04:00

78 lines
2.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 = [[
{
"San Francisco": {"type": "fixed", "value": 1, "clueSide": "back"},
" Arkham": {"type": "perPlayer", "value": 1, "clueSide": "back"},
"Buenos Aires": {"type": "fixed", "value": 2, "clueSide": "back"},
" London": {"type": "perPlayer", "value": 2, "clueSide": "front"},
"Rome": {"type": "perPlayer", "value": 3, "clueSide": "front"},
"Istanbul": {"type": "perPlayer", "value": 4, "clueSide": "front"},
"Tokyo_123abc": {"type": "perPlayer", "value": 0, "clueSide": "back"},
"Tokyo_456efg": {"type": "perPlayer", "value": 4, "clueSide": "back"},
"Tokyo": {"type": "fixed", "value": 2, "clueSide": "back"},
"Shanghai_123": {"type": "fixed", "value": 12, "clueSide": "front"},
"Sydney": {"type": "fixed", "value": 0, "clueSide": "front"}
}
]]
PLAYER_CARD_DATA_JSON = [[
{
"Blur (1)": {
"tokenType": "resource",
"tokenCount": 3
},
"Blur (4)": {
"tokenType": "resource",
"tokenCount": 4
},
"Brand of Cthugha (1)": {
"tokenType": "resource",
"tokenCount": 6
},
"Eon Chart (4)": {
"tokenType": "resource",
"tokenCount": 3
},
"Divination (1)": {
"tokenType": "resource",
"tokenCount": 4
},
"Schoffner's Catalogue": {
"tokenType": "resource",
"tokenCount": 5
}
}
]]
LOCATIONS_DATA = JSON.decode(LOCATIONS_DATA_JSON)
PLAYER_CARD_DATA = JSON.decode(PLAYER_CARD_DATA_JSON)
function onload(save_state)
-- local playArea = getObjectFromGUID('721ba2')
-- playArea.call("updateLocations", {self.getGUID()})
local playerMatWhite = getObjectFromGUID('8b081b')
playerMatWhite.call("updatePlayerCards", {self.getGUID()})
local playerMatOrange = getObjectFromGUID('bd0ff4')
playerMatOrange.call("updatePlayerCards", {self.getGUID()})
local playerMatGreen = getObjectFromGUID('383d8b')
playerMatGreen.call("updatePlayerCards", {self.getGUID()})
local playerMatRed = getObjectFromGUID('0840d5')
playerMatRed.call("updatePlayerCards", {self.getGUID()})
-- local dataHelper = getObjectFromGUID('708279')
-- dataHelper.call("updateHiddenCards", {self.getGUID()})
end