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

◆ MouseText_DrawItemTooltip_GetLinesInfo()

static void Terraria.Main.MouseText_DrawItemTooltip_GetLinesInfo ( Item item,
int yoyoLogo,
int researchLine,
int materialsLine,
float oldKB,
int numLines,
string[] toolTipLine,
bool[] preFixLine,
bool[] badPreFixLine,
int setBonusLine )
inlinestatic

Definition at line 8640 of file Main.cs.

8641 {
8642 string hoverName = item.HoverName;
8643 if (hoverName == null || hoverName != null)
8644 {
8645 bool favorited = item.favorited;
8646 if (favorited)
8647 {
8648 numLines.m_value = (favorited ? 1 : 0);
8649 if (!favorited)
8650 {
8651 }
8652 if ((hoverName != null && hoverName == null) || (hoverName != null && hoverName == null))
8653 {
8654 goto IL_0B7C;
8655 }
8656 int num = Main.LocalPlayer.chest;
8657 string textValue = Language.GetTextValue("UI.ItemCannotBePlacedInsideItself");
8658 if (textValue != null && textValue == null)
8659 {
8660 goto IL_0B7C;
8661 }
8662 }
8663 bool social = item.social;
8664 if (social)
8665 {
8666 if (!social)
8667 {
8668 }
8669 if (preFixLine == null || preFixLine != null)
8670 {
8671 if (preFixLine != null)
8672 {
8673 if (preFixLine != null)
8674 {
8675 return;
8676 }
8677 }
8678 else
8679 {
8680 if (item.expert)
8681 {
8682 string textValue2 = Language.GetTextValue("GameUI.Expert");
8683 if (textValue2 != null && textValue2 == null)
8684 {
8685 goto IL_0B7C;
8686 }
8687 }
8688 int rare = item.rare;
8689 string textValue3 = Language.GetTextValue("GameUI.Master");
8690 if (textValue3 == null || textValue3 != null)
8691 {
8692 if (item.tooltipContext == 0)
8693 {
8694 }
8695 byte difficulty = Main.LocalPlayer.difficulty;
8696 if (difficulty == 0)
8697 {
8698 }
8699 int type = item.type;
8700 if (difficulty == 0)
8701 {
8702 }
8703 ItemsSacrificedUnlocksTracker itemSacrifices = Main.LocalPlayerCreativeTracker.ItemSacrifices;
8704 int type2 = item.type;
8705 int sacrificeCount = itemSacrifices.GetSacrificeCount(type2);
8706 string text;
8707 if (text == null || text != null)
8708 {
8709 bool flag = string.IsNullOrWhiteSpace(item.BestiaryNotes);
8710 long num2 = 0L;
8711 if (text == null || text != null)
8712 {
8713 int tooltipContext = item.tooltipContext;
8714 if (" " == null)
8715 {
8716 return;
8717 }
8718 if (" " != null)
8719 {
8720 return;
8721 }
8722 }
8723 }
8724 }
8725 }
8726 }
8727 }
8728 else
8729 {
8730 int damage = item.damage;
8731 if (!item.notAmmo || item.useStyle != 0)
8732 {
8733 int type3 = item.type;
8734 if (type3 == 0)
8735 {
8736 }
8737 int myPlayer = Main.myPlayer;
8738 int damage2 = item.damage;
8739 if (type3 == 0)
8740 {
8741 }
8742 bool melee = item.melee;
8743 if (melee)
8744 {
8745 if (!melee)
8746 {
8747 }
8748 float meleeDamage = Main.LocalPlayer.meleeDamage;
8749 return;
8750 }
8751 bool ranged = item.ranged;
8752 if (ranged)
8753 {
8754 if (!ranged)
8755 {
8756 }
8757 Player localPlayer = Main.LocalPlayer;
8758 float rangedDamage = localPlayer.rangedDamage;
8759 int useAmmo = item.useAmmo;
8760 if (localPlayer == null)
8761 {
8762 }
8763 int useAmmo2 = item.useAmmo;
8764 long num2;
8765 if (num2 == 0L)
8766 {
8767 }
8768 if (localPlayer.oldVelocity.Y == null)
8769 {
8770 }
8771 float bowEffectiveDamage = Main.LocalPlayer.bowEffectiveDamage;
8772 bool archery = Main.LocalPlayer.archery;
8773 int useAmmo3 = item.useAmmo;
8774 if (!archery)
8775 {
8776 }
8777 int useAmmo4 = item.useAmmo;
8778 if (num2 == 0L)
8779 {
8780 }
8781 if (!archery)
8782 {
8783 }
8784 float gunEffectiveDamage = Main.LocalPlayer.gunEffectiveDamage;
8785 int useAmmo5 = item.useAmmo;
8786 if (!archery)
8787 {
8788 }
8789 int useAmmo6 = item.useAmmo;
8790 if (num2 == 0L)
8791 {
8792 }
8793 int useAmmo7 = item.useAmmo;
8794 if (num2 == 0L)
8795 {
8796 }
8797 int useAmmo8 = item.useAmmo;
8798 if (num2 == 0L)
8799 {
8800 }
8801 int useAmmo9 = item.useAmmo;
8802 if (num2 == 0L)
8803 {
8804 }
8805 int useAmmo10 = item.useAmmo;
8806 if (num2 == 0L)
8807 {
8808 }
8809 int useAmmo11 = item.useAmmo;
8810 if (num2 == 0L)
8811 {
8812 }
8813 int useAmmo12 = item.useAmmo;
8814 if (num2 == 0L)
8815 {
8816 }
8817 int useAmmo13 = item.useAmmo;
8818 if (num2 == 0L)
8819 {
8820 }
8821 int useAmmo14 = item.useAmmo;
8822 if (num2 == 0L)
8823 {
8824 }
8825 int useAmmo15 = item.useAmmo;
8826 if (num2 == 0L)
8827 {
8828 }
8829 float specialistEffectiveDamage = Main.LocalPlayer.specialistEffectiveDamage;
8830 int type4 = item.type;
8831 return;
8832 }
8833 bool magic = item.magic;
8834 if (magic)
8835 {
8836 if (!magic)
8837 {
8838 }
8839 float magicDamage = Main.LocalPlayer.magicDamage;
8840 return;
8841 }
8842 bool summon = item.summon;
8843 if (summon)
8844 {
8845 if (!summon)
8846 {
8847 }
8848 float minionDamage = Main.LocalPlayer.minionDamage;
8849 return;
8850 }
8851 string text2;
8852 if (text2 == null || text2 != null)
8853 {
8854 return;
8855 }
8856 }
8857 else
8858 {
8859 int fishingPole = item.fishingPole;
8860 string text3;
8861 if (text3 == null || text3 != null)
8862 {
8863 int num3;
8865 string textValue4 = Language.GetTextValue("GameUI.BaitRequired");
8866 if (textValue4 == null || textValue4 != null)
8867 {
8868 int bait = item.bait;
8869 string text4;
8870 if (text4 == null || text4 != null)
8871 {
8872 int headSlot = item.headSlot;
8873 int bodySlot = item.bodySlot;
8874 int legSlot = item.legSlot;
8875 bool accessory = item.accessory;
8876 if (!accessory)
8877 {
8878 if (!accessory)
8879 {
8880 }
8881 int mountType = item.mountType;
8882 }
8883 int type5 = item.type;
8884 if (type5 == 0)
8885 {
8886 }
8887 int npcShop = Main.npcShop;
8888 if (type5 == 0)
8889 {
8890 }
8891 return;
8892 }
8893 }
8894 }
8895 }
8896 }
8897 }
8898 IL_0B7C:
8899 throw new ArrayTypeMismatchException();
8900 }
class f__AnonymousType0<< Count > j__TPar
bool melee
Definition Item.cs:2123
bool expert
Definition Item.cs:2054
int fishingPole
Definition Item.cs:2165
string BestiaryNotes
Definition Item.cs:2330
int useAmmo
Definition Item.cs:2352
int headSlot
Definition Item.cs:2279
string HoverName
Definition Item.cs:40
bool social
Definition Item.cs:2102
bool magic
Definition Item.cs:2126
bool favorited
Definition Item.cs:2063
bool summon
Definition Item.cs:2132
bool accessory
Definition Item.cs:2069
byte useStyle
Definition Item.cs:2213
bool ranged
Definition Item.cs:2129
int tooltipContext
Definition Item.cs:2159
int legSlot
Definition Item.cs:2285
int mountType
Definition Item.cs:2376
int bodySlot
Definition Item.cs:2282
bool notAmmo
Definition Item.cs:2084
static string GetTextValue(string key)
Definition Language.cs:54
static Item[] item
Definition Main.cs:19293
static int myPlayer
Definition Main.cs:2337
static int rare
Definition Main.cs:3427
static int npcShop
Definition Main.cs:2547

References Terraria.Item.accessory, Terraria.Player.archery, Terraria.Item.bait, Terraria.Item.BestiaryNotes, Terraria.Item.bodySlot, Terraria.Player.bowEffectiveDamage, Terraria.Player.chest, Terraria.Item.damage, Terraria.Player.difficulty, Terraria.Item.expert, Terraria.Item.favorited, Terraria.Item.fishingPole, Terraria.Localization.Language.GetTextValue(), Terraria.Player.gunEffectiveDamage, Terraria.Item.headSlot, Terraria.Item.HoverName, Terraria.Main.item, Terraria.GameContent.Creative.CreativeUnlocksTracker.ItemSacrifices, j__TPar, Microsoft.Xna.Framework.Input.L, Terraria.Item.legSlot, Terraria.Main.LocalPlayer, Terraria.Main.LocalPlayerCreativeTracker, Terraria.Item.magic, Terraria.Player.magicDamage, Terraria.Item.melee, Terraria.Player.meleeDamage, Terraria.Player.minionDamage, Terraria.Item.mountType, Terraria.Main.myPlayer, Terraria.Item.notAmmo, Terraria.Main.npcShop, Terraria.Item.ranged, Terraria.Player.rangedDamage, Terraria.Item.rare, Terraria.Main.rare, Terraria.Item.social, Terraria.Player.specialistEffectiveDamage, Terraria.Item.summon, System.text, Terraria.Item.tooltipContext, Terraria.Item.type, Terraria.Item.useAmmo, and Terraria.Item.useStyle.