Fix shield definition
This commit is contained in:
parent
da665ad955
commit
98242fe0a0
@ -49,6 +49,24 @@ export const MONEY = {
|
||||
}
|
||||
}
|
||||
|
||||
export const DICE_VALUES = {
|
||||
"d3": "D3",
|
||||
"d4": "D4",
|
||||
"d6": "D6",
|
||||
"d8": "D8",
|
||||
"d10": "D10",
|
||||
"d12": "D12",
|
||||
"d20": "D20"
|
||||
}
|
||||
|
||||
export const DEFENSE_DICE_VALUES = {
|
||||
"d3": "D3",
|
||||
"d4": "D4",
|
||||
"d6": "D6",
|
||||
"d8": "D8",
|
||||
"d10": "D10"
|
||||
}
|
||||
|
||||
export const ASCII = `
|
||||
······················································································································
|
||||
: :
|
||||
@ -78,7 +96,8 @@ export const SYSTEM = {
|
||||
SPELL_RANGE: SPELL.RANGE,
|
||||
WEAPON_TYPE: WEAPON.WEAPON_TYPE,
|
||||
WEAPON_CLASS: WEAPON.WEAPON_CLASS,
|
||||
COMBAT_PROGRESSION_DICE: WEAPON.COMBAT_PROGRESSION_DICE,
|
||||
COMBAT_PROGRESSION_DICE: DICE_VALUES,
|
||||
SHIELD_DEFENSE_DICE: DEFENSE_DICE_VALUES,
|
||||
MONEY,
|
||||
ASCII,
|
||||
ROLL_TYPE,
|
||||
|
@ -4,16 +4,6 @@ export const WEAPON_TYPE = {
|
||||
"ranged": "LETHALFANTASY.Weapon.WeaponType.ranged"
|
||||
}
|
||||
|
||||
export const COMBAT_PROGRESSION_DICE = {
|
||||
"d3": "D3",
|
||||
"d4": "D4",
|
||||
"d6": "D6",
|
||||
"d8": "D8",
|
||||
"d10": "D10",
|
||||
"d12": "D12",
|
||||
"d20": "D20"
|
||||
}
|
||||
|
||||
export const WEAPON_CLASS = {
|
||||
"longblade": "LETHALFANTASY.Weapon.WeaponClass.longblade",
|
||||
"shortblade": "LETHALFANTASY.Weapon.WeaponClass.shortblade",
|
||||
|
@ -6,8 +6,9 @@ export default class LethalFantasyShield extends foundry.abstract.TypeDataModel
|
||||
const requiredInteger = { required: true, nullable: false, integer: true }
|
||||
|
||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||
schema.defense = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: -50 })
|
||||
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.standing = new fields.SchemaField({
|
||||
min: 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}#",
|
||||
"url": "#{URL}#",
|
||||
"license": "LICENSE",
|
||||
"version": "12.0.6",
|
||||
"version": "12.0.7",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Uberwald",
|
||||
|
@ -2,24 +2,24 @@
|
||||
<div class="header">
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}" />
|
||||
{{formInput fields.name value=source.name}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
<div class="align-top">
|
||||
{{formField systemFields.defense value=system.defense}}
|
||||
{{formField systemFields.movementreduction value=system.movementreduction}}
|
||||
|
||||
<label>Standing</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.standing.fields.min value=system.standing.min}}
|
||||
{{formField systemFields.standing.fields.max value=system.standing.min}}
|
||||
</div>
|
||||
{{formField systemFields.defense value=system.defense}}
|
||||
|
||||
<div class="shift-right">
|
||||
</div>
|
||||
|
||||
<label>Cover vs ranged attacks</label>
|
||||
<div class="shift-right">
|
||||
<label>Standing </label>
|
||||
<div class="flexrow">{{formField systemFields.standing.fields.min value=system.standing.min}} ... 30</div>
|
||||
</div>
|
||||
<div class="shift-right">
|
||||
<label>Crouching</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.crouching.fields.min value=system.crouching.min}}
|
||||
{{formField systemFields.crouching.fields.max value=system.crouching.min}}
|
||||
</div>
|
||||
<div class="flexrow">{{formField systemFields.crouching.fields.min value=system.crouching.min}} ... 30</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="align-top">
|
||||
@ -36,7 +36,7 @@
|
||||
{{formField systemFields.autodestruction.fields.slashing value=system.autodestruction.slashing}}
|
||||
{{formField systemFields.autodestruction.fields.piercing value=system.autodestruction.piercing}}
|
||||
</div>
|
||||
|
||||
|
||||
{{formField systemFields.equipped value=system.equipped}}
|
||||
|
||||
{{formField systemFields.encLoad value=system.encLoad}}
|
||||
@ -51,11 +51,11 @@
|
||||
<fieldset>
|
||||
<legend>{{localize "LETHALFANTASY.Label.description"}}</legend>
|
||||
{{formInput
|
||||
systemFields.description
|
||||
enriched=enrichedDescription
|
||||
value=system.description
|
||||
name="system.description"
|
||||
toggled="false"
|
||||
systemFields.description
|
||||
enriched=enrichedDescription
|
||||
value=system.description
|
||||
name="system.description"
|
||||
toggled="false"
|
||||
}}
|
||||
</fieldset>
|
||||
</section>
|
Loading…
x
Reference in New Issue
Block a user