chore: remove stray print

This commit is contained in:
Kazhnuz 2021-04-11 15:18:47 +02:00
parent f700eaa8f8
commit dd841a4435
13 changed files with 6 additions and 16 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -209,7 +209,7 @@ function Game:getTimeString()
end
function Game:printTime()
print(self:getTimeString())
core.debug:print(self:getTimeString())
end
return Game

View file

@ -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)

View file

@ -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

View file

@ -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)

View file

@ -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()

View file

@ -32,7 +32,6 @@ function StepParent:getStepCoordinate()
end
function StepParent:finish()
print("action finished")
self.choregraphy:endStep()
end

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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