diff --git a/assets/ui/d100.svg b/assets/ui/d100.svg new file mode 100644 index 0000000..97fcdfd --- /dev/null +++ b/assets/ui/d100.svg @@ -0,0 +1,47 @@ + + diff --git a/lang/en.json b/lang/en.json index 02b46c7..86496b2 100644 --- a/lang/en.json +++ b/lang/en.json @@ -210,6 +210,9 @@ "FIELDS": { "description": { "label": "Description" + }, + "cured": { + "label": "Cured" } } }, diff --git a/module/models/mentaldisorder.mjs b/module/models/mentaldisorder.mjs index 0f7f6cc..a05888a 100644 --- a/module/models/mentaldisorder.mjs +++ b/module/models/mentaldisorder.mjs @@ -5,7 +5,8 @@ export default class CthulhuEternalMentalDisorder extends foundry.abstract.TypeD const schema = {} schema.description = new fields.HTMLField({ required: true, textSearch: true }) - + schema.cured = new fields.BooleanField({ required: true, initial: false }) + return schema } diff --git a/templates/mentaldisorder.hbs b/templates/mentaldisorder.hbs index 9dfccf1..275871f 100644 --- a/templates/mentaldisorder.hbs +++ b/templates/mentaldisorder.hbs @@ -4,6 +4,10 @@ {{formInput fields.name value=source.name}} +
+