From b85440e3cdde5536e3e38213543767951291a524 Mon Sep 17 00:00:00 2001 From: Jeremy Saklad Date: Tue, 29 Nov 2022 10:17:18 -0600 Subject: [PATCH] feat(buyer): Add spider fascination for Diplomat This fascination works in the same manner as the other declaration-based fascinations. --- bonemarketsolver/data/buyers.py | 4 ++++ bonemarketsolver/solve.py | 1 + 2 files changed, 5 insertions(+) diff --git a/bonemarketsolver/data/buyers.py b/bonemarketsolver/data/buyers.py index 381419d..96e9ddb 100644 --- a/bonemarketsolver/data/buyers.py +++ b/bonemarketsolver/data/buyers.py @@ -177,6 +177,10 @@ class Buyer(Enum): "Sell the Diplomat a skeleton with multiple heads", cost = Cost.ACTION.value ) + THE_TRIFLING_DIPLOMAT_SPIDER = Action( + "Sell the Diplomat a fossil arachnid", + cost = Cost.ACTION.value + ) def __str__(self): return str(self.value) diff --git a/bonemarketsolver/solve.py b/bonemarketsolver/solve.py index b84a8bd..211fcfe 100644 --- a/bonemarketsolver/solve.py +++ b/bonemarketsolver/solve.py @@ -1155,6 +1155,7 @@ def Solve(shadowy_level, bone_market_fluctuations = None, zoological_mania = Non ('LEGS', (skeleton_in_progress >= 100, legs >= 10)), ('REPTILE', (cp_model.BoundedLinearExpression(skeleton_in_progress, (160, 169)),)), ('SKULLS', (skeleton_in_progress >= 100, skulls >= 5)), + ('SPIDER', (cp_model.BoundedLinearExpression(skeleton_in_progress, (200, 209)),)), ) }