Arme : ajout du champ Type (Mêlée / Distance)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-29 17:05:28 +02:00
parent 5a8b151451
commit eceac4c122
5 changed files with 24 additions and 1 deletions

View File

@@ -82,6 +82,8 @@ export class CelestopolWeapon extends foundry.abstract.TypeDataModel {
const fields = foundry.data.fields
const reqInt = { required: true, nullable: false, integer: true }
return {
type: new fields.StringField({ required: true, nullable: false, initial: "melee",
choices: Object.keys(SYSTEM.WEAPON_COMBAT_TYPES) }),
degats: new fields.StringField({ required: true, nullable: false, initial: "0",
choices: Object.keys(SYSTEM.WEAPON_DAMAGE_TYPES) }),
portee: new fields.StringField({ required: true, nullable: false, initial: "contact",