ÄÚµå : |
public bool Expired()
{
bool v = ( DateTime.Now >= m_End );
if ( v )
m_InstancePool.Enqueue( this );
return v;
}
}
#region Variables_RE
//·¯½Ã¾Æ 1.1.6
/* Author: wyatt
* E-mail: wyatter@yandex.ru
*/
//private int m_Steps;
//private Mobile m_Attacker;
//private bool m_CalculateSteps;
private bool m_CanReveal = true;
#endregion
private Serial m_Serial;
|
ÄÚµå : |
public virtual bool CanRegenMana{ get{ return this.Alive; } }
/* Author: wyatt //·¯½Ã¾Æ 1.1.6
* E-mail: wyatter@yandex.ru
* attribute for "stealth-mode" Ninjitsu spells
*/
public virtual bool CanReveal{ get{ return this.m_CanReveal; } set{ this.m_CanReveal = value; } }
private class ManaTimer : Timer
|
ÄÚµå : |
if ( m_Mobile.InLOS( combatant ) )
{
/* Author: wyatt
* E-mail: wyatter@yandex.ru
* check for CanReveal flag
*/
if ( m_Mobile.CanReveal )
m_Mobile.RevealingAction();
m_Mobile.m_NextCombatTime = DateTime.Now + weapon.OnSwing( m_Mobile, combatant );
|
ÄÚµå : |
public sealed class DisplaySpellbook : Packet
{
public DisplaySpellbook( Item book ) : base( 0x24, 7 )
{
m_Stream.Write( (int) book.Serial );
m_Stream.Write( (short) -1 );
}
}
/* Author: wyatt
* E-mail: wyatter@yandex.ru
* This packet is using for SE attack spells
* spellid is spell identificator
* turn is flag for turn state of spell
* if turn is 1, spell is enabled
* else it's disabled
*/
public sealed class SetNewSpell : Packet
{ //·¯½Ã¾Æ 1.1.6
public SetNewSpell(int spellid, int turn) : base(0xbf)
{
EnsureCapacity( 7 );
m_Stream.Write( (byte) 0 );
m_Stream.Write( (byte) 0x25 );
m_Stream.Write( (byte) 1 );
m_Stream.Write( (byte) spellid );
m_Stream.Write( (byte) turn );
}
}
public sealed class NewSpellbookContent : Packet
|