Fix v14: /roll dans le tchat
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## 13.0.37 - L'urgence d'Illisys
|
## 13.0.37 - L'urgence d'Illisys
|
||||||
|
|
||||||
|
- Corrections v14
|
||||||
|
- on peut utiliser les commandes foundry dans le tchat (par exemple, /roll 1d6)
|
||||||
- Le Haut-rêve est de nouveau proposé dans les options d'initiative
|
- Le Haut-rêve est de nouveau proposé dans les options d'initiative
|
||||||
- Nouvelle règle optionnelle: choisir si seules les armes équipées sont proposées en combat
|
- Nouvelle règle optionnelle: choisir si seules les armes équipées sont proposées en combat
|
||||||
|
|
||||||
|
|||||||
@@ -218,16 +218,16 @@ export class RdDCommands {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Manage chat commands */
|
/* Manage chat commands */
|
||||||
processChatCommand(commandLine, content = '', msg = {}) {
|
processChatCommand(commandLine, content = '', msg = {}) {
|
||||||
// Setup new message's visibility
|
|
||||||
ChatUtility.applyRollMode(msg)
|
|
||||||
msg.type = 0;
|
|
||||||
|
|
||||||
if (!this.commandsTable) {
|
if (!this.commandsTable) {
|
||||||
this._registerCommands()
|
this._registerCommands()
|
||||||
}
|
}
|
||||||
|
|
||||||
let command = commandLine[0].toLowerCase();
|
let command = commandLine[0].toLowerCase();
|
||||||
if (this._isCommandHandled(command)) {
|
if (this._isCommandHandled(command)) {
|
||||||
|
// Setup new message's visibility
|
||||||
|
ChatUtility.applyRollMode(msg)
|
||||||
|
msg.type = 0;
|
||||||
let params = commandLine.slice(1);
|
let params = commandLine.slice(1);
|
||||||
this._processCommand(this.commandsTable, command, params, content, msg)
|
this._processCommand(this.commandsTable, command, params, content, msg)
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user