Improved typing of Creature Properties
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import '/imports/parser/parseTree/array';
|
||||
import factories from '/imports/parser/parseTree';
|
||||
import InputProvider from '/imports/api/engine/action/functions/userInput/InputProvider';
|
||||
import InputProvider, { CastSpellParams, CheckParams } from '/imports/api/engine/action/functions/userInput/InputProvider';
|
||||
import ParseNode from '/imports/parser/parseTree/ParseNode';
|
||||
import rollDice from '/imports/parser/rollDice';
|
||||
import ResolveLevel from './types/ResolveLevel';
|
||||
@@ -53,5 +53,17 @@ const computationInputProvider: InputProvider = {
|
||||
chosen.push(choices[i]._id);
|
||||
}
|
||||
return chosen;
|
||||
}
|
||||
},
|
||||
async targetIds() {
|
||||
return [];
|
||||
},
|
||||
async advantage() {
|
||||
return 0;
|
||||
},
|
||||
async check(input: CheckParams) {
|
||||
return input;
|
||||
},
|
||||
async castSpell(input: CastSpellParams) {
|
||||
return input;
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user