from totem to vermine - v0.0.12

This commit is contained in:
François-Xavier Guillois
2023-06-06 11:06:04 +02:00
parent d388c3ba4b
commit 2b5e639e9e
110 changed files with 369 additions and 9675 deletions
+11 -11
View File
@@ -5,19 +5,19 @@ export const registerHooks = function () {
*/
Hooks.once("ready", async () => {
console.info("Totem | System Initialized.");
console.info("Vermine 2047 | System Initialized.");
});
// changement de la pause
/*Hooks.on("renderPause", async function () {
if ($("#pause").attr("class") !== "paused") return;
$(".paused img").attr("src", 'systems/totem/assets/images/ui/vermine_pause.webp');
$(".paused img").attr("src", 'systems/vermine2047/assets/images/ui/vermine_pause.webp');
$(".paused img").css({ "opacity": 1});
$("#pause.paused figcaption").text("Communauté endormie...");
});*/
// Hooks.on('renderChatLog', (log, html, data) => TotemFight.chatListeners(html));
// Hooks.on('renderChatMessage', (message, html, data) => TotemFight.chatMessageHandler(message, html, data));
// Hooks.on('renderChatLog', (log, html, data) => VermineFight.chatListeners(html));
// Hooks.on('renderChatMessage', (message, html, data) => VermineFight.chatMessageHandler(message, html, data));
/**
* Create a macro when dropping an entity on the hotbar
@@ -35,11 +35,11 @@ export const registerHooks = function () {
Hooks.on('getSceneControlButtons', (controls) => {
/*controls.find((c) => c.name === 'token').tools.push({
name: 'Dice Roller',
title: game.i18n.localize("TOTEM.RollTool"),
title: game.i18n.localize("VERMINE.RollTool"),
icon: 'fas fa-dice-d6',
button: true,
onClick() {
TotemRoll.ui();
VermineRoll.ui();
}
});*/
});
@@ -51,15 +51,15 @@ export const registerHooks = function () {
Hooks.on("preCreateActor", function (actor) {
// console.log('pre create actor', actor);
if (actor.img == "icons/svg/mystery-man.svg") {
// actor.updateSource({"img": `systems/totem/icons/actors/${actor.type}.webp`});
// item.updateSource({"img": `systems/totem/icons/competence.webp`});
// actor.updateSource({"img": `systems/vermine2047/icons/actors/${actor.type}.webp`});
// item.updateSource({"img": `systems/vermine2047/icons/competence.webp`});
}
});
Hooks.on("preCreateItem", function (item) {
if (item.img == "icons/svg/item-bag.svg") {
item.updateSource({"img": `systems/totem/icons/items/${item.type}.webp`});
// item.updateSource({"img": `systems/totem/icons/competence.webp`});
item.updateSource({"img": `systems/vermine2047/icons/items/${item.type}.webp`});
// item.updateSource({"img": `systems/vermine2047/icons/competence.webp`});
}
});
@@ -98,7 +98,7 @@ export const registerHooks = function () {
},
shouldDisplayToChat: false,
iconClass: "fa-dice-d6",
description: "Roll Totem check"
description: "Roll Vermine 2047 check"
}));
});*/