Jeremy Saklad
97aedc0895
These types still have a __dict__, since they inherit from Enum, but using __slots__ for the inherited properties can still improve access times.
34 lines
858 B
Python
34 lines
858 B
Python
__all__ = ['Adjustment']
|
|
__author__ = "Jeremy Saklad"
|
|
|
|
from enum import Enum
|
|
|
|
from .costs import Cost
|
|
from ..objects.action import Action
|
|
|
|
class Adjustment(Enum):
|
|
"""An action that is taken after all parts have been added to a skeleton."""
|
|
|
|
__slots__ = '_value_', '_name_', '__objclass__'
|
|
|
|
CARVE_AWAY_AGE = Action(
|
|
"Carve away some evidence of age",
|
|
cost = Cost.ACTION.value,
|
|
antiquity = -2
|
|
)
|
|
|
|
DISGUISE_AMALGAMY = Action(
|
|
"Disguise the amalgamy of this piece",
|
|
cost = Cost.ACTION.value + 25*Cost.JADE_FRAGMENT.value,
|
|
amalgamy = -2
|
|
)
|
|
|
|
MAKE_LESS_DREADFUL = Action(
|
|
"Make your skeleton less dreadful",
|
|
cost = Cost.ACTION.value,
|
|
menace = -2
|
|
)
|
|
|
|
def __str__(self):
|
|
return str(self.value)
|