From bf2e74d8087e926a3f488801c5265e75f5befdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 27 Jul 2022 11:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=94=9F=E6=88=90=E5=83=B5?= =?UTF-8?q?=E5=B0=B8=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/data/map/level_8.json | 4 ++-- source/state/level.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/data/map/level_8.json b/resources/data/map/level_8.json index e044e90..006b1d1 100644 --- a/resources/data/map/level_8.json +++ b/resources/data/map/level_8.json @@ -3,7 +3,7 @@ "init_sun_value":50, "shovel":1, "spawn_zombies":"auto", - "included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "FootballZombie"], - "inevitable_zombie_list":{"20":["BucketheadZombie"], "30":["FootballZombie"]}, + "included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "SnorkelZombie"], + "inevitable_zombie_list":{"20":["BucketheadZombie"], "30":["SnorkelZombie"]}, "num_flags":4 } diff --git a/source/state/level.py b/source/state/level.py index 80bf8e6..b5cb83b 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -149,7 +149,7 @@ class Level(tool.State): zombieList.append(newZombie) volume -= c.CREATE_ZOMBIE_DICT[newZombie][0] if volume < 0: - print('警告:第{}波中手动设置的僵尸级别总数超过上限!'.format(wave)) + print(f'警告:第{wave}波中手动设置的僵尸级别总数超过上限!') # 防止因为僵尸最小等级过大,使得总容量无法完全利用,造成死循环的检查机制 minCost = c.CREATE_ZOMBIE_DICT[min(useableZombies, key=lambda x:c.CREATE_ZOMBIE_DICT[x][0])][0]