Addition of Racial Harvest bonuses, Elven nightsight, and rename of OreInfo.cs to ResourceInfo.cs

This commit is contained in:
asayre 2006-06-29 04:24:26 +00:00
parent 51ef5111f6
commit 1a241e17f1
11 changed files with 54 additions and 13 deletions

View file

@ -439,7 +439,9 @@ namespace Server.Mobiles
{
global = LightCycle.ComputeLevelFor( this );
if ( this.LightLevel < 21 && AosAttributes.GetValue( this, AosAttribute.NightSight ) > 0 )
bool racialNightSight = (Core.ML && this.Race == Race.Elf);
if ( this.LightLevel < 21 && ( AosAttributes.GetValue( this, AosAttribute.NightSight ) > 0 || racialNightSight ))
personal = 21;
else
personal = this.LightLevel;