Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 • committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -192,7 +192,7 @@ namespace Server.Items
return false;
}
if (from.Spell != null && from.Spell.IsCasting)
if (from.Spell?.IsCasting == true)
{
from.SendLocalizedMessage(1070733); // You may not use a Soulstone while your character is casting a spell.
return false;
@ -914,21 +914,14 @@ namespace Server.Items
public void Flip()
{
switch (ItemID)
ItemID = ItemID switch
{
case 0x2ADC:
ItemID = 0x2AEC;
break;
case 0x2ADD:
ItemID = 0x2AED;
break;
case 0x2AEC:
ItemID = 0x2ADC;
break;
case 0x2AED:
ItemID = 0x2ADD;
break;
}
0x2ADC => 0x2AEC,
0x2ADD => 0x2AED,
0x2AEC => 0x2ADC,
0x2AED => 0x2ADD,
_ => ItemID
};
}
public override void Serialize(GenericWriter writer)