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

◆ CloneLoadouts()

void Terraria.Player.CloneLoadouts ( Player clonePlayer)
inlineprivate

Definition at line 18529 of file Player.cs.

18530 {
18531 long entityId = this.armor.entityId;
18532 Item[] array = clonePlayer.armor;
18533 Item item;
18534 if (item == null || item != null)
18535 {
18536 long entityId2 = this.dye.entityId;
18537 Item[] array2 = clonePlayer.dye;
18538 Item item2 = item.Clone();
18539 if (item2 == null || item2 != null)
18540 {
18541 Item[] array3 = this.Loadouts.Dye;
18543 bool[] hide = clonePlayer.Loadouts.Hide;
18544 Item item3 = item2.Clone();
18545 if (item3 == null || item3 != null)
18546 {
18547 EquipmentLoadout[] loadouts = this.Loadouts;
18548 bool[] hide2 = clonePlayer.Loadouts.Hide;
18549 Item item4 = item3.Clone();
18550 if (item4 == null || item4 != null)
18551 {
18552 EquipmentLoadout[] loadouts2 = this.Loadouts;
18553 return;
18554 }
18555 }
18556 }
18557 }
18558 throw new ArrayTypeMismatchException();
18559 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
EquipmentLoadout[] Loadouts
Definition Player.cs:23522

References Terraria.Player.armor, System.array, Terraria.Item.Clone(), Terraria.EquipmentLoadout.Dye, Terraria.Player.dye, Terraria.Entity.entityId, Terraria.EquipmentLoadout.Hide, System.item, j__TPar, Terraria.Player.Loadouts, and Terraria.Entity.position.