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

◆ ItemCheck_ManageRightClickFeatures()

void Terraria.Player.ItemCheck_ManageRightClickFeatures ( )
inline

Definition at line 9102 of file Player.cs.

9103 {
9104 for (;;)
9105 {
9106 int num = this.selectedItem;
9107 bool flag = this.controlUseTile;
9108 bool flag2;
9109 if (flag)
9110 {
9111 if (!flag)
9112 {
9113 }
9114 int myPlayer = Main.myPlayer;
9115 int whoAmI = this.whoAmI;
9116 flag2 = this.tileInteractionHappened;
9117 if (!flag2)
9118 {
9119 if (this.releaseUseItem && !this.controlUseItem)
9120 {
9121 goto Block_8;
9122 }
9123 continue;
9124 }
9125 }
9126 if (!flag2)
9127 {
9128 }
9130 if (position != null)
9131 {
9132 break;
9133 }
9134 if (position == null)
9135 {
9136 }
9137 bool mouseRightRelease = Main.mouseRightRelease;
9138 if (this.altFunctionUse != 0)
9139 {
9140 goto Block_2;
9141 }
9142 int size = this._projectilesToInteractWith._size;
9145 int smartInteractProj = Main.SmartInteractProj;
9147 if (this.altFunctionUse == 0)
9148 {
9149 if (this.itemTime == 0 && this.itemAnimation == 0)
9150 {
9151 goto IL_0157;
9152 }
9154 int num2 = this.itemAnimation;
9155 if (num2 == 0)
9156 {
9157 return;
9158 }
9159 if (num2 == 0)
9160 {
9162 }
9163 if (num2 != 0)
9164 {
9165 goto Block_11;
9166 }
9167 int num3 = this.altFunctionUse;
9168 while (num3 != 0)
9169 {
9170 }
9171 if (num3 == 0 && this.inventory.position == null)
9172 {
9173 return;
9174 }
9175 }
9176 }
9177 return;
9178 Block_2:
9179 if (!this.controlUseItem)
9180 {
9181 int num4 = this.altFunctionUse;
9182 }
9183 return;
9184 Block_8:
9185 bool flag3 = this.mouseInterface;
9186 while (flag3)
9187 {
9188 }
9189 if (!flag3)
9190 {
9191 }
9192 if (!flag3)
9193 {
9194 }
9195 bool hoveringOverAnNPC = Main.HoveringOverAnNPC;
9196 if (!flag3)
9197 {
9198 }
9199 bool smartInteractShowingGenuine = Main.SmartInteractShowingGenuine;
9200 return;
9201 Block_11:
9202 int num5 = 1;
9205 return;
9206 IL_0157:
9208 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
List< int > _projectilesToInteractWith
Definition Player.cs:23477
bool mouseInterface
Definition Player.cs:21080
bool releaseUseItem
Definition Player.cs:21515
Item[] inventory
Definition Player.cs:21263
bool controlUseTile
Definition Player.cs:21485
bool controlUseItem
Definition Player.cs:21482
bool tileInteractionHappened
Definition Player.cs:21599

References Terraria.Player._projectilesToInteractWith, System.Collections.Generic.List< T >._size, Terraria.Player.altFunctionUse, Terraria.Player.controlUseItem, Terraria.Player.controlUseTile, Terraria.Main.HoveringOverAnNPC, Terraria.Player.inventory, Terraria.Player.itemAnimation, Terraria.Player.itemTime, j__TPar, Terraria.Player.mouseInterface, Terraria.Main.mouseRightRelease, Terraria.Main.MouseWorld, Terraria.Main.myPlayer, Terraria.Entity.position, Terraria.Player.releaseUseItem, Terraria.Player.selectedItem, Terraria.Main.SmartInteractProj, Terraria.Main.SmartInteractShowingGenuine, Terraria.Player.tileInteractionHappened, and Terraria.Entity.whoAmI.