Fix #20 : Track cured disorder

This commit is contained in:
LeRatierBretonnien 2025-01-07 19:51:49 +01:00
parent 1b1c2b0cfd
commit efc23f466b
4 changed files with 56 additions and 1 deletions

47
assets/ui/d100.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -210,6 +210,9 @@
"FIELDS": { "FIELDS": {
"description": { "description": {
"label": "Description" "label": "Description"
},
"cured": {
"label": "Cured"
} }
} }
}, },

View File

@ -5,7 +5,8 @@ export default class CthulhuEternalMentalDisorder extends foundry.abstract.TypeD
const schema = {} const schema = {}
schema.description = new fields.HTMLField({ required: true, textSearch: true }) schema.description = new fields.HTMLField({ required: true, textSearch: true })
schema.cured = new fields.BooleanField({ required: true, initial: false })
return schema return schema
} }

View File

@ -4,6 +4,10 @@
{{formInput fields.name value=source.name}} {{formInput fields.name value=source.name}}
</div> </div>
<fieldset>
{{formField systemFields.cured value=system.cured localize=true}}
</fieldset>
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput {{formInput