Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Moerill committed Jan 4, 2021
1 parent 6933dc0 commit cbdcacd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.0.1

- *Fix* general rolls for players not working.

# v1.0

- *New Feature* Autoroll attack and dmg rolls!
Expand Down
9 changes: 5 additions & 4 deletions js/chat/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,11 @@ export default class Mars5eMessage extends ChatMessage {
static async autoRoll(data) {
if (!(window.mars5e.autoRoll.hit || window.mars5e.autoRoll.dmg)) return;
const message = new CONFIG.ChatMessage.entityClass(data);
await message.autoRoll();
data.content = message.card.outerHTML;
if (await message.autoRoll()) {
data.content = message.card.outerHTML;

await Mars5eUserStatistics.update(game.user, message.mars5eStatistics);
message.resetStatistics();
await Mars5eUserStatistics.update(game.user, message.mars5eStatistics);
message.resetStatistics();
}
}
}
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "mars-5e",
"title": "Mars 5e - Moerills alternative rolling style for 5e",
"description": "This module provides an opinionated alternative to how the roll workflow in DnD5e and how they're displayed.<br>Main goal is to provide some flexibility in how much information is displayed to the players from the GM side, while also automating some basic tasks. To avoid having to care about all possible edge cases and houserules almost every automatic generated result is toggleable.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Moerill",
"esmodules": ["js/index.js"],
"styles": ["mars-5e.css"],
"minimumCoreVersion": "0.7.8",
"compatibleCoreVersion": "0.7.9",
"socket": true,
"manifest": "https://raw.githubusercontent.com/Moerill/fvtt-mars-5e/master/module.json",
"download": "https://github.com/Moerill/fvtt-mars-5e/releases/download/v1.0.0/v1.0.0.zip",
"download": "https://github.com/Moerill/fvtt-mars-5e/releases/download/v1.0.1/v1.0.1.zip",
"url": "https://github.com/Moerill/fvtt-mars-5e",
"languages": [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "module-template",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit cbdcacd

Please sign in to comment.