RC-45 | Weapon | Access
This commit is contained in:
parent
6cae7900aa
commit
649a75843f
2 changed files with 13 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { barAttribute, optionalInteger, requiredInteger } from "../helpers.mjs";
|
||||
import { gameTerms } from "../../gameTerms.mjs";
|
||||
|
||||
const { fields } = foundry.data;
|
||||
|
||||
|
|
@ -22,6 +23,12 @@ export class WeaponData extends foundry.abstract.TypeDataModel {
|
|||
}),
|
||||
damage: requiredInteger({ min: 0, initial: 0 }),
|
||||
wear: barAttribute(0, 0, 4),
|
||||
access: new fields.StringField({
|
||||
blank: true,
|
||||
nullable: false,
|
||||
trim: true,
|
||||
choices: gameTerms.Access,
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue