Skip to content

Commit

Permalink
Merge pull request dmdorman#1289 from aeauseth/main
Browse files Browse the repository at this point in the history
Publish 3.0.101
  • Loading branch information
aeauseth authored Oct 9, 2024
2 parents 812128f + 641c2d8 commit ea940be
Show file tree
Hide file tree
Showing 11 changed files with 376 additions and 243 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Releases

## Version 3.0.100 [Hero System 6e (Unofficial) v2](https://github.com/dmdorman/hero6e-foundryvtt)
## Version 3.0.101 [Hero System 6e (Unofficial) v2](https://github.com/dmdorman/hero6e-foundryvtt)
- We no longer test/verify with FoundryVTT V11. We encourage you upgrade to FoundryVTT v12.
- Talent/Skill/Perks as powers now toggle. [#1288](https://github.com/dmdorman/hero6e-foundryvtt/issues/1230)
- Improved/fixed Penalty Skill Levels. You can now have more than one PSL for different attacks.
- Slight performance increase when uploading HDC files.


## Version 3.0.100
- Added Effect Panel showing more details about effects on a token.
- Initial support for MULTIPLE ATTACK maneuver.
- Fixed issue with powers sometimes uploading out of order. [#1138](https://github.com/dmdorman/hero6e-foundryvtt/issues/1138)
Expand Down
14 changes: 8 additions & 6 deletions module/actor/actor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ export class HeroSystem6eActor extends Actor {

uploadPerformance.preItems = new Date() - uploadPerformance._d;
uploadPerformance._d = new Date();
await this.createEmbeddedDocuments("Item", itemsToCreate);
await this.createEmbeddedDocuments("Item", itemsToCreate, { render: false, renderSheet: false });
uploadPerformance.createItems = new Date() - uploadPerformance._d;
uploadPerformance._d = new Date();

Expand Down Expand Up @@ -1882,11 +1882,13 @@ export class HeroSystem6eActor extends Actor {
overrideValues
) {
if (this.id) {
await this.update({
[`system.characteristics.${key.toLowerCase()}.value`]:
this.system.characteristics[key.toLowerCase()].max,
});
//changes[`system.characteristics.${key.toLowerCase()}.value`] = this.system.characteristics[key.toLowerCase()].max
await this.update(
{
[`system.characteristics.${key.toLowerCase()}.value`]:
this.system.characteristics[key.toLowerCase()].max,
},
{ hideChatMessage: true },
);
} else {
this.system.characteristics[key.toLowerCase()].value =
this.system.characteristics[key.toLowerCase()].max;
Expand Down
2 changes: 2 additions & 0 deletions module/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1969,6 +1969,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
duration: "constant",
target: "self only",
costEnd: false,
refreshAttackDialogWhenChanged: true,
range: HERO.RANGE_TYPES.SELF,
editOptions: {
showAttacks: true,
Expand Down Expand Up @@ -2455,6 +2456,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
target: "self only",
range: HERO.RANGE_TYPES.SELF,
costEnd: false,
refreshAttackDialogWhenChanged: true,
editOptions: {
showAttacks: true,
editableOption_ALIAS: true,
Expand Down
8 changes: 4 additions & 4 deletions module/herosystem6e.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ Hooks.on("canvasReady", () => {
});

Hooks.once("ready", async function () {
// if (game.settings.get(game.system.id, "alphaTesting")) {
// CONFIG.compatibility.mode = 0;
// CONFIG.debug.combat = true;
// }
if (game.settings.get(game.system.id, "alphaTesting")) {
CONFIG.compatibility.mode = 0;
//CONFIG.debug.combat = true;
}

// Wait to register hotbar drop hook on ready so that modules could register earlier if they want to
Hooks.on("hotbarDrop", (bar, data, slot) => createHeroSystem6eMacro(bar, data, slot));
Expand Down
Loading

0 comments on commit ea940be

Please sign in to comment.