terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ CreateDeathMessage()

static NetworkText Terraria.Lang.CreateDeathMessage ( string deadPlayerName,
int plr = -1,
int npc = -1,
int proj = -1,
int other = -1,
int projType = 0,
int plrItemType = 0 )
inlinestatic

Definition at line 554 of file Lang.cs.

555 {
556 int num = 1;
557 if (num == 0)
558 {
559 }
560 if (num == 0)
561 {
562 }
563 LocalizedText projectileName = Lang.GetProjectileName(other);
564 string key = projectileName.Key;
565 if (projectileName == null)
566 {
567 }
568 LocalizedText itemName = Lang.GetItemName(projType);
569 string key2 = itemName.Key;
570 if (itemName == null)
571 {
572 }
574 string key3 = localizedText.Key;
577 if ((proj == 0 || proj != 0) && (networkText == null || networkText != null) && (networkText2 == null || networkText2 != null))
578 {
579 return "DeathSource.NPC";
580 }
581 throw new ArrayTypeMismatchException();
582 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.Lang.GetItemName(), Terraria.Lang.GetProjectileName(), j__TPar, System.key, and Terraria.Localization.LocalizedText.Key.

Referenced by Terraria.DataStructures.PlayerDeathReason.GetDeathText().