modified some Python files

This commit is contained in:
2026-01-26 08:28:04 +01:00
parent 35824666ce
commit 6e14cb65c3
18 changed files with 921 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
from .serializable import Serializable
from serializable import Serializable
class Item(Serializable):
def __init__(self,name:str, description:str, stat_modifier:str, weight:float = 10.0):
@@ -9,7 +9,7 @@ class Item(Serializable):
self.weight = weight
def __str__(self):
return self.name + '(' + self.weight + ' kg)' + ': ' + self.description
return f"{self.name} ({self.weight} kg): {self.description}"
class Equippable(Item):
def __init__(self, name, description, stat_modifier, equipped:bool, weight = 10.0):