diff --git a/resources/data/map/level_0.json b/resources/data/map/level_0.json index 53ba7d9..23a0814 100644 --- a/resources/data/map/level_0.json +++ b/resources/data/map/level_0.json @@ -3,11 +3,6 @@ "init_sun_value":5000, "shovel":1, "zombie_list":[ - {"time":1000, "map_y":2, "name":"BucketheadZombie"}, - {"time":1000, "map_y":2, "name":"BucketheadZombie"}, - {"time":1000, "map_y":2, "name":"Zombie"}, - {"time":1000, "map_y":2, "name":"Zombie"}, - {"time":1000, "map_y":2, "name":"Zombie"}, {"time":1000, "map_y":2, "name":"Zombie"}, {"time":2000, "map_y":2, "name":"BucketheadZombie"}, {"time":3000, "map_y":2, "name":"BucketheadZombie"}, diff --git a/source/state/level.py b/source/state/level.py index 24cd629..a608682 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -612,6 +612,8 @@ class Level(tool.State): _, map_y = self.map.getMapIndex(zombie.rect.centerx, zombie.rect.bottom) self.zombie_groups[map_y].remove(zombie) self.hypno_zombie_groups[map_y].add(zombie) + # 避免僵尸在用铲子移除植物后还在原位啃食 + plant.health = 0 plant.kill() def checkPlant(self, plant, i):