From a1b7c389a0333a0e778abeff2c92d6062f570925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Mon, 1 Aug 2022 11:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E8=A1=A1=E9=9A=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/map.py | 2 +- source/component/plant.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/map.py b/source/component/map.py index 8b5db6e..89bbdee 100755 --- a/source/component/map.py +++ b/source/component/map.py @@ -412,7 +412,7 @@ LITTLE_GAME_MAP_DATA = ( c.SPIKEWEED: 100, c.SQUASH: 100, c.JALAPENO: 50, - c.THREEPEASHOOTER: 400,} + c.THREEPEASHOOTER: 300,} }, ) diff --git a/source/component/plant.py b/source/component/plant.py index d0f4ebc..ae3cb6b 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -322,7 +322,7 @@ class Plant(pg.sprite.Sprite): if (zombie.name == c.SNORKELZOMBIE) and (zombie.frames == zombie.swim_frames): return False if (self.state != c.SLEEP and zombie.state != c.DIE and - self.rect.x <= zombie.rect.right and zombie.rect.x <= c.SCREEN_WIDTH): + self.rect.x <= zombie.rect.right and zombie.rect.x <= c.SCREEN_WIDTH - 24): return True return False