本文整理汇总了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;
}
}
示例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;
}
}