大蒜基本可用

This commit is contained in:
星外之神 2022-06-03 22:31:57 +08:00
parent 06ce13b0ac
commit 954210264f

View File

@ -252,6 +252,8 @@ class Zombie(pg.sprite.Sprite):
if self.prey.health > 0:
if self.prey_is_plant:
self.prey.setDamage(self.damage, self)
if self.prey.name == c.GARLIC:
self.setWalk()
else:
self.prey.setDamage(self.damage)
@ -1258,6 +1260,5 @@ class SnorkelZombie(Zombie):
self.state = c.WALK
self.animate_interval = self.walk_animate_interval
if self.rect.right <= c.MAP_POOL_FRONT_X:
self.swimming = True
self.changeFrames(self.sink_frames)
self.swimming = True
self.changeFrames(self.sink_frames)