diff --git a/bonemarketsolver/__main__.py b/bonemarketsolver/__main__.py index 039391e..954ed26 100644 --- a/bonemarketsolver/__main__.py +++ b/bonemarketsolver/__main__.py @@ -6,6 +6,8 @@ from .objects.bonemarketargumentparser import BoneMarketArgumentParser from .objects.enumaction import EnumAction from .objects.listaction import ListAction from .solve import * +from .read_char import * + parser = BoneMarketArgumentParser( prog='Bone Market Solver', @@ -71,7 +73,7 @@ skeleton_parameters = parser.add_argument_group( skeleton_parameters.add_argument( "-s", "--shadowy", type=int, - required=True, + default=Char.SHADOWY.value, help="the effective level of Shadowy used for selling to buyers", dest='shadowy_level' ) diff --git a/bonemarketsolver/custom_char.py.template b/bonemarketsolver/custom_char.py.template new file mode 100644 index 0000000..06b993a --- /dev/null +++ b/bonemarketsolver/custom_char.py.template @@ -0,0 +1,32 @@ +from enum import Enum + +class Char(Enum): + """Character stats""" + + SHADOWY = 300 + + DANGEROUS = 300 + + PERSUASIVE = 300 + + WATCHFUL = 300 + + PLAYER_OF_CHESS = 7 + + ARTISAN_OF_RED_SCIENCE = 7 + + GLASSWORK = 7 + + KATALEPTIC_TOXICOLOGY = 7 + + MITHRIDACY = 7 + + MONSTROUS_ANATOMY = 7 + + SHAPELING_ARTS = 7 + + BIZARRE = 15 + + DREADED = 15 + + RESPECTABLE = 15 diff --git a/bonemarketsolver/default_char.py b/bonemarketsolver/default_char.py new file mode 100644 index 0000000..06b993a --- /dev/null +++ b/bonemarketsolver/default_char.py @@ -0,0 +1,32 @@ +from enum import Enum + +class Char(Enum): + """Character stats""" + + SHADOWY = 300 + + DANGEROUS = 300 + + PERSUASIVE = 300 + + WATCHFUL = 300 + + PLAYER_OF_CHESS = 7 + + ARTISAN_OF_RED_SCIENCE = 7 + + GLASSWORK = 7 + + KATALEPTIC_TOXICOLOGY = 7 + + MITHRIDACY = 7 + + MONSTROUS_ANATOMY = 7 + + SHAPELING_ARTS = 7 + + BIZARRE = 15 + + DREADED = 15 + + RESPECTABLE = 15 diff --git a/bonemarketsolver/read_char.py b/bonemarketsolver/read_char.py new file mode 100644 index 0000000..4d23769 --- /dev/null +++ b/bonemarketsolver/read_char.py @@ -0,0 +1,5 @@ +try: + from .custom_char import * +except: + print("Note: custom_char.py does not exist. Using default_char.py") + from .default_char import *