Merge branch 'master' into 004_equipment_tracking

This commit is contained in:
Gesina Schwalbe 2020-12-29 16:14:51 +01:00
commit 3ebd8cd177
15 changed files with 81 additions and 113 deletions

View file

@ -23,12 +23,13 @@ export const DS4 = {
* @type {Object}
*/
itemAvailabilities: {
unset: "DS4.ItemAvailabilityUnset",
hamlet: "DS4.ItemAvailabilityHamlet",
village: "DS4.ItemAvailabilityVilage",
city: "DS4.ItemAvailabilityCity",
elves: "DS4.ItemAvailabilityElves",
dwarves: "DS4.ItemAvailabilityDwarves",
none: "DS4.ItemAvailabilityNone",
nowhere: "DS4.ItemAvailabilityNowhere",
},
/**

View file

@ -33,6 +33,9 @@ Hooks.once("init", async function () {
async function registerHandlebarsPartials() {
const templatePaths = [
"systems/ds4/templates/item/partials/description.hbs",
"systems/ds4/templates/item/partials/details.hbs",
"systems/ds4/templates/item/partials/effects.hbs",
"systems/ds4/templates/item/partials/body.hbs",
"systems/ds4/templates/actor/partials/items.hbs",
];
return loadTemplates(templatePaths);

View file

@ -26,7 +26,8 @@ interface DS4ItemBase {
interface DS4ItemPhysical {
quantity: number;
price: number;
availability: "hamlet" | "village" | "city" | "elves" | "dwarves" | "none";
availability: "hamlet" | "village" | "city" | "elves" | "dwarves" | "nowhere" | "unset";
storageLocation: string;
}
interface DS4ItemEquipable {