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); }
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; }