removal of log function overrides
This commit is contained in:
parent
df32b9942d
commit
edf86b856a
@ -1,12 +1,3 @@
|
|||||||
-- 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
|
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
|
atttempt to spawn clues, first we look for <LOCATION_NAME>_<GUID> and if
|
||||||
|
@ -1,12 +1,3 @@
|
|||||||
-- set true to enable debug logging
|
|
||||||
DEBUG = false
|
|
||||||
|
|
||||||
function log(message)
|
|
||||||
if DEBUG then
|
|
||||||
print(message)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- data for difficulty selector scripts to set up chaos bag
|
-- data for difficulty selector scripts to set up chaos bag
|
||||||
modeData = {
|
modeData = {
|
||||||
['Core Set'] = {
|
['Core Set'] = {
|
||||||
@ -493,13 +484,11 @@ modeData = {
|
|||||||
|
|
||||||
function onSave()
|
function onSave()
|
||||||
local globalState = JSON.encode(SPAWNED_PLAYER_CARD_GUIDS)
|
local globalState = JSON.encode(SPAWNED_PLAYER_CARD_GUIDS)
|
||||||
log('saving global state: ' .. globalState)
|
|
||||||
return globalState
|
return globalState
|
||||||
end
|
end
|
||||||
|
|
||||||
function onLoad(save_state)
|
function onLoad(save_state)
|
||||||
if save_state ~= '' then
|
if save_state ~= '' then
|
||||||
log('loading global state: ' .. save_state)
|
|
||||||
SPAWNED_PLAYER_CARD_GUIDS = JSON.decode(save_state)
|
SPAWNED_PLAYER_CARD_GUIDS = JSON.decode(save_state)
|
||||||
else
|
else
|
||||||
SPAWNED_PLAYER_CARD_GUIDS = {}
|
SPAWNED_PLAYER_CARD_GUIDS = {}
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
-- general setup
|
-- general setup
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
-- set true to enable debug logging
|
|
||||||
local DEBUG = false
|
|
||||||
|
|
||||||
-- Location connection directional options
|
-- Location connection directional options
|
||||||
local BIDIRECTIONAL = 0
|
local BIDIRECTIONAL = 0
|
||||||
local ONE_WAY = 1
|
local ONE_WAY = 1
|
||||||
@ -78,14 +75,10 @@ function onLoad(saveState)
|
|||||||
locations = save.trackedLocations or { }
|
locations = save.trackedLocations or { }
|
||||||
currentScenario = save.currentScenario
|
currentScenario = save.currentScenario
|
||||||
|
|
||||||
self.interactable = DEBUG
|
self.interactable = false
|
||||||
Wait.time(function() collisionEnabled = true end, 1)
|
Wait.time(function() collisionEnabled = true end, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
function log(message)
|
|
||||||
if DEBUG then print(message) end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Called by Custom Data Helpers to push their location data into the Data Helper. This adds the
|
-- Called by Custom Data Helpers to push their location data into the Data Helper. This adds the
|
||||||
-- data to the local token manager instance.
|
-- data to the local token manager instance.
|
||||||
---@param args Table Single-value array holding the GUID of the Custom Data Helper making the call
|
---@param args Table Single-value array holding the GUID of the Custom Data Helper making the call
|
||||||
|
Loading…
Reference in New Issue
Block a user