冰车被地刺杀死后不立刻爆炸
This commit is contained in:
parent
92beb00dff
commit
ada7d690eb
@ -848,7 +848,7 @@ class Spikeweed(Plant):
|
|||||||
if self.canAttack(zombie):
|
if self.canAttack(zombie):
|
||||||
# 有车的僵尸
|
# 有车的僵尸
|
||||||
if zombie.name in {c.ZOMBONI}:
|
if zombie.name in {c.ZOMBONI}:
|
||||||
zombie.health = 0
|
zombie.health = zombie.lostHeadHealth
|
||||||
killSelf = True
|
killSelf = True
|
||||||
else:
|
else:
|
||||||
zombie.setDamage(20, damageType=c.ZOMBIE_COMMON_DAMAGE)
|
zombie.setDamage(20, damageType=c.ZOMBIE_COMMON_DAMAGE)
|
||||||
|
|||||||
@ -988,7 +988,7 @@ class Zomboni(Zombie):
|
|||||||
elif self.health <= c.ZOMBONI_DAMAGED1_HEALTH:
|
elif self.health <= c.ZOMBONI_DAMAGED1_HEALTH:
|
||||||
self.changeFrames(self.walk_damaged1_frames)
|
self.changeFrames(self.walk_damaged1_frames)
|
||||||
|
|
||||||
if (self.current_time - self.walk_timer) > (c.ZOMBIE_WALK_INTERVAL * self.getTimeRatio()):
|
if (self.current_time - self.walk_timer) > (c.ZOMBIE_WALK_INTERVAL * self.getTimeRatio()) and (not self.lostHead):
|
||||||
self.walk_timer = self.current_time
|
self.walk_timer = self.current_time
|
||||||
if self.is_hypno:
|
if self.is_hypno:
|
||||||
self.rect.x += 1
|
self.rect.x += 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user