public static string BestiaryGirlChat(NPC npc) { object obj = CreateDialogSubstitutionObject(npc); string startsWith = "BestiaryGirlChatter."; if (npc.ShouldBestiaryGirlBeLycantrope()) { startsWith = "BestiaryGirlLycantropeChatter."; } return(Language.SelectRandom(CreateDialogFilter(startsWith, obj)).FormatWith(obj)); }
public static string BestiaryGirlChat(NPC npc) { object substitutionObject = Lang.CreateDialogSubstitutionObject(npc); string startsWith = "BestiaryGirlChatter."; if (npc.ShouldBestiaryGirlBeLycantrope()) { startsWith = "BestiaryGirlLycantropeChatter."; } return(Language.SelectRandom(Lang.CreateDialogFilter(startsWith, substitutionObject), (UnifiedRandom)null).FormatWith(substitutionObject)); }