冰车僵尸可变速

This commit is contained in:
星外之神 2022-05-14 13:35:44 +08:00
parent 8eaf9e1fde
commit 625658202a
2 changed files with 3 additions and 0 deletions

View File

@ -1713,6 +1713,7 @@ class FumeShroom(Plant):
else: else:
self.image.set_alpha(255) self.image.set_alpha(255)
class IceFrozenPlot(Plant): class IceFrozenPlot(Plant):
def __init__(self, x, y): def __init__(self, x, y):
Plant.__init__(self, x, y, c.ICE_FROZEN_PLOT, c.INF, None) Plant.__init__(self, x, y, c.ICE_FROZEN_PLOT, c.INF, None)

View File

@ -1008,3 +1008,5 @@ class Zomboni(Zombie):
x, y = self.map.getMapGridPos(mapX, mapY) x, y = self.map.getMapGridPos(mapX, mapY)
self.plant_group.add(self.IceFrozenPlot(x, y)) self.plant_group.add(self.IceFrozenPlot(x, y))
self.map.map[mapY][mapX][c.MAP_PLANT].add(c.ICE_FROZEN_PLOT) self.map.map[mapY][mapX][c.MAP_PLANT].add(c.ICE_FROZEN_PLOT)
self.speed = max(0.6, 1.5 - (c.GRID_X_LEN - mapX)*0.225)