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