sync and some misc things
This commit is contained in:
parent
d1f9a38518
commit
ed97d43c9e
15 changed files with 77 additions and 78 deletions
|
|
@ -2478,6 +2478,7 @@ namespace Server.Mobiles
|
|||
|
||||
Packet.Release( p );
|
||||
}
|
||||
|
||||
private static void SendToStaffMessage( Mobile from, string format, params object[] args )
|
||||
{
|
||||
SendToStaffMessage( from, String.Format( format, args ) );
|
||||
|
|
@ -2637,8 +2638,6 @@ namespace Server.Mobiles
|
|||
get{ return m_BOBFilter; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
|
@ -2925,20 +2924,7 @@ namespace Server.Mobiles
|
|||
t.Remove( remove[i] );
|
||||
}
|
||||
|
||||
//decay our kills
|
||||
if ( m_ShortTermElapse < this.GameTime )
|
||||
{
|
||||
m_ShortTermElapse += TimeSpan.FromHours( 8 );
|
||||
if ( ShortTermMurders > 0 )
|
||||
--ShortTermMurders;
|
||||
}
|
||||
|
||||
if ( m_LongTermElapse < this.GameTime )
|
||||
{
|
||||
m_LongTermElapse += TimeSpan.FromHours( 40 );
|
||||
if ( Kills > 0 )
|
||||
--Kills;
|
||||
}
|
||||
CheckKillDecay();
|
||||
|
||||
CheckAtrophies( this );
|
||||
|
||||
|
|
@ -3049,8 +3035,6 @@ namespace Server.Mobiles
|
|||
writer.Write( this.GameTime );
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void CheckAtrophies( Mobile m )
|
||||
{
|
||||
SacrificeVirtue.CheckAtrophy( m );
|
||||
|
|
@ -3063,6 +3047,23 @@ namespace Server.Mobiles
|
|||
ChampionTitleInfo.CheckAtrophy( (PlayerMobile)m );
|
||||
}
|
||||
|
||||
public void CheckKillDecay()
|
||||
{
|
||||
if ( m_ShortTermElapse < this.GameTime )
|
||||
{
|
||||
m_ShortTermElapse += TimeSpan.FromHours( 8 );
|
||||
if ( ShortTermMurders > 0 )
|
||||
--ShortTermMurders;
|
||||
}
|
||||
|
||||
if ( m_LongTermElapse < this.GameTime )
|
||||
{
|
||||
m_LongTermElapse += TimeSpan.FromHours( 40 );
|
||||
if ( Kills > 0 )
|
||||
--Kills;
|
||||
}
|
||||
}
|
||||
|
||||
public void ResetKillTime()
|
||||
{
|
||||
m_ShortTermElapse = this.GameTime + TimeSpan.FromHours( 8 );
|
||||
|
|
@ -3411,7 +3412,7 @@ namespace Server.Mobiles
|
|||
public override TimeSpan ComputeMovementSpeed( Direction dir, bool checkTurning )
|
||||
{
|
||||
if ( checkTurning && (dir & Direction.Mask) != (this.Direction & Direction.Mask) )
|
||||
return TimeSpan.FromSeconds( 0.1 ); // We are NOT actually moving (just a direction change)
|
||||
return Mobile.RunMount; // We are NOT actually moving (just a direction change)
|
||||
|
||||
TransformContext context = TransformationSpellHelper.GetContext( this );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue