Always play sound when daggers hit/miss something
This commit is contained in:
parent
3665c7ff66
commit
efe062993b
|
@ -92,7 +92,6 @@ projectile_update(Projectile *p, UpdateData *data)
|
||||||
Uint32 dmg = stats_fight(&tmpStats, &space->monster->stats);
|
Uint32 dmg = stats_fight(&tmpStats, &space->monster->stats);
|
||||||
if (dmg > 0) {
|
if (dmg > 0) {
|
||||||
gui_log("Your dagger pierced %s for %u damage", space->monster->lclabel, dmg);
|
gui_log("Your dagger pierced %s for %u damage", space->monster->lclabel, dmg);
|
||||||
mixer_play_effect(SWORD_HIT);
|
|
||||||
data->player->stat_data.hits += 1;
|
data->player->stat_data.hits += 1;
|
||||||
}
|
}
|
||||||
if (get_random(2) >= 1) {
|
if (get_random(2) >= 1) {
|
||||||
|
@ -102,6 +101,7 @@ projectile_update(Projectile *p, UpdateData *data)
|
||||||
}
|
}
|
||||||
monster_hit(space->monster, dmg);
|
monster_hit(space->monster, dmg);
|
||||||
}
|
}
|
||||||
|
mixer_play_effect(SWORD_HIT);
|
||||||
p->alive = false;
|
p->alive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue