From dd841a4435131d0457fc377039a918246fbb3f08 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 11 Apr 2021 15:18:47 +0200 Subject: [PATCH] chore: remove stray print --- sonic-radiance.love/core/modules/transitions/parent.lua | 1 - sonic-radiance.love/game/characters.lua | 6 +++--- sonic-radiance.love/game/events/event/dialogbox.lua | 1 - sonic-radiance.love/game/init.lua | 2 +- sonic-radiance.love/game/modules/world/parent.lua | 1 - .../scenes/battlesystem/controllers/ennemy.lua | 2 +- .../controllers/fighters/systems/actions/item.lua | 1 - .../controllers/fighters/systems/choregraphy/qte/parent.lua | 1 - .../fighters/systems/choregraphy/step/parent.lua | 1 - .../scenes/battlesystem/controllers/init.lua | 1 - sonic-radiance.love/scenes/battlesystem/utils.lua | 2 -- .../scenes/overworld/actors/player/actions.lua | 1 - sonic-radiance.love/scenes/overworld/map.lua | 2 +- 13 files changed, 6 insertions(+), 16 deletions(-) diff --git a/sonic-radiance.love/core/modules/transitions/parent.lua b/sonic-radiance.love/core/modules/transitions/parent.lua index 0115d1c..76f5083 100644 --- a/sonic-radiance.love/core/modules/transitions/parent.lua +++ b/sonic-radiance.love/core/modules/transitions/parent.lua @@ -2,7 +2,6 @@ local TransitionParent = Object:extend() local TweenManager = require "game.modules.tweenmanager" function TransitionParent:new(func, ox, oy, fadeOut, easeIn, easeOut, duration, wait) - print(func, ox, oy, fadeOut, easeIn, easeOut, duration) self.tween = TweenManager(self) self:loadResources() self.func = func diff --git a/sonic-radiance.love/game/characters.lua b/sonic-radiance.love/game/characters.lua index 49d4964..b63ea5e 100644 --- a/sonic-radiance.love/game/characters.lua +++ b/sonic-radiance.love/game/characters.lua @@ -164,14 +164,14 @@ end function CharacterManager:printCharacter(id) local character = self.list[id] - print(id .. ". " .. character.fullname) - print("Lvl " .. character.level .. " (" .. character.exp .. "/" .. character.exp_next .. " exp)") + core.debug:print(id .. ". " .. character.fullname) + core.debug:print("Lvl " .. character.level .. " (" .. character.exp .. "/" .. character.exp_next .. " exp)") end function CharacterManager:printTeam() for i,v in ipairs(self.team) do self:printCharacter(v) - print("-----") + core.debug:print("-----") end end diff --git a/sonic-radiance.love/game/events/event/dialogbox.lua b/sonic-radiance.love/game/events/event/dialogbox.lua index e3206fc..1681bd0 100644 --- a/sonic-radiance.love/game/events/event/dialogbox.lua +++ b/sonic-radiance.love/game/events/event/dialogbox.lua @@ -43,7 +43,6 @@ function DialogBox:addOptions() end function DialogBox:setOption(num) - print("option " .. num .. " chosen") self.events:addFlag(self.arguments.flag, num) self:finish() end diff --git a/sonic-radiance.love/game/init.lua b/sonic-radiance.love/game/init.lua index 4a16d8b..be22b3b 100644 --- a/sonic-radiance.love/game/init.lua +++ b/sonic-radiance.love/game/init.lua @@ -209,7 +209,7 @@ function Game:getTimeString() end function Game:printTime() - print(self:getTimeString()) + core.debug:print(self:getTimeString()) end return Game diff --git a/sonic-radiance.love/game/modules/world/parent.lua b/sonic-radiance.love/game/modules/world/parent.lua index 724f59d..5c45839 100644 --- a/sonic-radiance.love/game/modules/world/parent.lua +++ b/sonic-radiance.love/game/modules/world/parent.lua @@ -28,7 +28,6 @@ end function ParentWorld:addInvisibleWalls() local w, h = self:getDimensions() - print(w, h) self.obj.collisions["invisible"](self, 0, -16, 0, w, 16, 1000) self.obj.collisions["invisible"](self, 0, h, 0, w, 16, 1000) self.obj.collisions["invisible"](self, w, 0, 0, 16, h, 1000) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/ennemy.lua b/sonic-radiance.love/scenes/battlesystem/controllers/ennemy.lua index 9f3e094..ac70bc9 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/ennemy.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/ennemy.lua @@ -18,7 +18,7 @@ function EnnemyController:initVillains(battleData) elseif (ennData.type == "boss") then self:addBoss(ennData) else - print("unknown type " .. ennData.type) + core.debug:warning("unknown type " .. ennData.type) end end end diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/item.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/item.lua index 930b9b9..9837ac4 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/item.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/item.lua @@ -4,7 +4,6 @@ local EffectManager = require "game.loot.effectManager" function ItemAction:new(fighter, category, item) ItemAction.super.new(self, fighter) - print(item) self.category = category self.item = item self.itemdata = game.loot:getItemData(category, item) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/parent.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/parent.lua index 6fd3214..9bb8099 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/parent.lua @@ -62,7 +62,6 @@ function QteParent:fail() end function QteParent:finish(success) - print("action finished") self.choregraphy:endQte(success) if (self.isBlocking ~= nil) then self.isBlocking:finish() diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/parent.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/parent.lua index 40d91c1..0c204a4 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/parent.lua @@ -32,7 +32,6 @@ function StepParent:getStepCoordinate() end function StepParent:finish() - print("action finished") self.choregraphy:endStep() end diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/init.lua b/sonic-radiance.love/scenes/battlesystem/controllers/init.lua index 6007947..80af613 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/init.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/init.lua @@ -148,7 +148,6 @@ end function TurnController:startAction() core.debug:print("cbs/turns", "Starting action " .. self.turns.current) local nextAction = self.actionList[self.turns.current] - print(nextAction) local nextFighter = nextAction.fighter if (not nextFighter:canFight()) then -- On skipe le personnage s'il a été detruit diff --git a/sonic-radiance.love/scenes/battlesystem/utils.lua b/sonic-radiance.love/scenes/battlesystem/utils.lua index dc492a9..a21284c 100644 --- a/sonic-radiance.love/scenes/battlesystem/utils.lua +++ b/sonic-radiance.love/scenes/battlesystem/utils.lua @@ -11,8 +11,6 @@ function maputils.sortBattlers(a, b) local aspeed = astats.speed / (3 ^ (a.number-1)) local bspeed = bstats.speed / (3 ^ (b.number-1)) - print(a.fighter.name, a.number, aspeed, b.fighter.name, b.number, bspeed) - if (aspeed == bspeed) then if (a.fighter.isHero == b.fighter.isHero) then diff --git a/sonic-radiance.love/scenes/overworld/actors/player/actions.lua b/sonic-radiance.love/scenes/overworld/actors/player/actions.lua index 69af0fa..cc7869c 100644 --- a/sonic-radiance.love/scenes/overworld/actors/player/actions.lua +++ b/sonic-radiance.love/scenes/overworld/actors/player/actions.lua @@ -160,7 +160,6 @@ function PlayerActions:drawActionEffect() dy = 8 end local x, y = self.x + 8 - dx, self.y + 8 - self.z + dy - print(x, y) self.assets.sprites["punch"]:drawAnimation(x, y, math.rad(self.charsetManager.angle[self.charDir])) end end diff --git a/sonic-radiance.love/scenes/overworld/map.lua b/sonic-radiance.love/scenes/overworld/map.lua index 2768bfd..824f64b 100644 --- a/sonic-radiance.love/scenes/overworld/map.lua +++ b/sonic-radiance.love/scenes/overworld/map.lua @@ -50,7 +50,7 @@ function TiledMultiMap:loadMaps() end function TiledMultiMap:addMap(id, mapData) - print("Loading map " .. mapData.name) + core.debug:print("Loading map " .. mapData.name) local mapFile = mapFolder .. mapData.folder .. "/" .. mapData.map .. ".lua" local wrapper = StiWrapper(self, mapFile, mapData.x, mapData.y, false) wrapper.id = id