Skip to content

Commit

Permalink
Merge pull request #130 from Moerill/2.15.2
Browse files Browse the repository at this point in the history
2.15.2
  • Loading branch information
Geekswordsman authored Jul 22, 2022
2 parents b627c35 + 495b6e9 commit a6f4a19
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 59 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# v2.15.2
- ***IMPORTANT*** Token Mold no longer supports v8 of Foundry.
- FoundryVTT v10 Compatibility Update!
- Updated Portugese adjectives, thanks to @Kingdorugha!
- **Fix** Scaling issue with scenes that have large grid units
- **Fix** You can no longer configure Token Mold to completely remove names, resulting in errors
- **Fix** Updated compendium information
- Various minor fixes and improvements to logging, updated documentation.

# v2.15.0
- Added support for DCC and SW5E systems, thanks to adotor and burndaflame respectively!
- Added integration with the Developer Mode module, greatly reducing the clutter in the console log.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Don't like names at all? You can just let *Token-Mold* delete the tokens name so
Don't like how you set up all your tokens? Or you dislike the default settings set for a compendium? Then you got the perfect module! Set your wanted configuration in the menu and it will automatically get applied to every token you from now on create!

## Hit Point Rolling
(DnD5e only)
(DnD5e/DCC only)
To lazy to roll your minions hit points yourself? Don't worry, *Token-Mold* automates that for you!
If you have a hit dice formula defined for your NPC, your token will automatically roll and set the hp, as well as notify you (if set to).
![HP Rolling](doc/hp_rolling.webp)
Expand Down
2 changes: 1 addition & 1 deletion assets/adjectives.db

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,7 @@
"tmold.stat.attributeNone": "None",
"tmold.stat.attributeName": "Name",
"tmold.stat.attributeDelete": "Delete",
"tmold.stat.attributeAdd": "Add Attribute"
"tmold.stat.attributeAdd": "Add Attribute",

"tmold.warn.removeName": "Can not configure Token Mold to completely remove name."
}
18 changes: 12 additions & 6 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"id": "token-mold",
"name": "token-mold",
"title": "Token Mold",
"description": "<p>Gives the option to cast your tokens into a mold of your choosing.</p> <p>Possible options for your mold include:</p> <ul><li>Adding incrementing number suffixes.</li><li>Name generation for tokens.</li><li>Random adjective prefixes. (Examples: angry, calm, bloodthirsty, ...)</li><li>Rolling Hit Points by formula (dnd5e only)</li><li>Set token configuration on placement.</li><li>Providing an overlay to quickly check some stats on token hover.</li><li>Automatic creature size scaling (dnd5e only)</li></ul><hr>",
Expand All @@ -14,10 +15,15 @@
"url": "https://github.com/Moerill/token-mold",
"bugs": "https://github.com/Moerill/token-mold/issues",
"flags": {},
"version": "2.15.1",
"minimumCoreVersion": "0.8.4",
"compatibleCoreVersion": "9",
"scripts": [],
"version": "2.15.2",
"minimumCoreVersion": "9",
"compatibleCoreVersion": "10",
"compatibility": {
"minimum": "9",
"verified": "10",
"maximum": "10"
},
"scripts": [],
"esmodules": ["scripts/index.js"],
"styles": ["token-mold.css"],
"languages": [
Expand Down Expand Up @@ -53,15 +59,15 @@
"label": "Adjectives",
"module": "token-mold",
"path": "assets/adjectives.db",
"entity": "RollTable",
"type": "RollTable",
"private": false
}
],
"system": [],
"dependencies": [],
"socket": false,
"manifest": "https://raw.githubusercontent.com/Moerill/token-mold/master/module.json",
"download": "https://github.com/Moerill/token-mold/releases/download/v2.15.1/v2.15.1.zip",
"download": "https://github.com/Moerill/token-mold/releases/download/v2.15.2/v2.15.2.zip",
"protected": false,
"coreTranslation": false
}
5 changes: 4 additions & 1 deletion scripts/overlay.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export class TokenMoldOverlay extends BasePlaceableHUD {
static FOUNDRY_VERSION = 0;

static get defaultOptions() {
TokenMoldOverlay.FOUNDRY_VERSION = game.version ?? game.data.version;

const options = super.defaultOptions;
options.classes = options.classes.concat(["token-mold-overlay"]);
options.template = "modules/token-mold/templates/overlay.html";
Expand All @@ -15,7 +18,7 @@ export class TokenMoldOverlay extends BasePlaceableHUD {
const ret = {
icon: e.icon,
path: e.path,
value: getProperty(this.object.actor.data, e.path)
value: TokenMoldOverlay.FOUNDRY_VERSION >= 10 ? getProperty(this.object.actor, e.path) : getProperty(this.object.actor.data, e.path)
};
if (ret.value === "" || ret.value === null || ret.value === undefined)
return null;
Expand Down
Loading

0 comments on commit a6f4a19

Please sign in to comment.