Some more trailing whitespace removal and minor ML code cleanup.
This commit is contained in:
parent
f4a7e8e283
commit
45bd3dba38
113 changed files with 365 additions and 410 deletions
27
Scripts/Misc/MondainsLegacy.cs
Normal file
27
Scripts/Misc/MondainsLegacy.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
public static class MondainsLegacy
|
||||
{
|
||||
public static bool CheckML( Mobile from )
|
||||
{
|
||||
return CheckML( from, true );
|
||||
}
|
||||
|
||||
public static bool CheckML( Mobile from, bool message )
|
||||
{
|
||||
if ( from == null || from.NetState == null )
|
||||
return false;
|
||||
|
||||
if ( from.NetState.SupportsExpansion( Expansion.ML ) )
|
||||
return true;
|
||||
|
||||
if ( message )
|
||||
from.SendLocalizedMessage( 1072791 ); // You must upgrade to Mondain's Legacy in order to use that item.
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue