Compare commits

..

No commits in common. "7f8c9f7c32083685c188bee9b0f4586f43703eeb" and "8848c129dbc0e15a858ad69d866bf81cc373b950" have entirely different histories.

2 changed files with 6 additions and 25 deletions

View File

@ -137,7 +137,7 @@ class Torso(Enum):
SEGMENTED_RIBCAGE = Action(
"Build on a Segmented Ribcage",
cost = Cost.ACTION.value + Cost.SEGMENTED_RIBCAGE.value,
torso_style = 45,
torso_style = 110,
value = 250,
skulls_needed = 1,
limbs_needed = 2,

View File

@ -245,35 +245,16 @@ def Solve(shadowy_level, bone_market_fluctuations = None, zoological_mania = Non
# Counter-church calculation
# Calculate amount of Counter-church from Holy Relics of the Thigh of Saint Fiacre
# The amount of Counter-church added by each Holy Relic, which is based on the Torso Style.
#
# The precise formula for this is unknown as of this writing, so it is being hard-coded as a stopgap.
holy_relic_counter_church_each = model.NewIntVar('holy relic counter-church each')
model.AddAllowedAssignments(
(torso_style, holy_relic_counter_church_each),
(
(10, 1), # Human
(15, 1), # Human
(20, 2), # Thorny-Breasted
(30, 2), # Seven-necked
(40, 3), # Many-limbed
(45, 3), # Segmented
(50, 4), # Mammoth
(60, 5), # Baroque
(70, 6), # Deep-water
(80, 6), # Prismatic
(100, 7) # Starved
)
)
holy_relic = actions[Appendage.FIACRE_THIGH]
torso_style_divided_by_ten = model.NewIntVar('torso style divided by ten', lb = 0)
model.AddDivisionEquality(torso_style_divided_by_ten, torso_style, 10)
holy_relic_counter_church = model.NewIntVar('holy relic counter-church', lb = 0)
model.AddMultiplicationEquality(holy_relic_counter_church, (actions[Appendage.FIACRE_THIGH], holy_relic_counter_church_each))
model.AddMultiplicationEquality(holy_relic_counter_church, (holy_relic, torso_style_divided_by_ten))
counter_church = model.NewIntVar('counter-church', lb = 0)
model.Add(counter_church == cp_model.LinearExpr.WeightedSum(actions.values(), [action.value.counter_church for action in actions.keys()]) + holy_relic_counter_church)
del holy_relic_counter_church_each, holy_relic_counter_church
del holy_relic, torso_style_divided_by_ten, holy_relic_counter_church
# Exhaustion calculation