1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-04-05 11:24:22 +00:00

Fix display of picked up expirience when player took damage

This commit is contained in:
biroder 2023-03-06 15:06:54 +02:00 committed by alula
parent 8992889e94
commit b8af9aed25

View file

@ -290,6 +290,7 @@ impl Player {
if weapon.wtype == WeaponType::Spur {
npc.exp = 0;
} else {
if self.shock_counter == 0 {
if self.popup.value > 0 {
self.popup.add_value(npc.exp as i16);
} else {
@ -297,6 +298,7 @@ impl Player {
}
}
}
}
npc.cond.set_alive(false);
}