From 5aa070f989b9a5d23ed31c47746e777a00b7ce87 Mon Sep 17 00:00:00 2001 From: Jeremy Saklad Date: Tue, 3 Aug 2021 12:38:31 -0500 Subject: [PATCH] Move Embellishment to different file --- Bone Market Solver.py | 20 +------------------- data/embellishments.py | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 data/embellishments.py diff --git a/Bone Market Solver.py b/Bone Market Solver.py index 95ec549..d518171 100644 --- a/Bone Market Solver.py +++ b/Bone Market Solver.py @@ -15,6 +15,7 @@ from data.adjustments import Adjustment from data.appendages import Appendage from data.costs import Cost from data.declarations import Declaration +from data.embellishments import Embellishment from data.skulls import Skull from data.torsos import Torso from objects.action import Action @@ -72,25 +73,6 @@ cp_model.CpModel.AddGeneralMultiplicationEquality = AddGeneralMultiplicationEqua del AddGeneralMultiplicationEquality -class Embellishment(Enum): - """An action is taken after a declaration has been made for a skeleton.""" - - MORE_PLAUSIBLE = Action( - "Make it seem just a bit more plausible", - cost = Cost.ACTION.value + Cost.REVISIONIST_NARRATIVE.value, - implausibility = -1 - ) - - CONVINCING_HISTORY = Action( - "Invest great time and skill in coming up with a convincing history", - cost = Cost.ACTION.value + 3*Cost.REVISIONIST_NARRATIVE.value, - implausibility = -5 - ) - - def __str__(self): - return str(self.value) - - class Buyer(Enum): """An action that converts a skeleton into revenue.""" diff --git a/data/embellishments.py b/data/embellishments.py new file mode 100644 index 0000000..02538af --- /dev/null +++ b/data/embellishments.py @@ -0,0 +1,22 @@ +from enum import Enum + +from data.costs import Cost +from objects.action import Action + +class Embellishment(Enum): + """An action is taken after a declaration has been made for a skeleton.""" + + MORE_PLAUSIBLE = Action( + "Make it seem just a bit more plausible", + cost = Cost.ACTION.value + Cost.REVISIONIST_NARRATIVE.value, + implausibility = -1 + ) + + CONVINCING_HISTORY = Action( + "Invest great time and skill in coming up with a convincing history", + cost = Cost.ACTION.value + 3*Cost.REVISIONIST_NARRATIVE.value, + implausibility = -5 + ) + + def __str__(self): + return str(self.value)