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

◆ TypeToDefaultHeadIndex()

static int Terraria.NPC.TypeToDefaultHeadIndex ( int type)
inlinestatic

Definition at line 1651 of file NPC.cs.

1652 {
1653 return type switch
1654 {
1655 0 => 0,
1656 17 => 2,
1657 18 => 3,
1658 19 => 6,
1659 20 => 5,
1660 22 => 1,
1661 38 => 4,
1662 54 => 7,
1663 107 => 9,
1664 108 => 10,
1665 124 => 8,
1666 142 => 11,
1667 160 => 12,
1668 178 => 13,
1669 207 => 14,
1670 208 => 15,
1671 209 => 16,
1672 227 => 17,
1673 228 => 18,
1674 229 => 19,
1675 353 => 20,
1676 368 => 21,
1677 369 => 22,
1678 441 => 23,
1679 550 => 24,
1680 588 => 25,
1681 633 => 26,
1682 663 => 45,
1683 637 => 27,
1684 638 => 33,
1685 656 => 39,
1686 670 => 46,
1687 678 => 47,
1688 679 => 48,
1689 680 => 49,
1690 681 => 50,
1691 682 => 51,
1692 683 => 52,
1693 684 => 53,
1694 _ => -1,
1695 };
1696 }
int type
Definition NPC.cs:445

References Terraria.NPC.type.

Referenced by Terraria.Player.CollectTaxes(), Terraria.Main.DrawInterface_38_MouseCarriedObject(), Terraria.GameContent.TownNPCProfiles.GetHeadIndexSafe(), and Terraria.NetMessage.SendNPCHousesAndTravelShop().