RC-103 | Add Access to the rest of the item types that require it
This commit is contained in:
parent
4ccfc03e59
commit
43fe433900
5 changed files with 84 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { CommonItemData } from "./Common.mjs";
|
||||
import { gameTerms } from "../../gameTerms.mjs";
|
||||
|
||||
export class AmmoData extends CommonItemData {
|
||||
// MARK: Base Data
|
||||
|
|
@ -25,6 +26,24 @@ export class AmmoData extends CommonItemData {
|
|||
value: this.quantity,
|
||||
min: 0,
|
||||
},
|
||||
{
|
||||
id: `access`,
|
||||
type: `dropdown`,
|
||||
label: `Access`,
|
||||
path: `system.access`,
|
||||
value: this.access,
|
||||
limited: false,
|
||||
options: [
|
||||
{
|
||||
label: `RipCrypt.common.empty`,
|
||||
value: ``,
|
||||
},
|
||||
...gameTerms.Access.map(opt => ({
|
||||
label: `RipCrypt.common.access.${opt}`,
|
||||
value: opt,
|
||||
})),
|
||||
],
|
||||
},
|
||||
];
|
||||
return fields;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue