Skip to content

Commit

Permalink
更改寒冰菇攻击范围
Browse files Browse the repository at this point in the history
  • Loading branch information
wszqkzqk committed May 15, 2022
1 parent e080fd0 commit b2d62de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/state/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,8 @@ def freezeZombies(self, plant):

for i in range(self.map_y_len):
for zombie in self.zombie_groups[i]:
if zombie.rect.left <= c.SCREEN_WIDTH:
zombie.setFreeze(plant.trap_frames[0])
zombie.setDamage(20, damageType=c.ZOMBIE_RANGE_DAMAGE) # 寒冰菇还有全场20的伤害
zombie.setFreeze(plant.trap_frames[0])
zombie.setDamage(20, damageType=c.ZOMBIE_RANGE_DAMAGE) # 寒冰菇还有全场20的伤害

def killPlant(self, targetPlant, shovel=False):
x, y = targetPlant.getPosition()
Expand Down

0 comments on commit b2d62de

Please sign in to comment.