增加指定波数生成僵尸的功能
This commit is contained in:
parent
721fb85827
commit
b72186c8a2
@ -4,6 +4,7 @@
|
||||
"shovel":1,
|
||||
"spawn_zombies":"auto",
|
||||
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"],
|
||||
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
||||
"num_flags":3,
|
||||
"zombie_list":[
|
||||
{"time":20000, "name":"Zombie"},
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
"shovel":1,
|
||||
"spawn_zombies":"auto",
|
||||
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "FootballZombie"],
|
||||
"inevitable_zombie_list":{"20":["BucketheadZombie"], "30":["FootballZombie"]},
|
||||
"num_flags":4,
|
||||
"zombie_list":[
|
||||
{"time":20000, "name":"Zombie"},
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
"spawn_zombies":"auto",
|
||||
"num_flags":4,
|
||||
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"],
|
||||
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
||||
"card_pool":[
|
||||
{"name":"Peashooter"},
|
||||
{"name":"SnowPea"},
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
"spawn_zombies":"auto",
|
||||
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie"],
|
||||
"num_flags":4,
|
||||
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
||||
"card_pool":[
|
||||
{"name":"WallNutBowling"},
|
||||
{"name":"RedWallNutBowling"}
|
||||
|
||||
@ -124,8 +124,8 @@ class Level(tool.State):
|
||||
volume = int(volume*2.5)
|
||||
zombieList = []
|
||||
|
||||
if inevitableZombieDict and (wave in inevitableZombieDict.keys()):
|
||||
for newZombie in inevitableZombieDict[wave]:
|
||||
if inevitableZombieDict and (str(wave) in inevitableZombieDict.keys()):
|
||||
for newZombie in inevitableZombieDict[str(wave)]:
|
||||
zombieList.append(newZombie)
|
||||
volume -= self.createZombieInfo[newZombie][0]
|
||||
if volume < 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user