public static void ApplyUntrackedStatMod(StatCollection source, StatCollection target, StatType stat, float value, StatModificationType modType, params StatModifierOption[] statOptions) { if (target == null) { return; } target.ApplyPermanentMod(stat, value, modType, source.Owner, statOptions); SendStatChangeEvent(source.Owner, target.Owner, stat, value); }
public static void ApplyUntrackedStatMod(StatCollection source, StatCollection target, StatType stat, float value) { target.ApplyPermanentMod(stat, value, StatModificationType.Additive, source.Owner); SendStatChangeEvent(source.Owner, target.Owner, stat, value); }
public static void AdjustHealth(StatCollection source, StatCollection target, float value) { target.ApplyPermanentMod(StatType.Health, value, StatModificationType.Additive, source.Owner); SendStatChangeEvent(source.Owner, target.Owner, StatType.Health, value); }