From 0057d231bed7f14375c8acd98ef475adc235e12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sun, 15 May 2022 20:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=9A=E6=9E=9C=E4=BF=9D=E9=BE=84=E7=90=83?= =?UTF-8?q?=E6=8B=9F=E5=90=88=E9=93=81=E9=97=A8=E9=9C=80=E8=A6=81=E7=A0=B8?= =?UTF-8?q?3=E6=AC=A1=E7=9A=84=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/zombie.py b/source/component/zombie.py index 21c1f04..c697f51 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -390,9 +390,9 @@ class Zombie(pg.sprite.Sprite): self.health -= damage # 无视任何防具 elif damageType == c.ZOMBIE_WALLNUT_BOWLING_DANMAGE: # 逻辑:对防具的多余伤害不传递 - # 以后增设铁门后可能需要设置侧面冲撞特殊性 if self.helmetType2: - self.helmetType2Health -= damage + # 对二类防具伤害较一般情况低,拟合铁门需要砸3次的设定 + self.helmetType2Health -= int(damage * 0.8) elif self.helmet: # 不存在二类防具,但是存在一类防具 self.helmetHealth -= damage else: # 没有防具