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:
2024-04-04 17:11:27 +02:00
parent 419c8a9959
commit f3d85922ed
3 changed files with 41 additions and 6 deletions
+4 -1
View File
@@ -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"]