32 lines
553 B
JavaScript
32 lines
553 B
JavaScript
import { CommonItemData } from "./Common.mjs";
|
|
|
|
export class AmmoData extends CommonItemData {
|
|
// MARK: Base Data
|
|
prepareBaseData() {
|
|
super.prepareBaseData();
|
|
};
|
|
|
|
// MARK: Derived Data
|
|
prepareDerivedData() {
|
|
super.prepareDerivedData();
|
|
};
|
|
|
|
// #region Getters
|
|
// #endregion
|
|
|
|
// #region Sheet Data
|
|
getFormFields(_ctx) {
|
|
const fields = [
|
|
{
|
|
id: `quantity`,
|
|
type: `integer`,
|
|
label: `RipCrypt.common.quantity`,
|
|
path: `system.quantity`,
|
|
value: this.quantity,
|
|
min: 0,
|
|
},
|
|
];
|
|
return fields;
|
|
};
|
|
// #endregion
|
|
};
|