From c82b1e3b926d0e308c79d82cf8ef633588bed494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 13 Apr 2022 16:40:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/component/zombie.py b/source/component/zombie.py index c6dd6db..4b9a06f 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -246,6 +246,9 @@ class Zombie(pg.sprite.Sprite): self.helmetHealth = 0 # 注意合并后清零 elif damageType == c.ZOMBIE_ASH_DAMAGE: self.health -= damage # 无视任何防具 + else: + print('警告:植物攻击类型错误,现在默认进行类豌豆射手型攻击') + setDamage(damage, ice=ice, damageType=c.ZOMBIE_DEAFULT_DAMAGE) # 记录攻击时间 self.hit_timer = self.current_time