public override void ApplyBase(IStatContainer stats, IEventContainer events) { events.GetEvent(EventInfo.Identifier).Event.OnExecute += Explode; _damageMult = stats.AddStat(ExplosionDamageFactorInfo, DamageFactorBase * Coeffecient); _range = stats.AddStat(ExplosionRangeInfo, RangeBase); }
public override void RemoveBase(IStatContainer stats, IEventContainer events) { events.GetEvent(EventInfo.Identifier).Event.OnExecute -= Explode; }
public override void RemoveEffect(IModdable target) { IEventContainer container = target as IEventContainer; container.GetEvent(Event).Detach(Handler); }