}
#region [Stats]Max
[CommandProperty( AccessLevel.GameMaster )]
public override int HitsMax
{
get
{
int strBase;
int strOffs = GetStatOffset( StatType.Str );
if ( Core.AOS )
{
strBase = this.Str; //this.Str already includes GetStatOffset/str
strOffs = AosAttributes.GetValue( this, AosAttribute.BonusHits );
if ( AnimalForm.UnderTransformation( this, typeof( BakeKitsune ) ) || AnimalForm.UnderTransformation( this, typeof( GreyWolf ) ) )
strOffs += 20;
}
else
{
strBase = this.RawStr;
}
return (strBase / 2) + 50 + strOffs;
}
}
[CommandProperty( AccessLevel.GameMaster )]
public override int StamMax
{
get{ return base.StamMax + AosAttributes.GetValue( this, AosAttribute.BonusStam ); }
}
[CommandProperty( AccessLevel.GameMaster )]
public override int ManaMax
{
get{ return base.ManaMax + AosAttributes.GetValue( this, AosAttribute.BonusMana ) + ((Core.ML && Race == Race.Elf) ? 20 : 0); }
}
#endregion
#region Stat Getters/Setters
[CommandProperty( AccessLevel.GameMaster )]
public override int Str
{
get
{
if( Core.ML && this.AccessLevel == AccessLevel.Player )
return Math.Min([COLOR="Red"] base.Str, 1000[/COLOR] );
return base.Str;
}
set
{
base.Str = value;
}
}
[CommandProperty( AccessLevel.GameMaster )]
public override int Int
{
get
{
if( Core.ML && this.AccessLevel == AccessLevel.Player )
return Math.Min( [COLOR="Red"]base.Int, 1000[/COLOR] );
return base.Int;
}
set
{
base.Int = value;
}
}
[CommandProperty( AccessLevel.GameMaster )]
public override int Dex
{
get
{
if( Core.ML && this.AccessLevel == AccessLevel.Player )
return Math.Min( [COLOR="Red"]base.Dex, 1000[/COLOR] );
return base.Dex;
}
set
{
base.Dex = value;
}
}