Roll damage + fix

This commit is contained in:
2025-01-05 10:25:58 +01:00
parent c7cc39886d
commit 614adecde7
36 changed files with 145 additions and 119 deletions

View File

@@ -1,4 +1,3 @@
import { ROLL_TYPE } from "../config/system.mjs"
import LethalFantasyUtils from "../utils.mjs"
export default class LethalFantasyActor extends Actor {
@@ -26,6 +25,7 @@ export default class LethalFantasyActor extends Actor {
return super.create(data, options);
}
async _preCreate(data, options, user) {
await super._preCreate(data, options, user)
@@ -41,13 +41,4 @@ export default class LethalFantasyActor extends Actor {
}
}
async rollResource(resource) {
if (this.type !== "character") return
await this.system.roll(ROLL_TYPE.RESOURCE, resource)
}
async rollSave(save, avantage) {
if (this.type !== "character") return
await this.system.roll(ROLL_TYPE.SAVE, save, avantage)
}
}