feature: der Mech kann springen
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user