feature: der Mech kann springen

This commit is contained in:
2026-07-23 20:34:24 +02:00
parent 39f6e090d6
commit e5bbb8bd9f
8 changed files with 260 additions and 133 deletions
+5 -1
View File
@@ -27,6 +27,10 @@ class AreaNames(enum.Enum):
LEFT_LEG = 'Linkes Bein'
LEFT_ARM = 'Linker Arm'
def is_big(self):
return self in (AreaNames.MIDDLE_TORSO, AreaNames.LEFT_TORSO, AreaNames.RIGHT_TORSO,
AreaNames.LEFT_ARM, AreaNames.RIGHT_ARM)
class AreaStatus(enum.Flag):
FINE = 0
@@ -52,7 +56,7 @@ class Area(Zone):
def __init__(self):
super().__init__()
self.__dict__['_outer_amor'] = list()
self.__dict__['_outer_armor'] = list()
self.__dict__['_children'] = list()
self.__dict__['_items'] = dict()
+6
View File
@@ -9,6 +9,7 @@ class ItemTypes(enum.Enum):
JOINT = 5
SENSORS = 6
SUSTAINMENT = 7
JUMP_JET = 8
class ItemStatus(enum.Flag):
@@ -103,3 +104,8 @@ class Sensors(DurableItem):
class Sustainment(Item):
def __init__(self):
super().__init__(ItemTypes.SUSTAINMENT)
class JumpJet(BigItem):
def __init__(self, tonnage: float):
super().__init__(ItemTypes.JUMP_JET, tonnage)