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

◆ TryAllowingItemReuse()

void Terraria.Player.TryAllowingItemReuse ( Item sItem)
inlineprivate

Definition at line 17317 of file Player.cs.

17318 {
17319 bool summon;
17320 if (this.autoReuseGlove)
17321 {
17322 if (sItem.melee)
17323 {
17324 int type = sItem.type;
17325 return;
17326 }
17327 summon = sItem.summon;
17328 if (!summon || !summon)
17329 {
17330 }
17331 }
17332 if (this.autoReuseAllWeapons)
17333 {
17334 int damage = sItem.damage;
17335 if (sItem.channel)
17336 {
17337 bool flag = this.channel;
17338 return;
17339 }
17340 }
17341 else if (!summon)
17342 {
17343 return;
17344 }
17345 int num = 1;
17346 this.releaseUseItem = num != 0;
17347 }
class f__AnonymousType0<< Count > j__TPar
bool autoReuseAllWeapons
Definition Player.cs:21611
bool autoReuseGlove
Definition Player.cs:22397

References Terraria.Player.autoReuseAllWeapons, Terraria.Player.autoReuseGlove, Terraria.Player.channel, j__TPar, and Terraria.Item.melee.

Referenced by Terraria.Player.ItemCheck_HandleMPItemAnimation().