Add ammo to the gear types, and get more design stuff for the AmmoTracker
This commit is contained in:
parent
96e4d09e7b
commit
3ae7e9489a
9 changed files with 85 additions and 11 deletions
|
|
@ -19,8 +19,8 @@ export class AmmoTracker extends GenericPopoverMixin(HandlebarsApplicationMixin(
|
|||
};
|
||||
|
||||
static PARTS = {
|
||||
main: {
|
||||
template: filePath(`templates/Apps/popovers/AmmoTracker/content.hbs`),
|
||||
ammoList: {
|
||||
template: filePath(`templates/Apps/popovers/AmmoTracker/ammoList.hbs`),
|
||||
},
|
||||
};
|
||||
// #endregion
|
||||
|
|
@ -29,6 +29,12 @@ export class AmmoTracker extends GenericPopoverMixin(HandlebarsApplicationMixin(
|
|||
// #endregion
|
||||
|
||||
// #region Lifecycle
|
||||
async _preparePartContext(partId, data) {
|
||||
const ctx = { partId };
|
||||
ctx.canPin = false;
|
||||
ctx.ammos = data.ammos;
|
||||
return ctx;
|
||||
};
|
||||
// #endregion
|
||||
|
||||
// #region Actions
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ export const gameTerms = Object.preventExtensions({
|
|||
}),
|
||||
/** The types of items that contribute to the gear limit */
|
||||
gearItemTypes: new Set([
|
||||
`ammo`,
|
||||
`armour`,
|
||||
`weapon`,
|
||||
`shield`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue