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

◆ DoDeathEvents_DropBossPotionsAndHearts()

void Terraria.NPC.DoDeathEvents_DropBossPotionsAndHearts ( ref string typeName)
inlineprivate

Definition at line 84553 of file NPC.cs.

84554 {
84555 int stack = Main.rand.Next(5, 16);
84556 int num = 28;
84557 if (type == 113)
84558 {
84559 num = 188;
84560 }
84561 else if (type == 35)
84562 {
84563 num = 188;
84564 }
84565 else if (type == 668)
84566 {
84567 num = 188;
84568 }
84569 else if (type == 222)
84570 {
84571 num = 1134;
84572 }
84573 else if (type == 657)
84574 {
84575 num = 499;
84576 }
84577 else if (type > 113 && type < 222)
84578 {
84579 num = 499;
84580 }
84581 else if (type == 636)
84582 {
84583 num = 499;
84584 }
84585 else if (type == 245 || type == 262)
84586 {
84587 num = 499;
84588 }
84589 else if (type == 370)
84590 {
84591 num = 499;
84592 }
84593 else if (type == 395)
84594 {
84595 num = 499;
84596 }
84597 else if (type == 439)
84598 {
84599 num = 499;
84600 }
84601 else if (type == 398)
84602 {
84603 num = 3544;
84604 }
84606 Item.NewItem(GetItemSource_Loot(), (int)position.X, (int)position.Y, width, height, num, stack);
84607 int num2 = Main.rand.Next(5) + 5;
84608 for (int i = 0; i < num2; i++)
84609 {
84610 Item.NewItem(GetItemSource_Loot(), (int)position.X, (int)position.Y, width, height, 58);
84611 }
84612 if (type == 4)
84613 {
84614 EoCKilledToday = true;
84615 }
84616 else if (type == 113)
84617 {
84618 WoFKilledToday = true;
84619 }
84621 {
84623 Item.NewItem(GetItemSource_Loot(), (int)position.X, (int)position.Y, width, height, 5004);
84624 }
84625 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static void BossLoot(NPC npc, ref string name, ref int potionType)
Definition NPCLoader.cs:797
This serves as the central class from which NPC-related functions are carried out....
Definition NPCLoader.cs:26
static bool WoFKilledToday
Definition NPC.cs:1256
static void ResetBadgerHatTime()
Definition NPC.cs:84547
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
IEntitySource GetItemSource_Loot()
Definition NPC.cs:107573
static bool EoCKilledToday
Definition NPC.cs:1254

References Terraria.ModLoader.NPCLoader.BossLoot(), Terraria.NPC.EoCKilledToday, Terraria.NPC.GetItemSource_Loot(), Terraria.Entity.height, Terraria.Item.NewItem(), Terraria.Entity.position, Terraria.Main.rand, Terraria.NPC.ResetBadgerHatTime(), Terraria.NPC.type, Terraria.Entity.width, and Terraria.NPC.WoFKilledToday.

Referenced by Terraria.NPC.DoDeathEvents().

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