Bone-Market-Solver/bonemarketsolver/data/adjustments.py

38 lines
1.3 KiB
Python
Raw Normal View History

__all__ = ['Adjustment']
__author__ = "Jeremy Saklad"
2021-08-03 17:24:53 +00:00
from enum import Enum
from .costs import Cost
from ..objects.action import Action
from ..read_char import Char
from ..challenge_functions import narrow_challenge, mean_outcome
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",
cost = Cost.ACTION.value / narrow_challenge(6, Char.MITHRIDACY.value),
antiquity = -2,
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",
cost = 25*Cost.JADE_FRAGMENT.value + Cost.ACTION.value / narrow_challenge(6, Char.KATALEPTIC_TOXICOLOGY.value),
amalgamy = -2,
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",
cost = Cost.ACTION.value / narrow_challenge(6, Char.KATALEPTIC_TOXICOLOGY.value),
menace = -2,
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)