disable webstatus and reports by default, remove commandproperty from Mobile.Account, fix house placement being blocked by boats in yard (oceanfront property :P)
This commit is contained in:
parent
eb90512129
commit
8dc37a24fd
4 changed files with 20 additions and 4 deletions
|
|
@ -13,8 +13,13 @@ namespace Server.Engines.Reports
|
|||
{
|
||||
public class Reports
|
||||
{
|
||||
public static bool Enabled = false;
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
if ( !Enabled )
|
||||
return;
|
||||
|
||||
m_StatsHistory = new SnapshotHistory();
|
||||
m_StatsHistory.Load();
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,12 @@ namespace Server.Misc
|
|||
{
|
||||
public class StatusPage : Timer
|
||||
{
|
||||
public static bool Enabled = false;
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
new StatusPage().Start();
|
||||
if ( Enabled )
|
||||
new StatusPage().Start();
|
||||
}
|
||||
|
||||
public StatusPage() : base( TimeSpan.FromSeconds( 5.0 ), TimeSpan.FromSeconds( 60.0 ) )
|
||||
|
|
|
|||
|
|
@ -319,7 +319,16 @@ namespace Server.Multis
|
|||
{
|
||||
Point2D yardPoint = yard[i];
|
||||
|
||||
IPooledEnumerable eable = map.GetMultiTilesAt( yardPoint.X, yardPoint.Y );
|
||||
Sector sector = Map.GetSector( yardPoint );
|
||||
|
||||
foreach ( BaseMulti multi in sector.Multis ) {
|
||||
if ( multi is BaseBoat )
|
||||
continue;
|
||||
|
||||
return HousePlacementResult.BadStatic; // Broke rule #3
|
||||
}
|
||||
|
||||
/*IPooledEnumerable eable = map.GetMultiTilesAt( yardPoint.X, yardPoint.Y );
|
||||
|
||||
foreach ( Tile[] tile in eable )
|
||||
{
|
||||
|
|
@ -333,7 +342,7 @@ namespace Server.Multis
|
|||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
eable.Free();*/
|
||||
}
|
||||
|
||||
return HousePlacementResult.Valid;
|
||||
|
|
|
|||
|
|
@ -3479,7 +3479,6 @@ namespace Server
|
|||
|
||||
private IAccount m_Account;
|
||||
|
||||
[CommandProperty( AccessLevel.Counselor, AccessLevel.Owner )]
|
||||
public IAccount Account
|
||||
{
|
||||
get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue