Add maintain/duration for maleficas
All checks were successful
Release Creation / build (release) Successful in 59s
All checks were successful
Release Creation / build (release) Successful in 59s
This commit is contained in:
@@ -476,6 +476,12 @@
|
||||
"duration": {
|
||||
"label": "Duration"
|
||||
},
|
||||
"maintain": {
|
||||
"label": "Maintain"
|
||||
},
|
||||
"choiceMaintainDuration": {
|
||||
"label": "Choice Maintain/Duration"
|
||||
},
|
||||
"description": {
|
||||
"label": "Description"
|
||||
},
|
||||
|
||||
@@ -11,7 +11,11 @@ export default class HellbornMalefica extends foundry.abstract.TypeDataModel {
|
||||
schema.domain = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.MALEFICA_DOMAINS, initial: "adfectus" })
|
||||
schema.level = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.MALEFICA_LEVELS, initial: "1" })
|
||||
schema.time = new fields.StringField({ required: true, initial : "" })
|
||||
|
||||
schema.choiceMaintainDuration = new fields.StringField({ required: true, initial : "maintain", choices: {"maintain": "Maintain", "duration": "Duration"} })
|
||||
schema.duration = new fields.StringField({ required: true, initial : "" })
|
||||
schema.maintain = new fields.StringField({ required: true, initial : "" })
|
||||
|
||||
schema.hasDamage = new fields.BooleanField({ required: true, initial: false })
|
||||
schema.damage = new fields.StringField({ required: false, initial : "" })
|
||||
schema.damageType = new fields.StringField({ required: false, initial : "" })
|
||||
|
||||
@@ -6,7 +6,11 @@
|
||||
<li><strong>Domain : </strong>{{upperFirst system.domain}}</li>
|
||||
<li><strong>Level : </strong>{{getRomanLevel system.level}}</li>
|
||||
<li><strong>Time : </strong>{{system.time}}</li>
|
||||
<li><strong>Duration : </strong>{{system.duration}}</li>
|
||||
{{#if (eq system.choiceMaintainDuration "duration")}}
|
||||
<li><strong>Duration : </strong>{{system.duration}}</li>
|
||||
{{else}}
|
||||
<li><strong>Maintain : </strong>{{system.maintain}}</li>
|
||||
{{/if}}
|
||||
<li><strong>Range : </strong>{{system.range}}</li>
|
||||
<li><strong>Target : </strong>{{system.target}}</li>
|
||||
<li>{{{system.description}}}</li>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<li><strong>Quote : </strong>{{system.quote}}</li>
|
||||
<li><strong>Bonus : </strong>{{system.bonus}}</li>
|
||||
<li><strong>Penalty : </strong>{{system.penalty}}</li>
|
||||
<li>{{{system.description}}}</li>
|
||||
<li>{{{system.positiveEffect}}}</li>
|
||||
<li>{{{system.negativeEffect}}}</li>
|
||||
<li><strong>Description : </strong>{{{system.description}}}</li>
|
||||
<li><strong>Positive Effect : </strong>{{{system.positiveEffect}}}</li>
|
||||
<li><strong>Negative Effect : </strong>{{{system.negativeEffect}}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,7 +8,14 @@
|
||||
{{formField systemFields.domain value=system.domain localize=true}}
|
||||
{{formField systemFields.level value=system.level localize=true}}
|
||||
{{formField systemFields.time value=system.time localize=true }}
|
||||
{{formField systemFields.duration value=system.duration localize=true}}
|
||||
|
||||
{{formField systemFields.choiceMaintainDuration value=system.choiceMaintainDuration localize=true }}
|
||||
{{#if (eq system.choiceMaintainDuration "duration")}}
|
||||
{{formField systemFields.duration value=system.duration localize=true}}
|
||||
{{else}}
|
||||
{{formField systemFields.maintain value=system.maintain localize=true}}
|
||||
{{/if}}
|
||||
|
||||
{{formField systemFields.range value=system.range localize=true}}
|
||||
{{formField systemFields.target value=system.target localize=true}}
|
||||
{{formField systemFields.hasDamage value=system.hasDamage localize=true}}
|
||||
|
||||
Reference in New Issue
Block a user