本文整理汇总了C#中Server.Mobile.RemoveSkillMod方法的典型用法代码示例。如果您正苦于以下问题:C# Mobile.RemoveSkillMod方法的具体用法?C# Mobile.RemoveSkillMod怎么用?C# Mobile.RemoveSkillMod使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Mobile
的用法示例。
在下文中一共展示了Mobile.RemoveSkillMod方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Remove
public static void Remove(Mobile m)
{
if (m_Table.ContainsKey(m))
{
m.RemoveSkillMod(m_Table[m]);
m_Table.Remove(m);
}
m.EndAction(typeof(RogueShadowSpell));
}
示例2: RemoveEffect
public static void RemoveEffect(Mobile m)
{
if (m_Table.ContainsKey(m))
{
object[] mods = m_Table[m];
if (mods != null)
{
m.RemoveStatMod(((StatMod)mods[0]).Name);
m.RemoveSkillMod((SkillMod)mods[1]);
m.RemoveSkillMod((SkillMod)mods[2]);
}
m_Table.Remove(m);
m.BodyMod = 0;
m.EndAction(typeof(RogueSlyFoxSpell));
}
}
示例3: RemoveEffect
public static void RemoveEffect(Mobile m)
{
if (m_Table.ContainsKey(m))
{
object[] mods = (object[])m_Table[m];
if (mods != null)
{
m.RemoveStatMod(((StatMod)mods[0]).Name);
m.RemoveStatMod(((StatMod)mods[1]).Name);
m.RemoveSkillMod((SkillMod)mods[2]);
m.RemoveSkillMod((SkillMod)mods[3]);
m.RemoveSkillMod((SkillMod)mods[4]);
m.RemoveSkillMod((SkillMod)mods[5]);
m.RemoveSkillMod((SkillMod)mods[6]);
}
m_Table.Remove(m);
m.EndAction(typeof(RogueIntimidationSpell));
}
}
示例4: RemoveContext
public static void RemoveContext( Mobile m, AnimalFormContext context, bool resetGraphics )
{
m_Table.Remove( m );
if ( context.SpeedBoost )
m.Send( SpeedControl.Disable );
SkillMod mod = context.Mod;
if ( mod != null )
m.RemoveSkillMod( mod );
if ( resetGraphics )
{
m.HueMod = -1;
m.BodyMod = 0;
}
m.FixedParticles( 0x3728, 10, 13, 2023, EffectLayer.Waist );
context.Timer.Stop();
}
示例5: RemoveEffect
public static void RemoveEffect( Mobile m )
{
object[] mods = (object[])m_Table[m];
if ( mods != null )
{
m.RemoveStatMod( ((StatMod)mods[0]).Name );
m.RemoveStatMod( ((StatMod)mods[1]).Name );
m.RemoveSkillMod( (SkillMod)mods[2] );
m.RemoveSkillMod( (SkillMod)mods[3] );
}
m_Table.Remove( m );
m.EndAction( typeof( RangerHuntersAimSpell ) );
m.BodyMod = 0;
}
示例6: ClearSkillLoss
public static bool ClearSkillLoss( Mobile mob )
{
SkillLossContext context = (SkillLossContext)m_SkillLoss[mob];
if ( context == null ) {
return false;
}
m_SkillLoss.Remove( mob );
ArrayList mods = context.m_Mods;
for ( int i = 0; i < mods.Count; ++i )
mob.RemoveSkillMod( (SkillMod) mods[i] );
context.m_Timer.Stop();
return true;
}
示例7: ClearSkillGain
public static void ClearSkillGain( Mobile mob )
{
SkillGainContext context = (SkillGainContext)m_SkillGain[mob];
if ( context == null )
return;
m_SkillGain.Remove( mob );
ArrayList mods = context.m_Mods;
for ( int i = 0; i < mods.Count; ++i )
mob.RemoveSkillMod( (SkillMod) mods[i] );
context.m_Timer.Stop();
}
示例8: ClearSkillLoss
public static void ClearSkillLoss( Mobile mob )
{
SkillLossContext context = (SkillLossContext) m_SkillLoss[mob];
if ( context == null )
return;
m_SkillLoss.Remove( mob );
ArrayList mods = context.m_Mods;
for ( int i = 0; i < mods.Count; ++i )
mob.RemoveSkillMod( (SkillMod) mods[i] );
context.m_Timer.Stop();
mob.RemoveBuff( BuffIcon.FactionStatLoss );
}
示例9: ClearSkillLoss
public static bool ClearSkillLoss( Mobile mob )
{
SkillLossContext context;
if ( !m_SkillLoss.TryGetValue( mob, out context ) )
return false;
m_SkillLoss.Remove( mob );
List<SkillMod> mods = context.m_Mods;
for ( int i = 0; i < mods.Count; ++i )
mob.RemoveSkillMod( mods[i] );
context.m_Timer.Stop();
return true;
}
示例10: RemoveContext
public static void RemoveContext( Mobile m, AnimalFormContext context, bool resetGraphics )
{
m_Table.Remove( m );
#region Mondain's Legacy
if ( context.SpeedBoost )
{
if ( m.Region is Server.Regions.TwistedWealdDesert )
m.Send( SpeedControl.WalkSpeed );
else
m.Send( SpeedControl.Disable );
}
#endregion
SkillMod mod = context.Mod;
if ( mod != null )
m.RemoveSkillMod( mod );
if ( resetGraphics )
{
m.HueMod = -1;
m.BodyMod = 0;
}
m.FixedParticles( 0x3728, 10, 13, 2023, EffectLayer.Waist );
context.Timer.Stop();
}
示例11: RemoveContext
public static void RemoveContext( Mobile m, AnimalFormContext context, bool resetGraphics )
{
m_Table.Remove( m );
if ( context.SpeedBoost )
m.Send( SpeedControl.Disable );
SkillMod mod = context.Mod;
if ( mod != null )
m.RemoveSkillMod( mod );
if ( resetGraphics )
{
m.HueMod = -1;
m.BodyMod = 0;
}
context.Timer.Stop();
}
示例12: RemoveContext
public static void RemoveContext( Mobile m, AnimalFormContext context, bool resetGraphics )
{
m_Table.Remove( m );
if ( context.SpeedBoost )
m.ForcedRun = false;
SkillMod mod = context.Mod;
if ( mod != null )
m.RemoveSkillMod( mod );
if ( context.Type == typeof( BakeKitsune ) || context.Type == typeof( GreyWolf ) )
m.Hits -= 20;
if ( resetGraphics )
{
m.HueMod = -1;
m.BodyMod = 0;
}
BuffInfo.RemoveBuff( m, BuffIcon.AnimalForm );
context.Timer.Stop();
}
示例13: ClearSkillLoss
public static bool ClearSkillLoss( Mobile mob )
{
SkillLossContext context;
m_SkillLoss.TryGetValue( mob, out context );
if ( context != null )
{
m_SkillLoss.Remove( mob );
List<SkillMod> mods = context.m_SkillMods;
for ( int i = 0; i < mods.Count; ++i )
mob.RemoveSkillMod( mods[i] );
context.m_Timer.Stop();
return true;
}
mob.RemoveStatMod( "Murder Penalty Str" );
mob.RemoveStatMod( "Murder Penalty Dex" );
mob.RemoveStatMod( "Murder Penalty Int" );
return false;
}
示例14: RemoveEffect
private static void RemoveEffect( Mobile m )
{
if ( m_Table.ContainsKey( m ) )
{
BonusContext context = m_Table[m];
if ( context != null )
{
if ( context.Timer != null )
context.Timer.Stop();
if ( context.Mod != null )
m.RemoveSkillMod( context.Mod );
}
m.SendLocalizedMessage( 1071146 ); // Your sense goes to normal.
m_Table.Remove( m );
}
}
示例15: ClearMods
private static void ClearMods( Mobile from, ArrayList mods )
{
for ( int i = 0; i < mods.Count; ++i )
{
object mod = mods[i];
if ( mod is ResistanceMod )
from.RemoveResistanceMod( (ResistanceMod) mod );
else if ( mod is StatMod )
from.RemoveStatMod( ( (StatMod) mod ).Name );
else if ( mod is SkillMod )
from.RemoveSkillMod( (SkillMod) mod );
}
}