当前位置: 首页>>代码示例>>C#>>正文


C# Attack.SetAffectsRoles_DPS方法代码示例

本文整理汇总了C#中Attack.SetAffectsRoles_DPS方法的典型用法代码示例。如果您正苦于以下问题:C# Attack.SetAffectsRoles_DPS方法的具体用法?C# Attack.SetAffectsRoles_DPS怎么用?C# Attack.SetAffectsRoles_DPS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Attack的用法示例。


在下文中一共展示了Attack.SetAffectsRoles_DPS方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Bethtilac


//.........这里部分代码省略.........
                    MaxNumTargets = 1,
                    Dodgable = false,
                    Parryable = false,
                    Blockable = false,
                    Missable = false,
                    SpellID = new float[] { 99463f, 100121f, 100832f, 100833f, 0f }[i],
                };
                BoilingSplatter.AffectsRole[PLAYER_ROLES.OffTank] = true;
                TheCinderweb.Attacks.Add(BoilingSplatter);
                #endregion

                #region Cinderweb Drone Burning Acid
                /* Burning Acid
                 * The Cinderweb Drone spits burning venom at a random enemy, dealing 19016 to 21316 Fire damage. */
                // 12 different version with layering damage ranges posting the most probable with alts
                // 10 man - http://ptr.wowhead.com/spell=99934
                // 25 man - http://ptr.wowhead.com/spell=100829
                // 10 man heroic - http://ptr.wowhead.com/spell=100830
                // 25 man heroic - http://ptr.wowhead.com/spell=100831
                Attack DroneBurningAcid = new Attack
                {
                    Name = "Cinderweb Drone: Burning Acid",
                    DamagePerHit = new float[] { (14419f + 16179f), (16022f + 17976f), (20612f + 23126f), (26347f + 29561f), 0f }[i],
                    DamageType = ItemDamageType.Fire,
                    AttackSpeed = 8f,
                    IsFromAnAdd = true,
                    MaxNumTargets = 1,
                    Dodgable = false,
                    Parryable = false,
                    Blockable = false,
                    Missable = false,
                    SpellID = new float[] { 99934f, 100829f, 100830f, 100831f, 0f }[i],
                };
                DroneBurningAcid.SetAffectsRoles_DPS();
                DroneBurningAcid.SetAffectsRoles_Healers();
                DroneBurningAcid.AffectsRole[PLAYER_ROLES.OffTank] = true;
                TheCinderweb.Attacks.Add(DroneBurningAcid);
                #endregion

                #region Fixate
                /* Fixate [Heroic Only]
                 * The Cinderweb Drone fixates on a random player, ignoring all others.*/
                // Two different ids used
                // http://www.wowhead.com/spell=99526
                if (i > 1)
                {
                    Attack DroneFixate = DroneMelee.Clone();
                    DroneFixate.DamagePerHit *= .25f;
                    DroneFixate.Duration = 10f;
                    DroneFixate.SpellID = 99526f;
                    DroneFixate.SetAffectsRoles_DPS();
                    DroneFixate.SetAffectsRoles_Healers();
                    TheCinderweb.Attacks.Add(DroneFixate);
                }
                #endregion
                #endregion

                #region Cinderweb Spiderling
                /* These tiny spiders climb out of caves below the Cinderweb. They instinctively move towards
                 * Cinderweb Drones for protection. Cinderweb Spiderlings can be consumed by larger spiders in order
                 * to restore some of their health.*/
                // http://www.wowhead.com/npc=52447
                TargetGroup CinderwebSpiderling = new TargetGroup
                {
                    Name = "Cinderweb Spiderling",
                    NearBoss = false,
开发者ID:LucasPeacecraft,项目名称:rawr,代码行数:67,代码来源:BossesT12.cs

示例2: Baleroc


//.........这里部分代码省略.........
                IncendiarySoul.SetAffectsRoles_Tanks();
                BothPhases.BuffStates.Add(IncendiarySoul);
                #endregion

                #region Shards of Torment
                /* Baleroc summons *warning* two chrystals *end warning* amonst his foes, which continually channel
                 * a shadowy beam on the player that is nearest to them.*/
                // Summon - http://ptr.wowhead.com/spell=99260
                // NPC - http://db.mmo-champion.com/c/53495/
                float ShardofTormentDebuff = new float[] { 40, 60, 40, 60 }[i];

                #region Torment
                // Deals 3500 Shadow damage per application to the nearest player, stacking once per second.
                // 10 man - http://ptr.wowhead.com/spell=99256
                // 25 man - http://ptr.wowhead.com/spell=100230
                // 10 man heroic - http://ptr.wowhead.com/spell=100231
                // 25 man heroic - http://ptr.wowhead.com/spell=100232
                // At most people should be taking 12 stacks of Torment
                float TormentDamageMultiplier = (1 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11) / 12f;
                float Affected = ((i == 0) || (i == 2 ) ? 1f : 2f );
                Attack Torment = new Attack
                {
                    Name = "Torment",
                    AttackSpeed = 34f,
                    DamagePerTick = new float[] { 3000, 3000, 4250, 4250, 0 }[i] * TormentDamageMultiplier,
                    IsDoT = true,
                    Duration = 12f,
                    TickInterval = 1f,
                    MaxNumTargets = Affected * 2f,
                    AttackType = ATTACK_TYPES.AT_AOE,
                    DamageType = ItemDamageType.Shadow,
                    SpellID = new float[] { 99256, 100230, 100231, 100232, 0 }[i],
                };
                Torment.SetAffectsRoles_DPS();
                BothPhases.Attacks.Add(Torment);
                #endregion

                #region Tormented
                /* When Torment fades from a player, they are afflicted by the Tormented effect, which increases
                 * Shadow damage taken by 250% and reduces healing done by 75%, for 40 sec.
                 * *Warning* Direct melee contact with any other player will apply a fresh copy of the Tormented effect
                 * to that player. [Heroic ONLY]*/
                // 10 man - http://ptr.wowhead.com/spell=99257
                // 25 man - http://ptr.wowhead.com/spell=99402
                // 10 man heroic - http://ptr.wowhead.com/spell=99403
                // 25 man heroic - http://ptr.wowhead.com/spell=99404
                // This should NEVER get placed on a Healer
                float TormentedDamageIncrease = new float[] { 2.5f, 2.5f, 5f, 5f, 0f }[i];
                BuffState Tormented = new BuffState
                {
                    Name = "Tormented",
                    Chance = Affected / (Max_Players[i] - Min_Healers[i] - Min_Tanks[i]),
                    Breakable = false,
                    Duration = ShardofTormentDebuff * 1000f,
                    Frequency = 34f,
                    Stats = new Stats() { SpellDamageTakenReductionMultiplier = -TormentedDamageIncrease, BonusHealingDoneMultiplier = -0.50f },
                };
                Tormented.SetAffectsRoles_DPS();
                BothPhases.BuffStates.Add(Tormented);
                #endregion

                #region Wave of Torment
                /* If there are no players within 15 yards of a Shard of Torment, the Shard pulses this effect, dealing
                 * 14250 to 15750 Shadow damage each second to all players.*/
                // 10 man - http://ptr.wowhead.com/spell=99261
                // 25 man - http://www.wowhead.com/spell=101636
开发者ID:LucasPeacecraft,项目名称:rawr,代码行数:67,代码来源:BossesT12.cs

示例3: Shannox


//.........这里部分代码省略.........
                    BuffState FeedingFrenzyRiplimb = new BuffState
                    {
                        Name = "Feeding Frenzy Riplimb",
                        Breakable = false,
                        Chance = 1,
                        Duration = 20 * 1000,
                        Frequency = BasicMeleeOT.AttackSpeed,
                        Stats = FeedingFrenzyStats,
                    };
                    FeedingFrenzyRiplimb.AffectsRole[PLAYER_ROLES.OffTank] = true;
                    Before30Pct.BuffStates.Add(FeedingFrenzyRiplimb);
                    After30Pct.BuffStates.Add(FeedingFrenzyRiplimb);
                }
                #endregion
                #endregion

                #region Rageface
                /* Shannox has two hounds, Rageface cannot be controlled, and will dart about from enemy to 
                 * enemy, changing targets periodically.*/
                // http://db.mmo-champion.com/c/53695/

                TargetGroup Rageface = new TargetGroup
                {
                    Name = "Rageface",
                    // One normal, Rageface should be the first dog to die
                    // Heroic Rageface stays alive the entire fight
                    Duration = BerserkTimer[i] * (i < 2 ? .35f : 1f) * 1000f,
                    Frequency = 1,
                    LevelOfTargets = 88,
                    NearBoss = false,
                    NumTargs = 1,
                    TargetID = 53695,
                };
                Rageface.SetAffectsRoles_DPS();
                Rageface.SetAffectsRoles_Healers();
                if (i < 2)
                    TwoDogsUp.Targets.Add(Rageface);
                else
                {
                    Before30Pct.Targets.Add(Rageface);
                    After30Pct.Targets.Add(Rageface);
                }

                #region Melee
                Attack RagefaceMelee = new Attack
                {
                    Name = "Rageface Melee",
                    AttackSpeed = 1.2f,
                    DamagePerHit = BossHandler.StandardMeleePerHit[(int)Content[i]] * 0.1f,
                    DamageType = ItemDamageType.Physical,
                    MaxNumTargets = 1f,
                    IsFromAnAdd = true,
                    AttackType = ATTACK_TYPES.AT_MELEE,
                };
                RagefaceMelee.SetAffectsRoles_DPS();
                RagefaceMelee.SetAffectsRoles_Healers();
                if (i < 2)
                    TwoDogsUp.Attacks.Add(RagefaceMelee);
                else
                {
                    Before30Pct.Attacks.Add(RagefaceMelee);
                    After30Pct.Attacks.Add(RagefaceMelee);
                }
                #endregion

                #region Face Rage
开发者ID:LucasPeacecraft,项目名称:rawr,代码行数:67,代码来源:BossesT12.cs


注:本文中的Attack.SetAffectsRoles_DPS方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。