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

◆ TypeToDefaultHeadIndex()

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

Definition at line 2472 of file NPC.cs.

2473 {
2474 return type switch
2475 {
2476 0 => 0,
2477 17 => 2,
2478 18 => 3,
2479 19 => 6,
2480 20 => 5,
2481 22 => 1,
2482 38 => 4,
2483 54 => 7,
2484 107 => 9,
2485 108 => 10,
2486 124 => 8,
2487 142 => 11,
2488 160 => 12,
2489 178 => 13,
2490 207 => 14,
2491 208 => 15,
2492 209 => 16,
2493 227 => 17,
2494 228 => 18,
2495 229 => 19,
2496 353 => 20,
2497 368 => 21,
2498 369 => 22,
2499 441 => 23,
2500 550 => 24,
2501 588 => 25,
2502 633 => 26,
2503 663 => 45,
2504 637 => 27,
2505 638 => 33,
2506 656 => 39,
2507 670 => 46,
2508 678 => 47,
2509 679 => 48,
2510 680 => 49,
2511 681 => 50,
2512 682 => 51,
2513 683 => 52,
2514 684 => 53,
2516 };
2517 }
static int GetNPCHeadSlot(int type)
This class serves as a central place from which NPC head slots are stored and NPC head textures are a...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990

References Terraria.ModLoader.NPCHeadLoader.GetNPCHeadSlot(), and Terraria.NPC.type.

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function: