Initital commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const StatRoll = require("./StatRoll");
|
||||
|
||||
module.exports = class RollCheck {
|
||||
name;
|
||||
fn;
|
||||
|
||||
constructor(name, fn) {
|
||||
this.name = name;
|
||||
this.fn = fn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {StatRoll} statRoll
|
||||
*/
|
||||
test(statRoll) {
|
||||
return this.fn(statRoll);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user