为保证攻击时常平衡,取消时间缩短

This commit is contained in:
星外之神 2022-05-03 14:25:19 +08:00
parent cf6aab5cda
commit 5276e90d72

View File

@ -309,8 +309,7 @@ class Zombie(pg.sprite.Sprite):
self.prey = prey # prey can be plant or other zombies self.prey = prey # prey can be plant or other zombies
self.prey_is_plant = is_plant self.prey_is_plant = is_plant
self.state = c.ATTACK self.state = c.ATTACK
# 首次攻击间隔的延迟时间应当适当缩短 self.attack_timer = self.current_time
self.attack_timer = self.current_time - c.ATTACK_INTERVAL * self.getAttackTimeRatio()
self.animate_interval = self.attack_animate_interval self.animate_interval = self.attack_animate_interval
if self.helmet or self.helmetType2: # 这里暂时没有考虑同时有两种防具的僵尸 if self.helmet or self.helmetType2: # 这里暂时没有考虑同时有两种防具的僵尸