5 private readonly Identifier[] afflictionIdentifiers;
7 private readonly Identifier replaceWith;
9 private readonly
float addedMultiplier;
23 foreach (Identifier afflictionIdentifier
in afflictionIdentifiers)
25 if (affliction.Identifier != afflictionIdentifier) {
continue; }
27 if (!replaceWith.IsEmpty)
31 abilityAffliction.Affliction =
new Affliction(afflictionPrefab, affliction.Strength * (1 + addedMultiplier));
void LogAbilityObjectMismatch()
CharacterAbilityModifyAffliction(CharacterAbilityGroup characterAbilityGroup, ContentXElement abilityElement)
override void ApplyEffect(AbilityObject abilityObject)
AfflictionPrefab is a prefab that defines a type of affliction that can be applied to a character....
static readonly PrefabCollection< AfflictionPrefab > Prefabs
Identifier[] GetAttributeIdentifierArray(Identifier[] def, params string[] keys)
float GetAttributeFloat(string key, float def)
Identifier GetAttributeIdentifier(string key, string def)
Prefab(ContentFile file, Identifier identifier)