Info message !
Release Creation / build (release) Successful in 3m21s

This commit is contained in:
2025-12-20 17:44:11 +01:00
parent 88a1e35648
commit 03051218b6
+20 -4
View File
@@ -1,5 +1,7 @@
import { SYSTEM_RDD, SYSTEM_SOCKET_ID, RDD_CONFIG, ITEM_TYPES } from "./constants.js"
const RDD_INFO_MESSAGE_URL = "https://gitea.scriptarium.org/Scriptarium/foundryvtt-reve-de-dragon/src/branch/v13/info-message.html"
import { RdDUtility } from "./rdd-utility.js"
import { TMRUtility } from "./tmr-utility.js"
import { TMRRencontres } from "./tmr-rencontres.js"
@@ -250,11 +252,11 @@ export class SystemReveDeDragon {
ITEM_TYPES.jeu,
ITEM_TYPES.race,
ITEM_TYPES.recettecuisine,
ITEM_TYPES.oeuvre,
ITEM_TYPES.oeuvre,
ITEM_TYPES.meditation,
ITEM_TYPES.queue,
ITEM_TYPES.ombre,
ITEM_TYPES.souffle,
ITEM_TYPES.ombre,
ITEM_TYPES.souffle,
ITEM_TYPES.tete,
ITEM_TYPES.casetmr,
ITEM_TYPES.sort,
@@ -414,10 +416,24 @@ export class SystemReveDeDragon {
<br>Vous trouverez quelques informations pour démarrer dans ce document : @Compendium[foundryvtt-reve-de-dragon.rappel-des-regles.7uGrUHGdPu0EmIu2]{Documentation MJ/Joueurs}
<br>La commande <code>/aide</code> dans le chat permet de voir les commandes spécifiques à Rêve de Dragon.</div>
` })
// Try to fetch the welcome message from the github repo "welcome-message-ecryme.html"
fetch(RDD_INFO_MESSAGE_URL)
.then(response => response.text())
.then(html => {
console.log("Fetched welcome message:", html);
ChatMessage.create({
user: game.user.id,
whisper: [game.user.id],
content: html
});
})
.catch(error => {
console.error("Error fetching welcome message:", error);
});
}
}
roll(rollData, actors, options){
roll(rollData, actors, options) {
RollDialog.create(rollData, actors, options)
}
}