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


C# Mooege.AddEffect方法代码示例

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


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

示例1: ProcessSkillTEST

 private static void ProcessSkillTEST(Player player, Mooege.Core.GS.Map.World world, SecondaryAnimationPowerMessage message)
 {
     switch (message.PowerSNO)
     {
         case Skills.Skills.Wizard.Utility.Archon:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 162301, DurationInTicks = (60 * 15) });
             break;
     }
 }
开发者ID:xsochor,项目名称:mooege,代码行数:9,代码来源:ClientEffect.cs

示例2: ProcessSkillMonk

 private static void ProcessSkillMonk(Player player, Mooege.Core.GS.Map.World world, SecondaryAnimationPowerMessage message)
 {
     int effectID = 0;
     switch (message.PowerSNO)
     {
         case Skills.Skills.Monk.Mantras.MantraOfEvasion:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 143964, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 99694, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.Mantras.MantraOfHealing:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 99948, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 140190, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.Mantras.MantraOfConviction:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 95955, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 146990, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.Mantras.MantraOfRetribution:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 142974, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 142987, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.SpiritSpenders.LethalDecoy:
             effectID = (player.Properties.Gender == 0) ? 99241 : 208435;
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 5), EffectID = effectID, NeedsActor = true }); // 60 ticks/s * 5 = 5s
             break;
         case Skills.Skills.Monk.SpiritSpenders.BreathOfHeaven:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 101174, });
             /*
              * move to effect
             Actor.Attributes[GameAttribute.Resource_Cur, player.ResourceID] -= 75f;
             GameAttributeMap atm = new GameAttributeMap();
             atm[GameAttribute.Resource_Cur, player.ResourceID] = Actor.Attributes[GameAttribute.Resource_Cur, player.ResourceID];
             atm.SendMessage(client, player.DynamicID);
              * */
             break;
         case Skills.Skills.Monk.SpiritSpenders.InnerSanctuary:
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 8), EffectID = 98557, NeedsActor = true });
             break;
         case Skills.Skills.Monk.SpiritSpenders.Serenity:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 123156, });
             world.AddEffect(new FXEffect { Actor = player, EffectID = 142890, });
             world.AddEffect(new FXEffect { Actor = player, EffectID = 143230, DurationInTicks = (60 * 3) });
             break;
         case Skills.Skills.Monk.SpiritSpenders.MysticAlly:
             effectID = (player.Properties.Gender == 0) ? 169904 : 123885;
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = -1, EffectID = effectID, NeedsActor = true }); // until is destroyed
             break;
         case Skills.Skills.Monk.SpiritSpenders.BlindingFlash:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 2588 });
             break;
     }
 }
开发者ID:xsochor,项目名称:mooege,代码行数:52,代码来源:ClientEffect.cs


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