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" local TweenManager = require "game.modules.tweenmanager"
function TransitionParent:new(func, ox, oy, fadeOut, easeIn, easeOut, duration, wait) function TransitionParent:new(func, ox, oy, fadeOut, easeIn, easeOut, duration, wait)
print(func, ox, oy, fadeOut, easeIn, easeOut, duration)
self.tween = TweenManager(self) self.tween = TweenManager(self)
self:loadResources() self:loadResources()
self.func = func self.func = func

View file

@ -164,14 +164,14 @@ end
function CharacterManager:printCharacter(id) function CharacterManager:printCharacter(id)
local character = self.list[id] local character = self.list[id]
print(id .. ". " .. character.fullname) core.debug:print(id .. ". " .. character.fullname)
print("Lvl " .. character.level .. " (" .. character.exp .. "/" .. character.exp_next .. " exp)") core.debug:print("Lvl " .. character.level .. " (" .. character.exp .. "/" .. character.exp_next .. " exp)")
end end
function CharacterManager:printTeam() function CharacterManager:printTeam()
for i,v in ipairs(self.team) do for i,v in ipairs(self.team) do
self:printCharacter(v) self:printCharacter(v)
print("-----") core.debug:print("-----")
end end
end end

View file

@ -43,7 +43,6 @@ function DialogBox:addOptions()
end end
function DialogBox:setOption(num) function DialogBox:setOption(num)
print("option " .. num .. " chosen")
self.events:addFlag(self.arguments.flag, num) self.events:addFlag(self.arguments.flag, num)
self:finish() self:finish()
end end

View file

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

View file

@ -28,7 +28,6 @@ end
function ParentWorld:addInvisibleWalls() function ParentWorld:addInvisibleWalls()
local w, h = self:getDimensions() 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, -16, 0, w, 16, 1000)
self.obj.collisions["invisible"](self, 0, h, 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) 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 elseif (ennData.type == "boss") then
self:addBoss(ennData) self:addBoss(ennData)
else else
print("unknown type " .. ennData.type) core.debug:warning("unknown type " .. ennData.type)
end end
end end
end end

View file

@ -4,7 +4,6 @@ local EffectManager = require "game.loot.effectManager"
function ItemAction:new(fighter, category, item) function ItemAction:new(fighter, category, item)
ItemAction.super.new(self, fighter) ItemAction.super.new(self, fighter)
print(item)
self.category = category self.category = category
self.item = item self.item = item
self.itemdata = game.loot:getItemData(category, item) self.itemdata = game.loot:getItemData(category, item)

View file

@ -62,7 +62,6 @@ function QteParent:fail()
end end
function QteParent:finish(success) function QteParent:finish(success)
print("action finished")
self.choregraphy:endQte(success) self.choregraphy:endQte(success)
if (self.isBlocking ~= nil) then if (self.isBlocking ~= nil) then
self.isBlocking:finish() self.isBlocking:finish()

View file

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

View file

@ -148,7 +148,6 @@ end
function TurnController:startAction() function TurnController:startAction()
core.debug:print("cbs/turns", "Starting action " .. self.turns.current) core.debug:print("cbs/turns", "Starting action " .. self.turns.current)
local nextAction = self.actionList[self.turns.current] local nextAction = self.actionList[self.turns.current]
print(nextAction)
local nextFighter = nextAction.fighter local nextFighter = nextAction.fighter
if (not nextFighter:canFight()) then if (not nextFighter:canFight()) then
-- On skipe le personnage s'il a été detruit -- 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 aspeed = astats.speed / (3 ^ (a.number-1))
local bspeed = bstats.speed / (3 ^ (b.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 (aspeed == bspeed) then
if (a.fighter.isHero == b.fighter.isHero) then if (a.fighter.isHero == b.fighter.isHero) then

View file

@ -160,7 +160,6 @@ function PlayerActions:drawActionEffect()
dy = 8 dy = 8
end end
local x, y = self.x + 8 - dx, self.y + 8 - self.z + dy 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])) self.assets.sprites["punch"]:drawAnimation(x, y, math.rad(self.charsetManager.angle[self.charDir]))
end end
end end

View file

@ -50,7 +50,7 @@ function TiledMultiMap:loadMaps()
end end
function TiledMultiMap:addMap(id, mapData) 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 mapFile = mapFolder .. mapData.folder .. "/" .. mapData.map .. ".lua"
local wrapper = StiWrapper(self, mapFile, mapData.x, mapData.y, false) local wrapper = StiWrapper(self, mapFile, mapData.x, mapData.y, false)
wrapper.id = id wrapper.id = id