Merging from api
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
from typing import Dict
|
||||
# Game imports
|
||||
from serializable import Serializable
|
||||
|
||||
# Native imports
|
||||
import uuid
|
||||
|
||||
class Item(Serializable):
|
||||
def __init__(self,name:str, description:str, stat_modifier:Dict[str, int]):
|
||||
def __init__(self,name:str, description:str, stat_modifier:dict[str, int]):
|
||||
super().__init__()
|
||||
self.id = str(uuid.uuid4())
|
||||
self.name = name
|
||||
@@ -13,4 +14,3 @@ class Item(Serializable):
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name}: {self.description}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user