automatically calculate base combat values

This commit is contained in:
Johannes Loher 2021-01-19 03:31:40 +01:00
parent a020cb7403
commit ecfbe9fa2a
15 changed files with 195 additions and 27 deletions

View file

@ -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();
}
/**