public override void OnDeserialization(object sender) { SourceMod = new MultiplierMod(SourceType, 1 - Effectiveness); ResultMod = new MultiplierMod(TargetStatType, Effectiveness); Conversion = new Conversion(SourceType, TargetStatType, Converter); }
public ConversionMod(StatType targetStat, double value, StatType sourceStat) { TargetStatType = targetStat; Effectiveness = value; SourceType = sourceStat; SourceMod = new MultiplierMod(SourceType, 1 - Effectiveness); ResultMod = new MultiplierMod(TargetStatType, Effectiveness); Conversion = new Conversion(SourceType, TargetStatType, Converter); }