Working on 0.8.x
- Title's Advancements are now reflected on actor - Migration update
This commit is contained in:
@@ -71,14 +71,14 @@ export class L5rBaseDie extends DiceTerm {
|
||||
* Evaluate the roll term, populating the results Array
|
||||
* @override
|
||||
*/
|
||||
evaluate({ minimize = false, maximize = false } = {}) {
|
||||
evaluate({ minimize = false, maximize = false, async = false } = {}) {
|
||||
if (this._evaluated) {
|
||||
throw new Error(`This ${this.constructor.name} has already been evaluated and is immutable`);
|
||||
}
|
||||
|
||||
// Roll the initial number of dice
|
||||
for (let n = 1; n <= this.number; n++) {
|
||||
this.roll({ minimize, maximize });
|
||||
this.roll({ minimize, maximize, async });
|
||||
}
|
||||
|
||||
// Apply modifiers
|
||||
|
||||
@@ -294,14 +294,6 @@ export class RollL5r5e extends Roll {
|
||||
return renderTemplate(chatOptions.template, chatData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the HTML for the ChatMessage which should be added to the log
|
||||
* @return {Promise<jQuery>}
|
||||
*/
|
||||
async getHTML() {
|
||||
console.log(" --------- getHTML");
|
||||
}
|
||||
|
||||
/**
|
||||
* Transform a Roll instance into a ChatMessage, displaying the roll result.
|
||||
* This function can either create the ChatMessage directly, or return the data object that will be used to create.
|
||||
|
||||
Reference in New Issue
Block a user