更改冰冻
This commit is contained in:
parent
d5a8f9c124
commit
0f699394a4
@ -651,8 +651,9 @@ class Level(tool.State):
|
||||
def freezeZombies(self, plant):
|
||||
for i in range(self.map_y_len):
|
||||
for zombie in self.zombie_groups[i]:
|
||||
if zombie.rect.centerx < c.SCREEN_WIDTH:
|
||||
if zombie.rect.left <= c.SCREEN_WIDTH:
|
||||
zombie.setFreeze(plant.trap_frames[0])
|
||||
zombie.setDamage(20) # 寒冰菇还有全场20的伤害
|
||||
|
||||
def killPlant(self, plant, shovel=False):
|
||||
x, y = plant.getPosition()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user