Merge pull request #381 from argonui/log-override

Removal of log function overrides
This commit is contained in:
Entrox-Licher 2023-09-26 10:28:15 -04:00 committed by GitHub
commit 27d83f3207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 28 deletions

View File

@ -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
atttempt to spawn clues, first we look for <LOCATION_NAME>_<GUID> and if

View File

@ -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
modeData = {
['Core Set'] = {
@ -493,13 +484,11 @@ modeData = {
function onSave()
local globalState = JSON.encode(SPAWNED_PLAYER_CARD_GUIDS)
log('saving global state: ' .. globalState)
return globalState
end
function onLoad(save_state)
if save_state ~= '' then
log('loading global state: ' .. save_state)
SPAWNED_PLAYER_CARD_GUIDS = JSON.decode(save_state)
else
SPAWNED_PLAYER_CARD_GUIDS = {}

View File

@ -2,9 +2,6 @@
-- general setup
---------------------------------------------------------
-- set true to enable debug logging
local DEBUG = false
-- Location connection directional options
local BIDIRECTIONAL = 0
local ONE_WAY = 1
@ -78,14 +75,10 @@ function onLoad(saveState)
locations = save.trackedLocations or { }
currentScenario = save.currentScenario
self.interactable = DEBUG
self.interactable = false
Wait.time(function() collisionEnabled = true end, 1)
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
-- data to the local token manager instance.
---@param args Table Single-value array holding the GUID of the Custom Data Helper making the call