Initial import
This commit is contained in:
@ -1,47 +1,13 @@
|
||||
/* -------------------------------------------- */
|
||||
import { EcrymeCommands } from "../app/tedeum-commands.js";
|
||||
|
||||
/* -------------------------------------------- */
|
||||
const __maxImpacts = { superficial: 4, light: 3, serious: 2, major: 1 }
|
||||
const __nextImpacts = { superficial: "light", light: "serious", serious: "major", major: "major" }
|
||||
const __effect2Impact = ["none", "superficial", "superficial", "light", "light", "serious", "serious", "major", "major"]
|
||||
const __cephalySuccess = {
|
||||
1: "cephaly-success-2",
|
||||
2: "cephaly-success-2",
|
||||
3: "cephaly-success-4",
|
||||
4: "cephaly-success-4",
|
||||
5: "cephaly-success-6",
|
||||
6: "cephaly-success-6",
|
||||
7: "cephaly-success-8",
|
||||
8: "cephaly-success-8",
|
||||
9: "cephaly-success-9",
|
||||
10: "cephaly-success-10"
|
||||
}
|
||||
const __cephalyFailure = {
|
||||
1: "cephaly-failure-2",
|
||||
2: "cephaly-failure-2",
|
||||
3: "cephaly-failure-4",
|
||||
4: "cephaly-failure-4",
|
||||
5: "cephaly-failure-6",
|
||||
6: "cephaly-failure-6",
|
||||
7: "cephaly-failure-8",
|
||||
8: "cephaly-failure-8",
|
||||
9: "cephaly-failure-9",
|
||||
10: "cephaly-failure-10"
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
export class EcrymeUtility {
|
||||
export class TeDeumUtility {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async init() {
|
||||
Hooks.on('renderChatLog', (log, html, data) => EcrymeUtility.chatListeners(html));
|
||||
Hooks.on("getChatLogEntryContext", (html, options) => EcrymeUtility.chatMenuManager(html, options));
|
||||
Hooks.on('renderChatLog', (log, html, data) => TeDeumUtility.chatListeners(html));
|
||||
Hooks.on("getChatLogEntryContext", (html, options) => TeDeumUtility.chatMenuManager(html, options));
|
||||
|
||||
this.rollDataStore = {}
|
||||
this.defenderStore = {}
|
||||
|
||||
EcrymeCommands.init();
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user