added some tools to server, removed deprecated

code and adjusted entity, game, and event files to
work with items being mandatory for entities.
This commit is contained in:
2026-01-30 18:14:05 +01:00
parent 13488e1c2d
commit 5fef91e110
5 changed files with 196 additions and 78 deletions

View File

@@ -6,7 +6,7 @@ from utils.item import Item
import uuid
class Entity(Serializable):
def __init__(self, name:str, strength:int, dexterity:int, intelligence:int, wisdom:int, charisma:int, hp:int, armor:int, speed:int, equipped_item:Item=None):
def __init__(self, name:str, strength:int, dexterity:int, intelligence:int, wisdom:int, charisma:int, hp:int, armor:int, speed:int, equipped_item:Item):
self.id = str(uuid.uuid4())
self.name = name
self.strength = 20