示例#1
0
        public static DesireInfo GetDesireFor(PlayerMobile pm, BaseErrand errand)
        {
            DesireCollection collection = WhosMostHumbleQuest.GetDesires(pm);
            Type             errandType = errand.GetType();

            if (collection != null && collection.Desires.ContainsKey(errandType))
            {
                return(collection.Desires[errandType]);
            }

            return(null);
        }
示例#2
0
        public static DesireInfo GetDesireFor( PlayerMobile pm, BaseErrand errand )
        {
            DesireCollection collection = WhosMostHumbleQuest.GetDesires( pm );
            Type errandType = errand.GetType();

            if ( collection != null && collection.Desires.ContainsKey( errandType ) )
                return collection.Desires[errandType];

            return null;
        }