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

◆ DoDeathEvents_DropBossPotionsAndHearts()

void Terraria.NPC.DoDeathEvents_DropBossPotionsAndHearts ( )
inlineprivate

Definition at line 71195 of file NPC.cs.

71196 {
71197 int stack = Main.rand.Next(5, 16);
71198 int num = 28;
71199 if (type == 113)
71200 {
71201 num = 188;
71202 }
71203 else if (type == 35)
71204 {
71205 num = 188;
71206 }
71207 else if (type == 668)
71208 {
71209 num = 188;
71210 }
71211 else if (type == 222)
71212 {
71213 num = 1134;
71214 }
71215 else if (type == 657)
71216 {
71217 num = 499;
71218 }
71219 else if (type > 113 && type < 222)
71220 {
71221 num = 499;
71222 }
71223 else if (type == 636)
71224 {
71225 num = 499;
71226 }
71227 else if (type == 245 || type == 262)
71228 {
71229 num = 499;
71230 }
71231 else if (type == 370)
71232 {
71233 num = 499;
71234 }
71235 else if (type == 395)
71236 {
71237 num = 499;
71238 }
71239 else if (type == 439)
71240 {
71241 num = 499;
71242 }
71243 else if (type == 398)
71244 {
71245 num = 3544;
71246 }
71247 Item.NewItem(GetItemSource_Loot(), (int)position.X, (int)position.Y, width, height, num, stack);
71248 int num2 = Main.rand.Next(5) + 5;
71249 for (int i = 0; i < num2; i++)
71250 {
71251 Item.NewItem(GetItemSource_Loot(), (int)position.X, (int)position.Y, width, height, 58);
71252 }
71253 if (type == 4)
71254 {
71255 EoCKilledToday = true;
71256 }
71257 else if (type == 113)
71258 {
71259 WoFKilledToday = true;
71260 }
71262 {
71264 Item.NewItem(GetItemSource_Loot(), (int)position.X, (int)position.Y, width, height, 5004);
71265 }
71266 }
Vector2 position
Definition Entity.cs:14
static bool WoFKilledToday
Definition NPC.cs:614
static void ResetBadgerHatTime()
Definition NPC.cs:71189
int type
Definition NPC.cs:445
IEntitySource GetItemSource_Loot()
Definition NPC.cs:87551
static bool EoCKilledToday
Definition NPC.cs:612

References 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, Terraria.NPC.WoFKilledToday, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.DoDeathEvents().