public static Conversation GetCorrectDrinkOrderConversation(Entity entity) { var choice = correctDrinkOptions.Where(option => OptionIsValid(option, GetEntitySpecies(entity))).PickRandom(); var conversation = new NoResponseConversation(choice.line, DialogueOutcome.Nice); return(conversation); }
public static Conversation GetIncorrectDrinkOrderConversation(string ordered, Entity entity, IncorrectDrinkReason reason, out bool destroyDrink) { var choice = incorectDrinkOptions.Where(option => OptionIsValid(option, GetEntitySpecies(entity), reason)).PickRandom(); var line = choice.line; if (reason == IncorrectDrinkReason.DoesNotContainIngredient || reason == IncorrectDrinkReason.ContainsIngredient) { line = line.Replace("{0}", ordered); } var conversation = new NoResponseConversation(line, DialogueOutcome.Bad); destroyDrink = choice.destroyDrink; return(conversation); }