This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
let uses = this.item.getFlag("wfrp4e", "uses") || 0;
uses++;
this.script.scriptNotification(`Used ${uses} times`)
this.item.setFlag("wfrp4e", "uses", uses);
if (uses >= 3)
{
this.effect.update({"flags.wfrp4e.applicationData.type" : "other"})
this.script.scriptNotification(`Used up`);
}