more minor refactoring of models/schemas

This commit is contained in:
Greg Gauthier 2024-06-24 09:41:56 +01:00
parent ccfe1fe19f
commit 5beb9dc544

View File

@ -20,7 +20,7 @@ mutation_model = {
'conscore': conscore_field, 'conscore': conscore_field,
'intscore': fields.Integer( 'intscore': fields.Integer(
required=True, required=True,
default=3, default=10,
min=3, min=3,
max=21, max=21,
description='The characters intelligence score' description='The characters intelligence score'
@ -51,7 +51,7 @@ hp_model = {
ma_model = { ma_model = {
'ams': fields.Integer(required=True, description='Attacker Mental Strength'), 'ams': fields.Integer(required=True, description='Attacker Mental Strength'),
'dms': fields.Integer(required=True, description='Defender Mental Strength'), 'dms': fields.Integer(required=True, description='Defender Mental Strength'),
'modifier': fields.Integer(required=True, description='Modifier For Mental Strength'), 'modifier': fields.Integer(required=True, description='Modifier For Mental Attack Roll'),
} }
character_model = { character_model = {
@ -62,6 +62,7 @@ encounter_model = {
'terrain': fields.String( 'terrain': fields.String(
required=True, required=True,
default="clear", default="clear",
description='The terrain being traversed by the party when the encounter roll is made' description='The terrain being traversed by the party when the encounter roll is made. Valid values are: '
'"clear", "mountains", "forest", "desert", "watery", "ruins", "deathlands"'
) )
} }