Adds more formatting
This commit is contained in:
parent
e77d695684
commit
f674ec2be0
68 changed files with 530 additions and 876 deletions
|
|
@ -48,13 +48,12 @@ namespace Server.Items
|
|||
{
|
||||
Mobile m = null;
|
||||
|
||||
if ( parent is Item )
|
||||
m = ((Item)parent).RootParent as Mobile;
|
||||
else if ( parent is Mobile )
|
||||
m = (Mobile)parent;
|
||||
if ( parent is Item item )
|
||||
m = item.RootParent as Mobile;
|
||||
else if ( parent is Mobile mobile )
|
||||
m = mobile;
|
||||
|
||||
if ( m != null )
|
||||
m.CloseGump( typeof( PromotionalTokenGump ) );
|
||||
m?.CloseGump( typeof( PromotionalTokenGump ) );
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
|
|
@ -123,10 +122,10 @@ namespace Server.Items
|
|||
|
||||
public override Item CreateItemFor( Mobile from )
|
||||
{
|
||||
if ( from != null && from.Account != null )
|
||||
if ( @from?.Account != null )
|
||||
return new SoulstoneFragment( from.Account.ToString() );
|
||||
else
|
||||
return null;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public override TextDefinition ItemGumpName => 1070999;// <center>Soulstone Fragment</center>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue