Currently conditions are hard backed into glyphs. We should generalize this system such that the conditions are applicable based on glyphs. This will increase the flexibility of the glyph attributes.
For example, item usage for glyph activation often appear as while using %ITEM%, this can simply be configured with the glyph.
The hope is that conditions don't need to be programmed again for attributes, or at least the text for the conditions. Additionally this can cleanup tooltips and allow conditions to be added much more cleanly.
Justification
Currently conditions are hard backed into glyphs. We should generalize this system such that the conditions are applicable based on glyphs. This will increase the flexibility of the glyph attributes.
For example, item usage for glyph activation often appear as
while using %ITEM%
, this can simply be configured with the glyph.The hope is that conditions don't need to be programmed again for attributes, or at least the text for the conditions. Additionally this can cleanup tooltips and allow conditions to be added much more cleanly.
Requirements
Conditions
package underAttributes
Condition
interface/abstract class.UsingItem
condition (matchesMaterialClass
)TargetMaterial
condition (matchesMaterialClass
)TargetEntity
condition (matchesEntityClass
)ReceivedDamageType
condition (matchesDamageTypeClass
)CurrentBiome
condition (matchesBiomeClass
)