This commit is contained in:
mark 2012-11-03 21:37:59 +00:00
parent c0218110c3
commit 754877f880
12 changed files with 70 additions and 56 deletions

View file

@ -128,7 +128,7 @@ namespace Server.Mobiles
from.SayTo( from, 1010095 ); // This must be on your person to use.
return false;
}
else if( m_IsRewardItem && !Engines.VeteranRewards.RewardSystem.CheckIsUsableBy( from, this, null ) )
else if( m_IsRewardItem && !RewardSystem.CheckIsUsableBy( from, this, null ) )
{
// CheckIsUsableBy sends the message
return false;
@ -173,6 +173,16 @@ namespace Server.Mobiles
new EtherealSpell( this, from ).Cast();
}
public override void OnSingleClick( Mobile from )
{
base.OnSingleClick( from );
if ( m_IsDonationItem )
LabelTo( from, "Donation Ethereal" );
else
LabelTo( from, "Veteran Reward" );
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

View file

@ -1,8 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
using System.Collections.Generic;
namespace Server.Mobiles
{

View file

@ -1,9 +1,9 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
using Server.Engines.CannedEvil;
using System.Collections.Generic;
namespace Server.Mobiles
{

View file

@ -1,9 +1,9 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
using Server.Engines.CannedEvil;
using System.Collections.Generic;
namespace Server.Mobiles
{

View file

@ -208,7 +208,7 @@ namespace Server.Mobiles
if ( 0.1 >= Utility.RandomDouble() ) // 10% chance to drop or throw an unholy bone
AddUnholyBone( defender, 0.25 );
CheckSpeedBoost();
}