1
0
Fork 0
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:
dawnDus 2022-10-17 17:40:30 -04:00
parent 3a756e0ac4
commit 57b2be5211
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -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