{
  "_id": "FZEu1HUc7dBLKGMq",
  "name": "Heiltrank",
  "type": "trapping",
  "img": "apothicarium/Potion%20de%20Guerison.png",
  "effects": [
    {
      "_id": "K7C1LFtqdLheiltr",
      "flags": {
        "wfrp4e": {
          "hide": false,
          "_legacyData": {
            "effectApplication": "actor",
            "effectTrigger": "invoke",
            "preventDuplicateEffects": false,
            "script": "let item = duplicate(this.item)\nitem.data.quantity.value--\nif (item.data.quantity.value < 0)\n   return ui.notifications.error(\"Keine Tränke übrig\")\n\nthis.actor.updateEmbeddedEntity(\"OwnedItem\", item)\n\nlet wounds = this.actor.data.data.status.wounds\nif (wounds.value == 0)\n  return ui.notifications.error(\"Kein Effekt bei 0 Wunden\")\nwounds.value += this.actor.data.data.characteristics.t.bonus\n\nui.notifications.notify(`${this.actor.data.data.characteristics.t.bonus} Wunden geheilt`)\n\nif (wounds.value > wounds.max)\n   wounds.value = wounds.max\n\nthis.actor.update({\"data.status.wounds\" : wounds})"
          }
        }
      },
      "changes": [],
      "disabled": false,
      "duration": {
        "startTime": null,
        "seconds": null,
        "combat": null,
        "rounds": null,
        "turns": null,
        "startRound": null,
        "startTurn": null
      },
      "tint": "#ffffff",
      "transfer": true,
      "_stats": {
        "compendiumSource": null,
        "duplicateSource": null,
        "coreVersion": "12.331",
        "systemId": "wfrp4e",
        "systemVersion": "8.5.1",
        "createdTime": null,
        "modifiedTime": null,
        "lastModifiedBy": null
      },
      "name": "Heiltrank",
      "img": "modules/wfrp4e-core/icons/equipment/herbs_and_draughts/healing-draught.png",
      "type": "base",
      "system": {
        "transferData": {
          "type": "document",
          "originalType": "document",
          "documentType": "Actor",
          "avoidTest": {
            "value": "none",
            "opposed": false,
            "prevention": true,
            "reversed": false
          },
          "testIndependent": false,
          "equipTransfer": false,
          "selfOnly": false,
          "prompt": false,
          "area": {
            "templateData": {
              "borderColor": null,
              "fillColor": null,
              "texture": null
            },
            "keep": false,
            "aura": {
              "transferred": false,
              "render": false
            },
            "duration": "sustained"
          },
          "zone": {
            "type": "zone",
            "transferred": false,
            "traits": {},
            "skipImmediateOnPlacement": false,
            "keep": false
          }
        },
        "itemTargetData": {
          "ids": [],
          "allItems": false
        },
        "scriptData": [
          {
            "label": "Heiltrank",
            "trigger": "manual",
            "script": "let item = duplicate(this.item)\nitem.data.quantity.value--\nif (item.data.quantity.value < 0)\n   return ui.notifications.error(\"Keine Tränke übrig\")\n\nthis.actor.updateEmbeddedEntity(\"OwnedItem\", item)\n\nlet wounds = this.actor.data.data.status.wounds\nif (wounds.value == 0)\n  return ui.notifications.error(\"Kein Effekt bei 0 Wunden\")\nwounds.value += this.actor.data.data.characteristics.t.bonus\n\nui.notifications.notify(`${this.actor.data.data.characteristics.t.bonus} Wunden geheilt`)\n\nif (wounds.value > wounds.max)\n   wounds.value = wounds.max\n\nthis.actor.update({\"data.status.wounds\" : wounds})",
            "options": {
              "targeter": false,
              "defending": false,
              "deleteEffect": false
            },
            "async": false
          }
        ],
        "zone": {
          "type": "zone",
          "traits": {},
          "skipImmediateOnPlacement": false
        },
        "sourceData": {
          "test": {}
        },
        "condition": {
          "value": null,
          "numbered": false
        }
      },
      "description": "",
      "origin": null,
      "statuses": [],
      "sort": 0,
      "_key": "!items.effects!FZEu1HUc7dBLKGMq.K7C1LFtqdLheiltr"
    }
  ],
  "folder": null,
  "flags": {
    "core": {
      "sourceId": "Item.FZEu1HUc7dBLKGMq"
    }
  },
  "_stats": {
    "compendiumSource": "Item.FZEu1HUc7dBLKGMq",
    "duplicateSource": null,
    "coreVersion": "12.331",
    "systemId": "wfrp4e",
    "systemVersion": "8.5.1",
    "createdTime": 1747402853379,
    "modifiedTime": 1747402853379,
    "lastModifiedBy": "mC699Qr7Z5o6lRTF"
  },
  "system": {
    "description": {
      "type": "String",
      "label": "Description",
      "value": "<p> <em> Ein Heiltrank kann jedoch, wie der Name schon sagt, Wunden heilen und sogar Knochenbrüche in Grenzen heilen. Der Trank wächst nicht nach und hat keine Auswirkungen auf jemanden, der tödlich verwundet wurde. </em> </p> \n <hr> \n <p> Nach der Absorption </p> \n <ul> \n <li> Wenn Sie mehr als 0 Wunden haben, können Sie sofort bis zu <strong> Ausdauerbonus </strong> zusätzliche Wunden wiederherstellen. </li> \n </ul> \n <hr> \n <div> <strong> Form </strong>: Trank </div> \n <div> <strong> Typ </strong>: Gebräu </div> \n <div> <strong> Handwerk </strong>: Beruf (Apotheker) und Beruf (Kräuterkenner) </div> \n <div> <strong> Wirkstoff</strong>: Hemlock, Malvenmoschus </div> \n <div> <strong> Hilfsstoff </strong>: Rinde, Honig, Spirituosen, Torf, Wildblumen </div>"
    },
    "gmdescription": {
      "type": "String",
      "label": "Description",
      "value": ""
    },
    "quantity": {
      "type": "Number",
      "label": "Quantity",
      "value": 1
    },
    "encumbrance": {
      "type": "Number",
      "label": "Encumbrance",
      "value": 0.2
    },
    "price": {
      "type": "String",
      "label": "Price",
      "gc": 0,
      "ss": 10,
      "bp": 0
    },
    "availability": {
      "type": "String",
      "label": "Availability",
      "value": "scarce"
    },
    "location": {
      "type": "Number",
      "label": "Location",
      "value": ""
    },
    "trappingType": {
      "type": "String",
      "label": "Trapping Type",
      "value": "drugsPoisonsHerbsDraughts"
    },
    "worn": false,
    "spellIngredient": {
      "type": "String",
      "value": ""
    },
    "qualities": {
      "label": "Qualities",
      "value": []
    },
    "flaws": {
      "label": "Flaws",
      "value": []
    },
    "damageToItem": {
      "value": null,
      "shield": null
    },
    "equipped": {
      "value": false
    }
  },
  "sort": 0,
  "ownership": {
    "default": 0,
    "mC699Qr7Z5o6lRTF": 3
  },
  "_key": "!items!FZEu1HUc7dBLKGMq"
}
