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

            Conversion = new Conversion(SourceType, TargetStatType, source => target => {
                targetMod.Affect(source);
                target.AddComponent(source);
            });
        }
示例#2
0
文件: Mods.cs 项目: ActionAlgot/srpg
        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);
            });
        }
示例#3
0
文件: Mods.cs 项目: ActionAlgot/srpg
 public override void Affect(StatSet statD)
 {
     SourceMod.Affect(statD);
     base.Affect(statD);
 }