automatically calculate base combat values
This commit is contained in:
parent
a020cb7403
commit
ecfbe9fa2a
15 changed files with 195 additions and 27 deletions
|
@ -33,7 +33,7 @@ class CheckFactory {
|
|||
|
||||
private checkOptions: DS4CheckFactoryOptions;
|
||||
|
||||
async execute(): Promise<ChatMessage | any> {
|
||||
async execute(): Promise<ChatMessage | unknown> {
|
||||
const rollCls: typeof Roll = CONFIG.Dice.rolls[0];
|
||||
|
||||
const formula = [
|
||||
|
@ -82,7 +82,7 @@ class CheckFactory {
|
|||
export async function createCheckRoll(
|
||||
targetValue: number,
|
||||
options: Partial<DS4CheckFactoryOptions> = {},
|
||||
): Promise<ChatMessage | any> {
|
||||
): Promise<ChatMessage | unknown> {
|
||||
// Ask for additional required data;
|
||||
const gmModifierData = await askGmModifier(targetValue, options);
|
||||
|
||||
|
@ -99,7 +99,7 @@ export async function createCheckRoll(
|
|||
// Possibly additional processing
|
||||
|
||||
// Execute roll
|
||||
await cf.execute();
|
||||
return cf.execute();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue