Enhance credits and releas

This commit is contained in:
2022-02-12 21:49:26 +01:00
parent 80d58403ab
commit 7407e0b75d
3 changed files with 49 additions and 19 deletions

View File

@ -60,22 +60,8 @@ Hooks.once('init', async function () {
registerHandlebarsHelpers();
// Register hooks
registerHooks();
registerHooks()
// // If you need to add Handlebars helpers, here are a few useful examples:
// Handlebars.registerHelper('concat', function() {
// var outStr = '';
// for (var arg in arguments) {
// if (typeof arguments[arg] != 'object') {
// outStr += arguments[arg];
// }
// }
// return outStr;
// });
//
// Handlebars.registerHelper('toLowerCase', function(str) {
// return str.toLowerCase();
// });
});
/* -------------------------------------------- */
@ -100,9 +86,23 @@ function registerUsageCount( registerKey ) {
}
}
/* -------------------------------------------- */
function welcomeMessage() {
ChatMessage.create({
user: game.user.id,
whisper: [game.user.id],
content: `<div id="welcome-message-pegasus"><span class="rdd-roll-part">
<strong>Bienvenue dans Barbarians of Lemuria (Ludospherik version)</strong>
<p>Les livres nécessaires pour jouer sont disponibles sur le site de l'éditeur : http://www.ludospherik.fr/content/14-barbarians-of-lemuria</p>
<p>Bon jeu en Lemurie !</p>
` });
}
/* -------------------------------------------- */
Hooks.once('ready', async function () {
registerUsageCount('bol')
welcomeMessage()
});