Paste #132958: combined

Date: 2025/04/24 21:28:33 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8


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