示例#1
0
        protected override void Execute(ModificationContext context, double level)
        {
            var decrementalFactor = CrewBasicSkill.GetDecrementalSkillFactor(level);

            context.SetValue(this.EffectiveDomains[0], AccuracyFactorSkillKey, decrementalFactor);
            context.SetValue(this.EffectiveDomains[0], AimingTimeFactorSkillKey, decrementalFactor);
            context.SetValue(this.EffectiveDomains[0], ShotDispersionFactorSkillKey, decrementalFactor);

            var incrementalFactor = CrewBasicSkill.GetIncrementalSkillFactor(level);

            context.SetValue(this.EffectiveDomains[0], TurretRotationSpeedSkillKey, incrementalFactor);
        }
示例#2
0
        protected override void Execute(ModificationContext context, double level)
        {
            var terrainResistanceFactor = CrewBasicSkill.GetDecrementalSkillFactor(level);

            context.SetValue(this.EffectiveDomains[0], TerrainResistanceFactorSkillKey, terrainResistanceFactor);
        }