16 lines
341 B
Python
16 lines
341 B
Python
from enum import Enum
|
|
from Item import Item
|
|
class ArmorLocation(Enum):
|
|
head = 0,
|
|
left_arm = 1
|
|
torso = 2
|
|
right_arm = 3
|
|
left_leg = 4
|
|
right_leg = 5
|
|
class Armor(Item):
|
|
def __init__(self, name:str, description:str, location : ArmorLocation):
|
|
self.BodyPart = location
|
|
Item.__init__(name, description)
|
|
|
|
|