ComparableName


Description
The ComparableName scriptable object can be used in multiple ways. It can be used to remove effects, but is mainly used by non-stacking StatusEffects because duplicate effects are compared by the ComparableName and not the StatusEffectData. The reason for this is to allow different Status Effects to differentiate their values while still being considered same Status Effect.
For example, lets say you have a 'Weak Poison' and a 'Strong Poison', their ComparableNames would both be 'Poison' since they are the same Status Effect but with different values. If they aren't stackable it will also be able to properly calculate the duration when non-stacking behaviour is set to match the highest value.
Properties
Last updated