Move adjustments to Adjustment enumeration

Adjustments made to a skeleton after all parts have been added are now
in a distinct enumeration.

The action list is now entirely composed of enumerations, so it shall be
eliminated entirely soon.
This commit is contained in:
Jeremy Saklad 2021-06-13 10:39:13 -05:00
parent 7c0f4bb3f5
commit 354ee327a3
Signed by: Jeremy Saklad
GPG Key ID: 9CA2149583EDBF84
1 changed files with 28 additions and 5 deletions

View File

@ -134,6 +134,9 @@ class Value(enum.Enum):
# Ealing Gardens statue, 2 at a time # Ealing Gardens statue, 2 at a time
IVORY_HUMERUS = (ACTION + 4*BOHEMIAN_FAVOURS)/2 IVORY_HUMERUS = (ACTION + 4*BOHEMIAN_FAVOURS)/2
# Jade Fragment
JADE_FRAGMENT = 1
# Femur of a Jurassic Beast # Femur of a Jurassic Beast
# Brawling for yourself, large Bone Market crate, 12 at a time # Brawling for yourself, large Bone Market crate, 12 at a time
JURASSIC_FEMUR = (10*ACTION)/12 JURASSIC_FEMUR = (10*ACTION)/12
@ -932,6 +935,30 @@ class Appendage(enum.Enum):
return str(self.value) return str(self.value)
# Actions that are taken after all parts have been added to a skeleton.
class Adjustment(enum.Enum):
CARVE_AWAY_AGE = Action(
"Carve away some evidence of age",
cost = Value.ACTION.value,
antiquity = -2
)
DISGUISE_AMALGAMY = Action(
"Disguise the amalgamy of this piece",
cost = Value.ACTION.value + Value.JADE_FRAGMENT.value,
amalgamy = -2
)
MAKE_LESS_DREADFUL = Action(
"Make your skeleton less dreadful",
cost = Value.ACTION.value,
menace = -2
)
def __str__(self):
return str(self.value)
# Which kind of skeleton is to be declared. # Which kind of skeleton is to be declared.
class Declaration(enum.Enum): class Declaration(enum.Enum):
CHIMERA = Action("Declare your (Skeleton Type) a completed Chimera", cost = Value.ACTION.value, implausibility = 3) CHIMERA = Action("Declare your (Skeleton Type) a completed Chimera", cost = Value.ACTION.value, implausibility = 3)
@ -965,11 +992,7 @@ def create_data_model():
# The current value of Zoological Mania, which grants a 10% bonus to value for a certain declaration. # The current value of Zoological Mania, which grants a 10% bonus to value for a certain declaration.
data['zoological_mania'] = Declaration.AMPHIBIAN data['zoological_mania'] = Declaration.AMPHIBIAN
data['actions'] = [torso.value for torso in Torso] + [skull.value for skull in Skull] + [appendage.value for appendage in Appendage] + [ data['actions'] = [torso.value for torso in Torso] + [skull.value for skull in Skull] + [appendage.value for appendage in Appendage] + [adjustment.value for adjustment in Adjustment]
Action("Make your skeleton less dreadful", cost = Value.ACTION.value, menace = -2),
Action("Disguise the amalgamy of this piece", cost = 25 + Value.ACTION.value, amalgamy = -2),
Action("Carve away some evidence of age", cost = Value.ACTION.value, antiquity = -2)
]
return data return data