From 445048531dfde2545da5e60187391df1cc1f943b Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Wed, 7 Jun 2023 18:20:33 +0200 Subject: [PATCH] Removed print spam --- main.lua | 9 +++++++-- metadata.xml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index beace12..6d8b7c5 100644 --- a/main.lua +++ b/main.lua @@ -4,6 +4,7 @@ local math = require("math") mod.print = Isaac.ConsoleOutput mod.game = Game() local save = include("save"):new() +local DEBUG = false mod.font = Font() mod.font:Load("font/terminus.fnt") @@ -61,7 +62,9 @@ function mod:update() if player:GetCollectibleNum(data._deadgodlastid)>data._deadgodlastcount then -- Have it on me -- Then I just picked it up, yay mod.registerTouched(data._deadgodlastid) - mod.print("> "..tostring(data._deadgodlastid).."\n") + if DEBUG then + mod.print("> "..tostring(data._deadgodlastid).."\n") + end data._deadgodlastid = 0 data._deadgodlastcount = 0 end end @@ -88,7 +91,9 @@ end function mod:newrun() if mod:HasData() then local data = mod:LoadData() - mod.print(data.."\n") + if DEBUG then + mod.print(data.."\n") + end save:load(data) local c = 0 for _,v in ipairs(save.seen) do diff --git a/metadata.xml b/metadata.xml index 449e2cf..1eca284 100644 --- a/metadata.xml +++ b/metadata.xml @@ -17,7 +17,7 @@ There's however a limitation: since (to my knowledge) there's no way to get info Anyway, I hope that this mod will be useful to someone :) (Source code is available at https://forge.chapril.org/ayte/DeadGodHelper) - 1.5 + 1.7 Public