-
Notifications
You must be signed in to change notification settings - Fork 0
/
tochange.js
50 lines (42 loc) · 2.02 KB
/
tochange.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
import TCActorSheet from "./modules/actor/sheet/tc-actor-sheet.js";
import preloadHandlebarsTemplates from "./modules/system/preload-templates.js";
Hooks.once("init", function() {
console.log("To Change | Initializing To Change System")
Actors.unregisterSheet("core", ActorSheet);
Actors.registerSheet(
game.system.id,
TCActorSheet,
{ label: game.i18n.localize("TC.Sheets.CharacterSheet"), types: ["character"], makeDefault: true }
);
CONFIG.fontDefinitions.FoglihtenNo07 = {
editor: true,
fonts: [
{
urls: [`systems/${game.system.id}/fonts/FoglihtenNo07.ttf`],
},
],
};
preloadHandlebarsTemplates();
});
Hooks.once("ready", function() {
$("#pause img").attr("class", "fa-spin pause-image");
});
Hooks.on("renderPause", function() {
$("#pause img").attr("class", "fa-spin pause-image");
});
Hooks.on("createActor", (document, options, userId) => {
const actorTG = document.system.transgender;
actorTG.MATransgender1 = game.i18n.localize("TC.Sheet.TransgenderChange1");
actorTG.MATransgender2 = game.i18n.localize("TC.Sheet.TransgenderChange2");
actorTG.MATransgender3 = game.i18n.localize("TC.Sheet.TransgenderChange3");
actorTG.PFTransgender1 = game.i18n.localize("TC.Sheet.TransgenderChange4");
actorTG.PFTransgender2 = game.i18n.localize("TC.Sheet.TransgenderChange5");
actorTG.PFTransgender3 = game.i18n.localize("TC.Sheet.TransgenderChange6");
actorTG.MFTransgender1 = game.i18n.localize("TC.Sheet.TransgenderChange7");
actorTG.MFTransgender2 = game.i18n.localize("TC.Sheet.TransgenderChange8");
actorTG.MFTransgender3 = game.i18n.localize("TC.Sheet.TransgenderChange9");
actorTG.PATransgender1 = game.i18n.localize("TC.Sheet.TransgenderChange10");
actorTG.PATransgender2 = game.i18n.localize("TC.Sheet.TransgenderChange11");
actorTG.PATransgender3 = game.i18n.localize("TC.Sheet.TransgenderChange12");
});
registerHooks(); // For compatibility with FoundryVTT 11. See about removing.