Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,33 +1,34 @@
|
|||
using System.Xml;
|
||||
using Server.Spells.Seventh;
|
||||
using Server.Spells.Fourth;
|
||||
using Server.Spells.Sixth;
|
||||
using Server.Spells.Chivalry;
|
||||
using Server.Spells.Fourth;
|
||||
using Server.Spells.Seventh;
|
||||
using Server.Spells.Sixth;
|
||||
|
||||
namespace Server.Regions
|
||||
{
|
||||
public class GreenAcres : BaseRegion
|
||||
{
|
||||
public GreenAcres( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
|
||||
{
|
||||
}
|
||||
public class GreenAcres : BaseRegion
|
||||
{
|
||||
public GreenAcres(XmlElement xml, Map map, Region parent) : base(xml, map, parent)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool AllowHousing( Mobile from, Point3D p )
|
||||
{
|
||||
if ( from.AccessLevel == AccessLevel.Player )
|
||||
return false;
|
||||
return base.AllowHousing( from, p );
|
||||
}
|
||||
public override bool AllowHousing(Mobile from, Point3D p)
|
||||
{
|
||||
if (from.AccessLevel == AccessLevel.Player)
|
||||
return false;
|
||||
return base.AllowHousing(from, p);
|
||||
}
|
||||
|
||||
public override bool OnBeginSpellCast( Mobile m, ISpell s )
|
||||
{
|
||||
if ( ( s is GateTravelSpell || s is RecallSpell || s is MarkSpell || s is SacredJourneySpell ) && m.AccessLevel == AccessLevel.Player )
|
||||
{
|
||||
m.SendMessage( "You cannot cast that spell here." );
|
||||
return false;
|
||||
}
|
||||
public override bool OnBeginSpellCast(Mobile m, ISpell s)
|
||||
{
|
||||
if ((s is GateTravelSpell || s is RecallSpell || s is MarkSpell || s is SacredJourneySpell) &&
|
||||
m.AccessLevel == AccessLevel.Player)
|
||||
{
|
||||
m.SendMessage("You cannot cast that spell here.");
|
||||
return false;
|
||||
}
|
||||
|
||||
return base.OnBeginSpellCast( m, s );
|
||||
}
|
||||
}
|
||||
}
|
||||
return base.OnBeginSpellCast(m, s);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue