public override void OnDeserialization(object sender) { targetMod = new MultiplierMod(TargetStatType, Effectiveness); Conversion = new Conversion(SourceType, TargetStatType, source => target => { targetMod.Affect(source); target.AddComponent(source); }); }
public GainMod(StatType targetStat, double value, StatType sourceStat) { TargetStatType = targetStat; Effectiveness = value; SourceType = sourceStat; targetMod = new MultiplierMod(TargetStatType, Effectiveness); Conversion = new Conversion(SourceType, TargetStatType, source => target => { targetMod.Affect(source); target.AddComponent(source); }); }
public override void Affect(StatSet statD) { SourceMod.Affect(statD); base.Affect(statD); }