From a350f6629022c29e51b2684fa31b5b51d35a8103 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 28 Apr 2018 19:03:23 +0200 Subject: [PATCH] Removes some of the spammy logs. Not as important now that there is an in game log. --- src/player.c | 18 ------------------ src/stats.c | 7 ------- 2 files changed, 25 deletions(-) diff --git a/src/player.c b/src/player.c index 1896ab8..9b7ced3 100644 --- a/src/player.c +++ b/src/player.c @@ -477,28 +477,10 @@ player_render(Player *player, Camera *cam) } } -static void -player_print(Player *p) -{ - Position roomPos = position_to_matrix_coords(&p->sprite->pos); - Position pos = p->sprite->pos; - PlayerStatData *data = &p->stat_data; - - debug("\n"); - debug("--------=== <[ Player Stats ]> ===--------"); - debug("Hits: %u\tMisses:\t%u", data->hits, data->misses); - debug("Kills: %u", data->kills); - debug("Steps: %u", data->total_steps); - debug("Pos: %dx%d\tRoomPos: %dx%d", pos.x, pos.y, - roomPos.x, roomPos.y); - debug("------------------------------------------"); -} - void player_reset_steps(Player *p) { p->stat_data.steps = 0; - player_print(p); } void player_update(UpdateData *data) diff --git a/src/stats.c b/src/stats.c index 9f0a3f4..de2801a 100644 --- a/src/stats.c +++ b/src/stats.c @@ -39,10 +39,6 @@ stats_fight(Stats *attacker, Stats *defender) defRoll = (get_random(19) + 1) + defender->def; dmgRoll = 0; - debug(""); - debug("-----------[ FIGHT ]---------"); - debug("Attacking: %d Defending: %d", atkRoll, defRoll); - if (atkRoll >= defRoll) { if (attacker->dmg > 0) dmgRoll = get_random(attacker->dmg) + 1; @@ -57,8 +53,5 @@ stats_fight(Stats *attacker, Stats *defender) defender->hp -= dmgRoll; } - debug("Attacker hp: %d Defender hp: %d", attacker->hp, defender->hp); - debug("-----------------------------"); - return dmgRoll; }