public static NetworkText GetInvasionWaveText(int wave, params short[] npcIds) { NetworkText[] networkTextArray = new NetworkText[npcIds.Length + 1]; for (int index = 0; index < npcIds.Length; ++index) { networkTextArray[index + 1] = NetworkText.FromKey(Lang.GetNPCName((int)npcIds[index]).Key); } if (wave == -1) { networkTextArray[0] = NetworkText.FromKey("Game.FinalWave"); } else if (wave == 1) { networkTextArray[0] = NetworkText.FromKey("Game.FirstWave"); } else { networkTextArray[0] = NetworkText.FromKey("Game.Wave", (object)wave); } return(NetworkText.FromKey("Game.InvasionWave_Type" + (object)npcIds.Length, (object[])networkTextArray)); }
public static string GetNPCNameValue(int netID) { return(Lang.GetNPCName(netID).Value); }