Ajout entrainements
Some checks failed
Release Creation / build (release) Failing after 51s

This commit is contained in:
2026-04-19 19:06:47 +02:00
parent 1d6e6dd44e
commit 6883cc1020
37 changed files with 335 additions and 227 deletions

View File

@@ -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;