mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-22 05:33:02 +00:00
Fix stuck popups with Spur
This commit is contained in:
parent
3a756e0ac4
commit
57b2be5211
|
@ -289,15 +289,15 @@ impl Player {
|
|||
if let Some(weapon) = inventory.get_current_weapon() {
|
||||
if weapon.wtype == WeaponType::Spur {
|
||||
npc.exp = 0;
|
||||
} else {
|
||||
if self.popup.value > 0 {
|
||||
self.popup.add_value(npc.exp as i16);
|
||||
} else {
|
||||
self.popup.set_value(npc.exp as i16);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if self.popup.value > 0 {
|
||||
self.popup.add_value(npc.exp as i16);
|
||||
} else {
|
||||
self.popup.set_value(npc.exp as i16);
|
||||
}
|
||||
|
||||
npc.cond.set_alive(false);
|
||||
}
|
||||
// missile pickup
|
||||
|
|
Loading…
Reference in a new issue