Beispiel #1
0
        public override bool CheckHarvestSkill(Map map, Point3D loc, Mobile from, HarvestResource res, HarvestDefinition def)
        {
            bool   deepWater = SpecialFishingNet.ValidateDeepWater(map, loc.X, loc.Y);
            double value     = from.Skills[SkillName.Fishing].Value;

            if (deepWater && value < 75.0) // can't fish here yet
            {
                return(from.Skills[def.Skill].Value >= res.ReqSkill);
            }

            if (!deepWater && value >= 75.0) // you can fish, but no gains!
            {
                return(true);
            }

            return(base.CheckHarvestSkill(map, loc, from, res, def));
        }
Beispiel #2
0
 private bool IsDeepWater(Point3D p, Map map)
 {
     return(SpecialFishingNet.ValidateDeepWater(map, p.X, p.Y) && (map == Map.Trammel || map == Map.Felucca || map == Map.Tokuno));
 }