增加指定波数生成僵尸的功能

This commit is contained in:
星外之神 2022-04-30 11:47:46 +08:00
parent 721fb85827
commit b72186c8a2
5 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@
"shovel":1, "shovel":1,
"spawn_zombies":"auto", "spawn_zombies":"auto",
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"], "included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"],
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
"num_flags":3, "num_flags":3,
"zombie_list":[ "zombie_list":[
{"time":20000, "name":"Zombie"}, {"time":20000, "name":"Zombie"},

View File

@ -4,6 +4,7 @@
"shovel":1, "shovel":1,
"spawn_zombies":"auto", "spawn_zombies":"auto",
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "FootballZombie"], "included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "FootballZombie"],
"inevitable_zombie_list":{"20":["BucketheadZombie"], "30":["FootballZombie"]},
"num_flags":4, "num_flags":4,
"zombie_list":[ "zombie_list":[
{"time":20000, "name":"Zombie"}, {"time":20000, "name":"Zombie"},

View File

@ -5,6 +5,7 @@
"spawn_zombies":"auto", "spawn_zombies":"auto",
"num_flags":4, "num_flags":4,
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"], "included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"],
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
"card_pool":[ "card_pool":[
{"name":"Peashooter"}, {"name":"Peashooter"},
{"name":"SnowPea"}, {"name":"SnowPea"},

View File

@ -5,6 +5,7 @@
"spawn_zombies":"auto", "spawn_zombies":"auto",
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"], "included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"],
"num_flags":4, "num_flags":4,
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
"card_pool":[ "card_pool":[
{"name":"WallNutBowling"}, {"name":"WallNutBowling"},
{"name":"RedWallNutBowling"} {"name":"RedWallNutBowling"}

View File

@ -124,8 +124,8 @@ class Level(tool.State):
volume = int(volume*2.5) volume = int(volume*2.5)
zombieList = [] zombieList = []
if inevitableZombieDict and (wave in inevitableZombieDict.keys()): if inevitableZombieDict and (str(wave) in inevitableZombieDict.keys()):
for newZombie in inevitableZombieDict[wave]: for newZombie in inevitableZombieDict[str(wave)]:
zombieList.append(newZombie) zombieList.append(newZombie)
volume -= self.createZombieInfo[newZombie][0] volume -= self.createZombieInfo[newZombie][0]
if volume < 0: if volume < 0: