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

◆ GetSpecialEventTextIfNotEmpty()

bool Terraria.NPC.GetSpecialEventTextIfNotEmpty ( string specialTextKey,
object substitutes,
ref string specialEventText )
inline

Definition at line 112158 of file NPC.cs.

112159 {
112160 LocalizedText localizedText = Language.SelectRandom(Lang.CreateDialogFilter(specialTextKey));
112162 {
112164 return true;
112165 }
112166 return false;
112167 }
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
static readonly LocalizedText Empty
Contains the localization value corresponding to a key for the current game language....

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

+ Here is the call graph for this function: