Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Jan 18, 2022
1 parent 734f626 commit f030be5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
7 changes: 5 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Item Piles Changelog

## Version 1.2.5
- Added missing handlebars method for Foundry v0.8.9

## Version 1.2.4 Hotfix
- Fixed error in `ItemPiles.API.addItems` throwing errors
- Fixed D&D 3.5e system not correctly implemented
Expand All @@ -16,10 +19,10 @@
- Fixed alt-quickdrop hotkey not creating a pile in the right location

## Version 1.2.1
- Fixed hotkey errors on Foundry 0.8.9
- Fixed hotkey errors on Foundry v0.8.9

## Version 1.2.0
- Now supports Foundry 0.8.9
- Now supports Foundry v0.8.9
- Added setting to output items picked up to chat
- Added setting to hide the "Item Piles" text in the actor header - useful if you have too many modules, and the header is getting crowded
- Added support for the Tormenta 20 system: <https://foundryvtt.com/packages/tormenta20>
Expand Down
3 changes: 2 additions & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CONSTANTS from "./constants.js";
import registerSettings, { checkSystem } from "./settings.js";
import registerSettings, { checkSystem, registerHandlebarHelpers } from "./settings.js";
import { registerSocket } from "./socket.js";
import API from "./api.js";
import * as lib from "./lib/lib.js";
Expand Down Expand Up @@ -71,6 +71,7 @@ Hooks.once("ready", () => {

checkSystem();
registerHotkeysPost();
registerHandlebarHelpers();
Hooks.callAll(HOOKS.READY);
});

Expand Down
8 changes: 8 additions & 0 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,12 @@ export async function checkSystem(){
}

return applyDefaultSettings();
}

export function registerHandlebarHelpers(){

Handlebars.registerHelper('concat', function(...args) {
return args.filter(str => typeof str !== "object").join("");
});

}

0 comments on commit f030be5

Please sign in to comment.