-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstonetop.js
85 lines (80 loc) · 1.91 KB
/
stonetop.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { info } from "./scripts/logger.js";
import { CharacterType } from "./scripts/actor/character.js";
Hooks.on("renderPause", () => {
info("Overriding the default pause spinner.");
const pause = document.getElementById("pause");
pause.lastElementChild.innerText = "Time Frozen";
pause.firstElementChild.src = "/modules/stonetop/assets/graphics/pause.png";
});
Hooks.once("pbtaSheetConfig", () => {
if (!game.user.isGM) return;
// Disable the sheet config form.
info("Setting up Stonetop sheet config.");
game.settings.set("pbta", "sheetConfigOverride", true);
// Define custom tags.
// game.pbta.tagConfigOverride = {
// // Tags available to any actor and item
// general: '[{"value":"fire"}]',
// actor: {
// // Tags available to all actors
// all: '[{"value":"person"}]',
// // Tags available to a specific actor type set up on game.pbta.sheetConfig.actorTypes (e.g. "character", "npc")
// character: '[{"value":"mook"}]',
// },
// item: {
// // Tags available to all actors
// all: '[{"value":"consumable"}]',
// // Tags available to a specific item type (e.g. "equipment", "move")
// move: '[{"value":"sword"}]',
// },
// };
game.pbta.sheetConfig = {
rollFormula: "2d6",
statToggle: {
label: "Debility",
modifier: 'dis',
},
rollResults: {
failure: {
start: null,
end: 6,
label: "Miss",
},
partial: {
start: 7,
end: 9,
label: "Weak Hit",
},
success: {
start: 10,
end: 12,
label: "Strong Hit!",
},
},
actorTypes: {
character: CharacterType,
npc: {
attributes: {
hp: {
type: "Resource",
label: "Hit Points",
position: "left",
},
armor: {
type: "Resource",
label: "Armor",
position: "left",
},
instinct: {
type: "Text",
label: "Instinct",
position: "top",
},
},
moveTypes: {
gm: "GM Moves",
},
},
},
}
});