Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -23,7 +23,7 @@ namespace Server.SkillHandlers
if (map != null && (map.Rules & MapRules.HarmfulRestrictions) == 0)
return true; // felucca you can snoop anybody
GuardedRegion reg = (GuardedRegion)to.Region.GetRegion(typeof(GuardedRegion));
GuardedRegion reg = to.Region.GetRegion<GuardedRegion>();
if (reg == null || reg.IsDisabled())
return true; // not in town? we can snoop any npc
@ -56,7 +56,7 @@ namespace Server.SkillHandlers
}
if (root != null && from.AccessLevel == AccessLevel.Player &&
from.Skills[SkillName.Snooping].Value < Utility.Random(100))
from.Skills.Snooping.Value < Utility.Random(100))
{
Map map = from.Map;
@ -88,7 +88,7 @@ namespace Server.SkillHandlers
{
from.SendLocalizedMessage(500210); // You failed to peek into the container.
if (from.Skills[SkillName.Hiding].Value / 2 < Utility.Random(100))
if (from.Skills.Hiding.Value / 2 < Utility.Random(100))
from.RevealingAction();
}
}