2021-08-03 17:53:25 +00:00
|
|
|
__all__ = ['Adjustment']
|
|
|
|
__author__ = "Jeremy Saklad"
|
|
|
|
|
2021-08-03 17:24:53 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
2021-08-03 19:48:42 +00:00
|
|
|
from .costs import Cost
|
|
|
|
from ..objects.action import Action
|
2021-08-24 12:31:10 +00:00
|
|
|
from ..read_char import Char
|
|
|
|
from ..challenge_functions import narrow_challenge, mean_outcome
|
2021-08-24 11:18:20 +00:00
|
|
|
|
2021-08-03 17:24:53 +00:00
|
|
|
|
|
|
|
class Adjustment(Enum):
|
|
|
|
"""An action that is taken after all parts have been added to a skeleton."""
|
|
|
|
|
|
|
|
CARVE_AWAY_AGE = Action(
|
|
|
|
"Carve away some evidence of age",
|
2021-08-24 12:31:10 +00:00
|
|
|
cost = Cost.ACTION.value / narrow_challenge(6, Char.MITHRIDACY.value),
|
2021-08-24 11:18:20 +00:00
|
|
|
antiquity = -2,
|
2021-08-24 12:31:10 +00:00
|
|
|
implausibility = mean_outcome(0, 2, narrow_challenge(6, Char.MITHRIDACY.value))
|
2021-08-03 17:24:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
DISGUISE_AMALGAMY = Action(
|
|
|
|
"Disguise the amalgamy of this piece",
|
2021-08-24 12:31:10 +00:00
|
|
|
cost = 25*Cost.JADE_FRAGMENT.value + Cost.ACTION.value / narrow_challenge(6, Char.KATALEPTIC_TOXICOLOGY.value),
|
2021-08-24 11:18:20 +00:00
|
|
|
amalgamy = -2,
|
2021-08-24 12:31:10 +00:00
|
|
|
implausibility = mean_outcome(0, 2, narrow_challenge(6, Char.KATALEPTIC_TOXICOLOGY.value))
|
2021-08-03 17:24:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
MAKE_LESS_DREADFUL = Action(
|
|
|
|
"Make your skeleton less dreadful",
|
2021-08-24 12:31:10 +00:00
|
|
|
cost = Cost.ACTION.value / narrow_challenge(6, Char.KATALEPTIC_TOXICOLOGY.value),
|
2021-08-24 11:18:20 +00:00
|
|
|
menace = -2,
|
2021-08-24 12:31:10 +00:00
|
|
|
implausibility = mean_outcome(0, 2, narrow_challenge(6, Char.KATALEPTIC_TOXICOLOGY.value))
|
2021-08-03 17:24:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return str(self.value)
|