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; }