public override void OnHitPlayer(Player target, int damage, bool crit) { target.AddBuff(BuffID.Wet, 420); //target.AddBuff(mod.BuffType("SqueakyToy"), Main.rand.Next(60, 180)); target.AddBuff(mod.BuffType("OceanicMaul"), 1800); target.GetModPlayer <FargoPlayer>().MaxLifeReduction += FargoSoulsGlobalNPC.BossIsAlive(ref FargoSoulsGlobalNPC.fishBossEX, NPCID.DukeFishron) ? 10 : 50; }
public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { if (FargoSoulsWorld.downedFishronEX || !FargoSoulsGlobalNPC.BossIsAlive(ref FargoSoulsGlobalNPC.fishBossEX, NPCID.DukeFishron)) { npc.lifeMax = (int)(npc.lifeMax * (1 + FargoSoulsWorld.FishronCount * .025)); npc.damage = (int)(npc.damage * (1 + FargoSoulsWorld.FishronCount * .0125)); } }
public override void AI() { if (!FargoSoulsGlobalNPC.BossIsAlive(ref FargoSoulsGlobalNPC.beeBoss, NPCID.QueenBee) && !NPC.AnyNPCs(NPCID.QueenBee)) { npc.StrikeNPCNoInteraction(9999, 0f, 0); } }
public override void AI() { if (!FargoSoulsGlobalNPC.BossIsAlive(ref FargoSoulsGlobalNPC.beeBoss, NPCID.QueenBee) && !NPC.AnyNPCs(NPCID.QueenBee)) { npc.StrikeNPCNoInteraction(9999, 0f, 0); } //tries to stinger, force into dash if (npc.ai[0] == 1 || npc.ai[0] == 3) { npc.ai[0] = 0f; npc.netUpdate = true; } }
public override void AI() { if (!npc.GetGlobalNPC <FargoSoulsGlobalNPC>().masoBool[0]) { npc.GetGlobalNPC <FargoSoulsGlobalNPC>().masoBool[0] = true; Main.npcTexture[npc.type] = Main.npcTexture[NPCID.QueenBee]; } if (!FargoSoulsGlobalNPC.BossIsAlive(ref FargoSoulsGlobalNPC.beeBoss, NPCID.QueenBee) && !NPC.AnyNPCs(NPCID.QueenBee)) { npc.StrikeNPCNoInteraction(9999, 0f, 0); } //tries to stinger, force into dash if (npc.ai[0] == 1 || npc.ai[0] == 3) { npc.ai[0] = 0f; npc.netUpdate = true; } npc.position -= npc.velocity / 3; }