Add effects and tabs

This commit is contained in:
2025-12-13 21:13:26 +01:00
parent 809a7b80c2
commit 65dfb3ddff
13 changed files with 1146 additions and 27 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { SYSTEM } from "../config/system.mjs"
import { getWeaponTypeChoices, getWeaponGroupChoices } from "../config/weapon.mjs"
export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
static defineSchema() {
@@ -12,13 +13,13 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
schema.weaponType = new fields.StringField({
required: true,
initial: "light",
choices: SYSTEM.WEAPON_TYPE_CHOICES
choices: () => getWeaponTypeChoices()
})
schema.weaponGroup = new fields.StringField({
required: true,
initial: "longsword",
choices: SYSTEM.WEAPON_GROUP_CHOICES
choices: () => getWeaponGroupChoices()
})
// APC (Action Point Cost) - determined by weapon type