Fix shield definition
This commit is contained in:
parent
98242fe0a0
commit
43c00f2214
@ -338,6 +338,9 @@
|
|||||||
},
|
},
|
||||||
"Shield": {
|
"Shield": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
|
"hascover": {
|
||||||
|
"label": "Provides cover"
|
||||||
|
},
|
||||||
"equipped": {
|
"equipped": {
|
||||||
"label": "Equipped"
|
"label": "Equipped"
|
||||||
},
|
},
|
||||||
|
@ -8,7 +8,8 @@ export default class LethalFantasyShield extends foundry.abstract.TypeDataModel
|
|||||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
schema.defense = new fields.StringField({required: true, initial: "d4", choices: SYSTEM.SHIELD_DEFENSE_DICE})
|
schema.defense = new fields.StringField({required: true, initial: "d4", choices: SYSTEM.SHIELD_DEFENSE_DICE})
|
||||||
schema.movementreduction = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
schema.movementreduction = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||||
|
schema.hascover = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
|
||||||
schema.standing = new fields.SchemaField({
|
schema.standing = new fields.SchemaField({
|
||||||
min: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
min: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
||||||
max: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
max: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"download": "#{DOWNLOAD}#",
|
"download": "#{DOWNLOAD}#",
|
||||||
"url": "#{URL}#",
|
"url": "#{URL}#",
|
||||||
"license": "LICENSE",
|
"license": "LICENSE",
|
||||||
"version": "12.0.7",
|
"version": "12.0.8",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Uberwald",
|
"name": "Uberwald",
|
||||||
|
@ -11,15 +11,21 @@
|
|||||||
<div class="shift-right">
|
<div class="shift-right">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{formField systemFields.hascover value=system.hascover}}
|
||||||
|
|
||||||
|
{{#if system.hascover}}
|
||||||
<label>Cover vs ranged attacks</label>
|
<label>Cover vs ranged attacks</label>
|
||||||
<div class="shift-right">
|
<div class="shift-right">
|
||||||
<label>Standing </label>
|
<label>Standing </label>
|
||||||
<div class="flexrow">{{formField systemFields.standing.fields.min value=system.standing.min}} ... 30</div>
|
<div class="flexrow">{{formField systemFields.standing.fields.min value=system.standing.min}} ... 30
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="shift-right">
|
<div class="shift-right">
|
||||||
<label>Crouching</label>
|
<label>Crouching</label>
|
||||||
<div class="flexrow">{{formField systemFields.crouching.fields.min value=system.crouching.min}} ... 30</div>
|
<div class="flexrow">{{formField systemFields.crouching.fields.min value=system.crouching.min}}
|
||||||
|
... 30</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user