fixed references
This commit is contained in:
parent
7042fd9968
commit
77bb65bfa0
@ -30,8 +30,6 @@ local NOT_INTERACTABLE = {
|
|||||||
"975c39", -- vertical border right
|
"975c39", -- vertical border right
|
||||||
}
|
}
|
||||||
|
|
||||||
local guidHandler, DATA_HELPER
|
|
||||||
|
|
||||||
-- global variable for access
|
-- global variable for access
|
||||||
chaosTokens = {}
|
chaosTokens = {}
|
||||||
local chaosTokensLastMat = nil
|
local chaosTokensLastMat = nil
|
||||||
@ -150,7 +148,6 @@ function onLoad(savedData)
|
|||||||
if obj ~= nil then obj.interactable = false end
|
if obj ~= nil then obj.interactable = false end
|
||||||
end
|
end
|
||||||
|
|
||||||
DATA_HELPER = guidReferenceApi.getObjectByOwnerAndType("Mythos", "DataHelper")
|
|
||||||
resetChaosTokenStatTracker()
|
resetChaosTokenStatTracker()
|
||||||
getModVersion()
|
getModVersion()
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
@ -469,6 +466,7 @@ function fillContainer(args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function getDataValue(storage, key)
|
function getDataValue(storage, key)
|
||||||
|
local DATA_HELPER = guidReferenceApi.getObjectByOwnerAndType("Mythos", "DataHelper")
|
||||||
local data = DATA_HELPER.getTable(storage)
|
local data = DATA_HELPER.getTable(storage)
|
||||||
if data ~= nil then
|
if data ~= nil then
|
||||||
local value = data[key]
|
local value = data[key]
|
||||||
@ -1005,7 +1003,7 @@ function applyOptionPanelChange(id, state)
|
|||||||
optionPanel[id] = state
|
optionPanel[id] = state
|
||||||
|
|
||||||
-- update master clue counter
|
-- update master clue counter
|
||||||
local counter = guidHandler.call("getObjectByOwnerAndType", { owner = "Mythos", type = "MasterClueCounter" })
|
local counter = guidReferenceApi.getObjectByOwnerAndType("Mythos", "MasterClueCounter")
|
||||||
counter.setVar("useClickableCounters", state)
|
counter.setVar("useClickableCounters", state)
|
||||||
|
|
||||||
-- option: Play area snap tags
|
-- option: Play area snap tags
|
||||||
@ -1077,7 +1075,7 @@ end
|
|||||||
---@param position Table Desired position of the object
|
---@param position Table Desired position of the object
|
||||||
---@param rotation Table Desired rotation of the object (defaults to object's rotation)
|
---@param rotation Table Desired rotation of the object (defaults to object's rotation)
|
||||||
function spawnHelperObject(name, position, rotation)
|
function spawnHelperObject(name, position, rotation)
|
||||||
local sourceBag = guidHandler.call("getObjectByOwnerAndType", { owner = "Mythos", type = "OptionPanelSource" })
|
local sourceBag = guidReferenceApi.getObjectByOwnerAndType("Mythos","OptionPanelSource")
|
||||||
|
|
||||||
-- error handling for missing sourceBag
|
-- error handling for missing sourceBag
|
||||||
if not sourceBag then
|
if not sourceBag then
|
||||||
|
Loading…
Reference in New Issue
Block a user