From edf86b856aeae4662d6f7a46d02e9031e5561e92 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 26 Sep 2023 15:40:29 +0200 Subject: [PATCH] removal of log function overrides --- src/core/CustomDataHelper.ttslua | 9 --------- src/core/DataHelper.ttslua | 11 ----------- src/core/PlayArea.ttslua | 9 +-------- 3 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/core/CustomDataHelper.ttslua b/src/core/CustomDataHelper.ttslua index 63742976..22bc3096 100644 --- a/src/core/CustomDataHelper.ttslua +++ b/src/core/CustomDataHelper.ttslua @@ -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 _ and if diff --git a/src/core/DataHelper.ttslua b/src/core/DataHelper.ttslua index bbb584bf..5845b09b 100644 --- a/src/core/DataHelper.ttslua +++ b/src/core/DataHelper.ttslua @@ -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 = {} diff --git a/src/core/PlayArea.ttslua b/src/core/PlayArea.ttslua index 54e09d5a..69cbba2c 100644 --- a/src/core/PlayArea.ttslua +++ b/src/core/PlayArea.ttslua @@ -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