Adds more formatting
This commit is contained in:
parent
e77d695684
commit
f674ec2be0
68 changed files with 530 additions and 876 deletions
|
|
@ -17,10 +17,8 @@ namespace Server.Items
|
|||
|
||||
public override void Ignite()
|
||||
{
|
||||
if ( !(Parent is Mobile) && RootParent is Mobile )
|
||||
if ( !(Parent is Mobile) && RootParent is Mobile holder )
|
||||
{
|
||||
Mobile holder = (Mobile)RootParent;
|
||||
|
||||
if ( holder.EquipItem( this ) )
|
||||
{
|
||||
if ( this is Candle )
|
||||
|
|
@ -61,4 +59,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,16 +28,16 @@ namespace Server.Items
|
|||
{
|
||||
base.OnAdded( parent );
|
||||
|
||||
if ( parent is Mobile && Burning )
|
||||
Mobiles.MeerMage.StopEffect( (Mobile)parent, true );
|
||||
if ( parent is Mobile mobile && Burning )
|
||||
Mobiles.MeerMage.StopEffect( mobile, true );
|
||||
}
|
||||
|
||||
public override void Ignite()
|
||||
{
|
||||
base.Ignite();
|
||||
|
||||
if ( Parent is Mobile && Burning )
|
||||
Mobiles.MeerMage.StopEffect( (Mobile)Parent, true );
|
||||
if ( Parent is Mobile mobile && Burning )
|
||||
Mobiles.MeerMage.StopEffect( mobile, true );
|
||||
}
|
||||
|
||||
public Torch( Serial serial ) : base( serial )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue