更改土豆雷设定

This commit is contained in:
星外之神 2022-05-06 18:32:30 +08:00
parent 4f9df6de38
commit cc9a9d0ef3

View File

@ -593,7 +593,7 @@ class PotatoMine(Plant):
self.is_init = True
self.init_timer = 0
self.bomb_timer = 0
self.explode_x_range = c.GRID_X_SIZE * 0.6
self.explode_x_range = c.GRID_X_SIZE
def loadImages(self, name, scale):
self.init_frames = []
@ -622,7 +622,7 @@ class PotatoMine(Plant):
def canAttack(self, zombie):
if (not self.is_init and (not zombie.lostHead) and
(abs(zombie.rect.x - self.rect.x) <= self.explode_x_range*(5/6))):
(abs(zombie.rect.x - self.rect.x) <= self.explode_x_range*0.8)):
return True
return False