IStatModifier - SmArtKar/AthenaFramework GitHub Wiki

IStatModifier can be used to modify stats of the linked object, be that equippedStatOffsets or baseStats

    public interface IStatModifier
    {
        public abstract void GearStatOffset(StatDef stat, ref float result);

        public abstract bool GearAffectsStat(StatDef stat);

        public abstract void GetValueOffsets(StatWorker worker, StatRequest req, bool applyPostProcess, ref float result);

        public abstract void GetValueFactors(StatWorker worker, StatRequest req, bool applyPostProcess, ref float result);

        // Must be added to AthenaCache.statmodCache to work
        // AthenaCache.AddCache(this, AthenaCache.statmodCache, parent.thingIDNumber)
    }