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:
1 parent
13488e1c2d
commit
5fef91e110
5 files changed
+196
-78
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user