add new class for user selection "Goo/Slime" fix bug when not combineble_species in player game broke, allow mulit types in player species but only show first
This commit is contained in:
@@ -5,7 +5,10 @@ class Player:
|
||||
def __init__(self, name:str, type:dict, species:dict, combineble_species:dict):
|
||||
self.name = name
|
||||
self.type = type
|
||||
self.species = {"species": species["name"], "combineble": combineble_species["name"]}
|
||||
if combineble_species:
|
||||
self.species = {"species": species["name"], "combineble": combineble_species["name"]}
|
||||
else:
|
||||
self.species = {"species": species["name"], "combineble": False}
|
||||
|
||||
self.inventory = []
|
||||
self.inventory_size = species["inventory_size"]
|
||||
|
||||
Reference in New Issue
Block a user