Skip to content

Commit

Permalink
v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Moerill committed Dec 17, 2020
1 parent 24ec457 commit 02564aa
Show file tree
Hide file tree
Showing 13 changed files with 330 additions and 392 deletions.
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"use-tabs": true,
"single-quote": true,
"quote-props": "consistent",
"print-width": 140,
"semi": true
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.13

- Removed the dice rolling features. I moved them (in an improved way) into my new module <a href="https://github.com/Moerill/fvtt-mars-5e">Mars 5e</a>

# v0.12.3

- *FIX* fixes error when throwing private/Gm rolls
Expand Down
4 changes: 2 additions & 2 deletions dist/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mess",
"title": "Mess - Moerills enhancing super-suit(e)",
"description": "This module is a mix of QoL changes, enhancements for my game and stuff i play around with. For a complete feature list check the URL down below.",
"version": "0.12.3",
"version": "0.13.0",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9",
"author": "Moerill",
Expand Down Expand Up @@ -33,5 +33,5 @@
],
"manifest": "https://raw.githubusercontent.com/Moerill/mess/master/src/module.json",
"url": "https://github.com/Moerill/mess",
"download": "https://github.com/Moerill/mess/releases/download/v0.12.3/mess.zip"
"download": "https://github.com/Moerill/mess/releases/download/v0.13.0/mess.zip"
}
52 changes: 8 additions & 44 deletions dist/scripts/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scripts/index.js.map

Large diffs are not rendered by default.

15 changes: 2 additions & 13 deletions dist/templates/settings/dnd5e.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,5 @@
</div>

<h2>{{localize 'MESS.settings.dnd5e.rolling.header'}}<a class='mess-info' href='https://github.com/Moerill/mess#rolling-and-targeting-change'></a></h2>
<div class='form-checkbox-group'>
<input type='checkbox' data-dtype='boolean' name='modify-rolling' id='mess-modify-rolling' {{checked settings.modify-rolling}}/><label for='mess-modify-rolling'>{{localize 'MESS.settings.dnd5e.rolling.activate'}}</label>
<span class='mess-hint'>{{localize 'MESS.settings.dnd5e.rolling.hint'}}</span>
</div>
<div class='form-checkbox-group'>
<input type='checkbox' data-dtype='boolean' name='attack-card-always-public' id='mess-roll-mode' {{checked settings.attack-card-always-public}}/><label for='mess-roll-mode'>{{localize 'MESS.settings.dnd5e.rolling.mode.activate'}}</label>
<span class='mess-hint'>{{{localize 'MESS.settings.dnd5e.rolling.mode.hint'}}}</span>
</div>
<div class='form-checkbox-group'>
<input type='checkbox' data-dtype='boolean' name='max-critical' id='mess-max-critical' {{checked settings.max-critical}}/><label for='mess-max-critical'>{{localize 'MESS.settings.dnd5e.rolling.maxCrit.label'}}</label>
{{!-- does not exist atm <a class='mess-info' href='https://github.com/Moerill/mess#prepared-spell-tracker'></a>--}}
<span class='mess-hint'>{{localize 'MESS.settings.dnd5e.rolling.maxCrit.hint'}}</span>
</div>
<p><b>This feature got removed and replaced by a new and improved version in <a href="https://github.com/Moerill/fvtt-mars-5e">Mars 5e</a>.</b></p>
<p>But where are the autorolls? Don't worry, they'll be there, soon.</p>
7 changes: 4 additions & 3 deletions dist/templates/welcome-screen.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
}
</style>

<h1>Important!</h1>
<P>This update is only a quick fix for making the rolling system work again for FVTT 0.7.5. My <a href="https://github.com/Moerill/Mess/issues/109">plans</a> are taking to long, so i wanted to at least make the module work again in 0.7.5.<br>
Please check the <a href="https://github.com/Moerill/Mess/issues">GitHubs issue board</a> if you want to stay up to date on my plans and progress!</p>
<h1>Very Important!</h1>
<P><b>This update removes Mess rolling modifications for 5e.</b> (For everyone else nothing changes)!</p>
<p>If you liked those changes, do not fear, i reworked them and put them into its own module, with improved design, features, code base, ...! <em>The new module is called <a href="https://github.com/Moerill/fvtt-mars-5e">Mars 5e</a>.</em></p>
<p>It is not the same as MESS, but its the way i wanted to go and keep going. Its still missing automatic rolling, but this feature is planned for the next big(ger) update.</p>

<p style="font-weight: bold; text-align: right;">Best regards, <br>Moerill</p>
<h2></h2>
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": "0.12.3",
"version": "0.13.0",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mess",
"title": "Mess - Moerills enhancing super-suit(e)",
"description": "This module is a mix of QoL changes, enhancements for my game and stuff i play around with. For a complete feature list check the URL down below.",
"version": "0.12.3",
"version": "0.13.0",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9",
"author": "Moerill",
Expand Down Expand Up @@ -33,5 +33,5 @@
],
"manifest": "https://raw.githubusercontent.com/Moerill/mess/master/src/module.json",
"url": "https://github.com/Moerill/mess",
"download": "https://github.com/Moerill/mess/releases/download/v0.12.3/mess.zip"
"download": "https://github.com/Moerill/mess/releases/download/v0.13.0/mess.zip"
}
98 changes: 42 additions & 56 deletions src/scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,60 +1,46 @@
import { rolling } from './rolls';
import { MessSettings } from './settings.js';
import { dndTemplateSettings, changeTemplates } from './modify-templates.js';
import { changePlaceables } from './change-placeables.js';
import itemSortBtn from './actor-item-sort-btn.js';
import preparedSpellTracker from './prepared-spell-tracker.js';
import addScrolling from './add-scrolling.js';

import { initDraggableLists } from './draggable-lists';
import { initChatPopUp } from './chat-popup';

Hooks.on('ready', async function () {
if (game.settings.get('mess', 'actor-item-sort')) itemSortBtn();
if (game.settings.get('mess', 'prepared-spell-tracker'))
preparedSpellTracker();
if (game.settings.get('mess', 'add-scrolling')) addScrolling();

if (CONFIG.debug.mess) {
const actor = await fromUuid('Actor.xV3LUAg05Pz5MFTS');
actor.sheet.render(true);
}

// initChatPopUp();

if (!game.user.isGM) return;
// Edit next line to match module.
const module = game.modules.get('mess');
const title = module.data.title;
const moduleVersion = module.data.version;
game.settings.register(title, 'version', {
name: `${title} Version`,
default: '0.0.0',
type: String,
scope: 'world',
});
const oldVersion = game.settings.get(title, 'version');

if (!isNewerVersion(moduleVersion, oldVersion)) return;

(
await import(
/* webpackChunkName: "welcome-screen" */
'./welcome-screen.js'
)
).default();
import { MessSettings } from "./settings.js";
import { dndTemplateSettings, changeTemplates } from "./modify-templates.js";
import { changePlaceables } from "./change-placeables.js";
import itemSortBtn from "./actor-item-sort-btn.js";
import preparedSpellTracker from "./prepared-spell-tracker.js";
import addScrolling from "./add-scrolling.js";

Hooks.on("ready", async function () {
if (game.settings.get("mess", "actor-item-sort")) itemSortBtn();
if (game.settings.get("mess", "prepared-spell-tracker"))
preparedSpellTracker();
if (game.settings.get("mess", "add-scrolling")) addScrolling();

if (!game.user.isGM) return;
// Edit next line to match module.
const module = game.modules.get("mess");
const title = module.data.title;
const moduleVersion = module.data.version;
game.settings.register(title, "version", {
name: `${title} Version`,
default: "0.0.0",
type: String,
scope: "world",
});
const oldVersion = game.settings.get(title, "version");

if (!isNewerVersion(moduleVersion, oldVersion)) return;

(
await import(
/* webpackChunkName: "welcome-screen" */
"./welcome-screen.js"
)
).default();
});

Hooks.on('init', function () {
game.mess = {};
CONFIG.debug.mess = false;
MessSettings.init();

rolling();
Hooks.on("init", function () {
game.mess = {};
MessSettings.init();

dndTemplateSettings();
changeTemplates();
if (game.settings.get('mess', 'change-placeables')) changePlaceables();
// if (game.settings.get('mess', 'better-draggable-lists'))
// initDraggableLists();
dndTemplateSettings();
changeTemplates();
if (game.settings.get("mess", "change-placeables")) changePlaceables();
// if (game.settings.get('mess', 'better-draggable-lists'))
// initDraggableLists();
});
Loading

0 comments on commit 02564aa

Please sign in to comment.