Fixes more casting and other formatting issues.
This commit is contained in:
parent
03dd5f1926
commit
61937d9c97
67 changed files with 325 additions and 570 deletions
|
|
@ -126,9 +126,7 @@ namespace Server.Engines.MLQuests.Definitions
|
|||
|
||||
public override bool CheckItem( Item item )
|
||||
{
|
||||
Pitcher pitcher = item as Pitcher; // Only pitchers work
|
||||
|
||||
return ( pitcher != null && pitcher.Content == BeverageType.Water && pitcher.Quantity > 0 );
|
||||
return ( item is Pitcher pitcher && pitcher.Content == BeverageType.Water && pitcher.Quantity > 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -620,9 +620,7 @@ namespace Server.Engines.MLQuests.Definitions
|
|||
{
|
||||
Item item = base.CreateItem();
|
||||
|
||||
Spellbook book = item as Spellbook;
|
||||
|
||||
if ( book != null )
|
||||
if ( item is Spellbook book )
|
||||
book.Content = ( 1ul << book.BookCount ) - 1;
|
||||
|
||||
return item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue