Minor fixes
This commit is contained in:
@ -78,6 +78,7 @@ export const SYSTEM = {
|
||||
SPELL_RANGE: SPELL.RANGE,
|
||||
WEAPON_TYPE: WEAPON.WEAPON_TYPE,
|
||||
WEAPON_CLASS: WEAPON.WEAPON_CLASS,
|
||||
COMBAT_PROGRESSION_DICE: WEAPON.COMBAT_PROGRESSION_DICE,
|
||||
MONEY,
|
||||
ASCII,
|
||||
ROLL_TYPE,
|
||||
|
@ -4,6 +4,15 @@ export const WEAPON_TYPE = {
|
||||
"ranged": "LETHALFANTASY.Weapon.WeaponType.ranged"
|
||||
}
|
||||
|
||||
export const COMBAT_PROGRESSION_DICE = {
|
||||
"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",
|
||||
|
@ -4,7 +4,7 @@ export const defaultItemImg = {
|
||||
equipment: "systems/fvtt-lethal-fantasy/assets/icons/icon_equipment.webp",
|
||||
skill: "systems/fvtt-lethal-fantasy/assets/icons/icon_skill.webp",
|
||||
gift: "systems/fvtt-lethal-fantasy/assets/icons/icon_gift.webp",
|
||||
invulnerability: "systems/fvtt-lethal-fantasy/assets/icons/icon_invulnerability.webp",
|
||||
vulnerability: "systems/fvtt-lethal-fantasy/assets/icons/icon_vulnerability.webp",
|
||||
shield: "systems/fvtt-lethal-fantasy/assets/icons/icon_shield.webp",
|
||||
spell: "systems/fvtt-lethal-fantasy/assets/icons/icon_spell.webp",
|
||||
miracle: "systems/fvtt-lethal-fantasy/assets/icons/icon_miracle.webp"
|
||||
|
@ -6,6 +6,7 @@ export default class LethalFantasyVulnerability extends foundry.abstract.TypeDat
|
||||
|
||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||
schema.gainedPoints = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||
|
||||
return schema
|
||||
}
|
||||
|
@ -19,10 +19,11 @@ export default class LethalFantasySkill extends foundry.abstract.TypeDataModel {
|
||||
damageS: new fields.StringField({required: true, initial: ""}),
|
||||
damageM: new fields.StringField({required: true, initial: ""})
|
||||
})
|
||||
schema.hands = new fields.StringField({ required: true, initial: "1", choices: ["1", "2"] })
|
||||
schema.hands = new fields.StringField({ required: true, initial: "1", choices: {"1": "1", "2": "2"} })
|
||||
|
||||
schema.defenseMax = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||
schema.secondsToAttack = new fields.StringField({required: true, initial: ""})
|
||||
schema.combatProgressionDice = new fields.StringField({required: true, initial: "d4", choices: SYSTEM.COMBAT_PROGRESSION_DICE})
|
||||
|
||||
schema.speed = new fields.SchemaField({
|
||||
simpleAim: new fields.StringField({required: true, initial: ""}),
|
||||
|
Reference in New Issue
Block a user