42242 {
42243 bool flag = !Main.npc[
npcIndex].immortal;
42244 if (
sItem.type == 3211)
42245 {
42248 vector *= (float)Main.rand.Next(30, 41) * 0.1f;
42252 }
42254 {
42257 }
42259 {
42261 }
42262 if (
sItem.type == 3106)
42263 {
42265 if (Main.netMode == 1)
42266 {
42267 NetMessage.SendData(84, -1, -1,
null,
whoAmI);
42268 }
42269 }
42270 if (
sItem.type == 5094)
42271 {
42273 }
42274 if (
sItem.type == 795)
42275 {
42277 }
42278 if (
sItem.type == 121)
42279 {
42281 }
42282 if (
sItem.type == 5097)
42283 {
42285 }
42286 if (
sItem.type == 1123 && flag)
42287 {
42288 int num = Main.rand.Next(1, 4);
42290 {
42291 num++;
42292 }
42293 for (
int i = 0;
i < num;
i++)
42294 {
42295 float num2 = (float)(
direction * 2) + (float)Main.rand.Next(-35, 36) * 0.02f;
42296 float num3 = (float)Main.rand.Next(-35, 36) * 0.02f;
42300 Main.projectile[
num4].melee =
true;
42301 }
42302 }
42304 {
42306 int num5 = Main.rand.Next(1, 4);
42308 for (
int j = 0;
j <
num5;
j++)
42309 {
42313 hitbox.Y -= 8;
42317 Main.rand.NextFloat();
42318 float num6 = (float)(Main.rand.Next(2) * 2 - 1) * ((
float)Math.PI / 5f + (float)
Math.
PI * 4f / 5f * Main.rand.NextFloat());
42327 {
42330 }
42333 }
42334 }
42336 {
42338 if (Main.rand.Next(10) == 0)
42339 {
42341 }
42342 if (Main.rand.Next(100) == 0)
42343 {
42345 }
42347 Main.item[
num11].stack = Main.rand.Next(1, 11);
42348 Main.item[
num11].velocity.Y = (float)Main.rand.Next(-20, 1) * 0.2f;
42349 Main.item[
num11].velocity.X = (float)Main.rand.Next(10, 31) * 0.2f * (float)
direction;
42350 Main.item[
num11].timeLeftInWhichTheItemCannotBeTakenByEnemies = 60;
42351 if (Main.netMode == 1)
42352 {
42353 NetMessage.SendData(148, -1, -1,
null,
num11);
42354 }
42355 }
42356 }
void TentacleSpike_TrySpiking(NPC npc, Item sItem, float damage, float knockBack)
IEntitySource GetProjectileSource_Misc(int projectileSourceId)
IEntitySource GetProjectileSource_Item(Item item)
void BatBat_TryLifeLeeching(Entity entity)
void BloodButcherer_TryButchering(NPC npc, Item sItem, float damage, float knockBack)
void Volcano_TrySpawningVolcano(NPC npc, Item sItem, float damage, float knockBack, Rectangle itemRectangle)
IEntitySource GetItemSource_OnHit(Entity victim, int itemSourceId)