1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-29 16:53:00 +00:00

Press damage fix

This commit is contained in:
dawnDus 2022-03-12 09:35:06 -05:00
parent df2663d9fb
commit 5795015059
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -982,6 +982,7 @@ impl NPC {
if player.y > self.y { if player.y > self.y {
self.npc_flags.set_solid_hard(false); self.npc_flags.set_solid_hard(false);
self.damage = 127; self.damage = 127;
break;
} else { } else {
self.npc_flags.set_solid_hard(true); self.npc_flags.set_solid_hard(true);
self.damage = 0; self.damage = 0;
@ -1847,6 +1848,7 @@ impl NPC {
if player.y > self.y { if player.y > self.y {
self.npc_flags.set_solid_hard(false); self.npc_flags.set_solid_hard(false);
self.damage = 127; self.damage = 127;
break;
} else { } else {
self.npc_flags.set_solid_hard(true); self.npc_flags.set_solid_hard(true);
self.damage = 0; self.damage = 0;