Removes some of the spammy logs.
Not as important now that there is an in game log.
This commit is contained in:
parent
1042ed6482
commit
a350f66290
18
src/player.c
18
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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue