Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SelectEquipPage()

static void Terraria.UI.ItemSlot.SelectEquipPage ( Item item)
inlinestatic

Definition at line 3626 of file ItemSlot.cs.

3627 {
3628 Main.EquipPage = -1;
3629 if (!item.IsAir)
3630 {
3631 if (Main.projHook[item.shoot])
3632 {
3633 Main.EquipPage = 2;
3634 }
3635 else if (item.mountType != -1)
3636 {
3637 Main.EquipPage = 2;
3638 }
3639 else if (item.buffType > 0 && Main.vanityPet[item.buffType])
3640 {
3641 Main.EquipPage = 2;
3642 }
3643 else if (item.buffType > 0 && Main.lightPet[item.buffType])
3644 {
3645 Main.EquipPage = 2;
3646 }
3647 else if (item.dye > 0 && Main.EquipPageSelected == 1)
3648 {
3649 Main.EquipPage = 0;
3650 }
3651 else if (item.legSlot != -1 || item.headSlot != -1 || item.bodySlot != -1 || item.accessory)
3652 {
3653 Main.EquipPage = 0;
3654 }
3655 }
3656 }

References Terraria.Main.EquipPageSelected, System.item, Terraria.Main.lightPet, Terraria.Main.projHook, and Terraria.Main.vanityPet.

Referenced by Terraria.Main.DrawPageIcons().