Updated monster spawn rate

This commit is contained in:
theo@manjaro 2021-09-19 22:36:09 +02:00
parent 0578100e92
commit f9686a6fed
1 changed files with 4 additions and 1 deletions

View File

@ -16,9 +16,12 @@ class Spawner(BaseObject):
# Skin choosing
self.skin = random.choice(skins["normal"])
if random.randint(1,6)==1: # Chance to have a special one
if random.randint(1,8)==1: # Chance to have a special one
if len(skins["specials"])>0:
self.skin = random.choice(skins["specials"])
if "monster" in skins["specials"]:
if random.randint(1,7)==1: # Chance to force a monster
self.skin = "monster"
self.fallsprite = game.sprite_lib["lemmings/"+self.skin+"/falling.png"]
# Depth updating based on position