TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ BunnyChat()

static string Terraria.Lang.BunnyChat ( NPC npc)
inlinestatic

Definition at line 350 of file Lang.cs.

351 {
353 return Language.SelectRandom(CreateDialogFilter("BunnyChatter.", obj)).FormatWith(obj);
354 }
static object CreateDialogSubstitutionObject(NPC npc=null)
Definition Lang.cs:75
static LanguageSearchFilter CreateDialogFilter(string startsWith, object substitutions)
Filters LocalizedText objects by checking if their key starts with the provided startsWith parameter...
Definition Lang.cs:406
static LocalizedText SelectRandom(LanguageSearchFilter filter, UnifiedRandom random=null)
Selects a single random LocalizedText that satisfies the filter parameter. Typically used with M:Ter...
Definition Language.cs:107
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12

References Terraria.Lang.CreateDialogFilter(), Terraria.Lang.CreateDialogSubstitutionObject(), and Terraria.Localization.Language.SelectRandom().

Referenced by Terraria.NPC.GetChat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: