/// <summary> /// Calculates the relevancy to progress, ie find the exit door. /// </summary> /// <param name="blackBoard">The blackboard</param> /// <returns></returns> public override float CalculateRelevancy(BlackBoard blackBoard) { //return 1; // TODO: See below pls. if (blackBoard.CheckItemKnowledge(WorldStateSymbol.HasKey)) { relevancy = persona.personalityModifer[Personality.PROGRESSION] + baseValue; } else { return(0f); } relevancy = Mathf.Clamp(relevancy, 0f, 1f); return(relevancy); }