From 625658202a661e3a3686ca7d9f1dcbd886f77bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sat, 14 May 2022 13:35:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B0=E8=BD=A6=E5=83=B5=E5=B0=B8=E5=8F=AF?= =?UTF-8?q?=E5=8F=98=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 1 + source/component/zombie.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/source/component/plant.py b/source/component/plant.py index d597971..5676770 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -1713,6 +1713,7 @@ class FumeShroom(Plant): else: self.image.set_alpha(255) + class IceFrozenPlot(Plant): def __init__(self, x, y): Plant.__init__(self, x, y, c.ICE_FROZEN_PLOT, c.INF, None) diff --git a/source/component/zombie.py b/source/component/zombie.py index 8bb0172..3c9e3d7 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -1008,3 +1008,5 @@ class Zomboni(Zombie): x, y = self.map.getMapGridPos(mapX, mapY) self.plant_group.add(self.IceFrozenPlot(x, y)) 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)