コード例 #1
0
 private static void Stone3(AbilityBuilder builder)
 {
     builder.Create(Feat.Stone3, PerkType.Stone)
     .Name("Stone III")
     .HasRecastDelay(RecastGroup.Stone, 4f)
     .HasActivationDelay(2.0f)
     .RequirementMP(7)
     .UsesActivationType(AbilityActivationType.Casted)
     .DisplaysVisualEffectWhenActivating()
     .HasImpactAction((activator, target, level) =>
     {
         ApplyStoneEffects(activator, target, Random.D10(2), 14);
     });
 }
コード例 #2
0
        private static void Jolt3(AbilityBuilder builder)
        {
            builder.Create(Feat.Jolt3, PerkType.Jolt)
            .Name("Jolt III")
            .HasRecastDelay(RecastGroup.Jolt, 4f)
            .RequirementMP(12)
            .UsesActivationType(AbilityActivationType.Casted)
            .HasActivationDelay(2f)
            .HasImpactAction((activator, target, level) =>
            {
                var damage = Random.D10(2);

                ApplyEffectToObject(DurationType.Instant, EffectVisualEffect(VisualEffect.Vfx_Com_Hit_Electrical), target);
                ApplyEffectToObject(DurationType.Instant, EffectDamage(damage), target);

                Enmity.ModifyEnmity(activator, target, damage + 8);
                CombatPoint.AddCombatPoint(activator, target, SkillType.RedMagic, 3);
            });
        }