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

◆ GetInvasionWaveText()

static NetworkText Terraria.Lang.GetInvasionWaveText ( int wave,
params short[] npcIds )
inlinestatic

Definition at line 1142 of file Lang.cs.

1143 {
1144 NetworkText[] array = new NetworkText[npcIds.Length + 1];
1145 for (int i = 0; i < npcIds.Length; i++)
1146 {
1147 array[i + 1] = NetworkText.FromKey(GetNPCName(npcIds[i]).Key);
1148 }
1149 switch (wave)
1150 {
1151 case -1:
1152 array[0] = NetworkText.FromKey("Game.FinalWave");
1153 break;
1154 case 1:
1155 array[0] = NetworkText.FromKey("Game.FirstWave");
1156 break;
1157 default:
1158 array[0] = NetworkText.FromKey("Game.Wave", wave);
1159 break;
1160 }
1161 string key = "Game.InvasionWave_Type" + npcIds.Length;
1162 object[] array2 = array;
1163 object[] substitutions = array2;
1164 return NetworkText.FromKey(key, substitutions);
1165 }
static LocalizedText GetNPCName(int netID)
Gets the display name of the provided npc type (F:Terraria.NPC.type) as a T:Terraria....
Definition Lang.cs:151
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...

References Terraria.Localization.NetworkText.FromKey(), and Terraria.Lang.GetNPCName().

Referenced by Terraria.NPC.CheckProgressFrostMoon(), Terraria.NPC.CheckProgressPumpkinMoon(), Terraria.Main.startPumpkinMoon(), Terraria.Main.startSnowMoon(), and Terraria.GameContent.Events.DD2Event.UpdateTime().

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