Add effects and tabs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user