示例#1
0
文件: Mods.cs 项目: ActionAlgot/srpg
        public override void OnDeserialization(object sender)
        {
            SourceMod = new MultiplierMod(SourceType, 1 - Effectiveness);
            ResultMod = new MultiplierMod(TargetStatType, Effectiveness);

            Conversion = new Conversion(SourceType, TargetStatType, Converter);
        }
示例#2
0
文件: Mods.cs 项目: ActionAlgot/srpg
        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);
        }