Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement slot-specific attribute modifiers #1446

Closed
calcastor opened this issue Nov 27, 2024 · 0 comments · Fixed by #1447
Closed

Implement slot-specific attribute modifiers #1446

calcastor opened this issue Nov 27, 2024 · 0 comments · Fixed by #1447

Comments

@calcastor
Copy link
Contributor

In ProjectAres, it was possible to specify a slot in which an attribute is applied to an item, as exemplified below (an excerpt from the global include for Overcast Network):

<item-mods>
    <rule>
        <match>
            <material>diamond leggings</material>
        </match>
        <modify show-attributes="false">
            <attribute amount="6" slot="slot.armor.legs">generic.armor</attribute>
            <attribute amount="400" slot="slot.armor.legs">generic.armorToughness</attribute>
        </modify>
    </rule>
</item-mods>

In this example, this option is helpful because it avoids applying these attributes when the item is held, only applying it if worn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant