This commit is contained in:
@@ -158,6 +158,11 @@ export class DonjonEtCieActor extends Actor {
|
||||
if (item) return DonjonEtCieRollDialog.createUsage(item);
|
||||
}
|
||||
|
||||
async resetUsage(itemId) {
|
||||
const item = this.items.get(itemId);
|
||||
if (item?.type === "entrainement") return item.resetUsageDie();
|
||||
}
|
||||
|
||||
#createPnjResourceProxy({ label, deltaPath, protectionPath = null }) {
|
||||
const delta = Number(foundry.utils.getProperty(this, deltaPath) ?? 0);
|
||||
const protection = protectionPath ? Number(foundry.utils.getProperty(this, protectionPath) ?? 0) : 0;
|
||||
|
||||
Reference in New Issue
Block a user