Paste #132952: v2

Date: 2025/04/24 20:14:59 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


armor_events:
    type: world
    events:
        on player item takes damage:
            - if <context.item.has_flag[bonusDurability]>:
                - inventory flag slot:<context.slot> bonusDurability:++
        after player item takes damage:
            - if <context.item.flag[bonusDurability].mod[2]> == 0:
                - inventory adjust slot:<context.slot> durability:<context.item.flag[bonusDurability].div[2]>