public override void ModifyHitPlayer(NPC npc, Player target, ref int damage, ref bool crit) { if (ModSupport.GetMod("CalamityMod") != null) { if (npc.type > 580 && npc.modNPC.mod == ModLoader.GetMod("AAModEXAI") && npc.boss) { bool revenge = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "revenge", false, true); bool Death = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "death", false, true); if (!NPC.downedMoonlord) { damage = (int)(damage * (1.1f + (revenge? 0.2f:0f) + (Death? 0.3f:0f))); } else { damage = (int)(damage * (1.2f + (revenge? 0.4f:0f) + (Death? 0.6f:0f))); } } } }
public override void ModifyHitPlayer(Projectile projectile, Player target, ref int damage, ref bool crit) { if (ModSupport.GetMod("CalamityMod") != null) { if (projectile.hostile && !projectile.friendly && projectile.type > 714 && projectile.modProjectile.mod == AAModEXAI.instance) { bool revenge = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "revenge", false, true); bool Death = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "death", false, true); if (!NPC.downedMoonlord) { damage = (int)(damage * (1.1f + (revenge? 0.2f:0f) + (Death? 0.3f:0f))); } else { damage = (int)(damage * (1.2f + (revenge? 0.4f:0f) + (Death? 0.6f:0f))); } } } }
public override void PostUpdate() { AccessoryEffects(); if (player.endurance >= 1f) { player.endurance = .8f; } for (int i = 0; i < 200; i++) { if (!Main.npc[i].boss || !Main.npc[i].active) { continue; } if (Main.npc[i].type == ModContent.NPCType <Bosses.Akuma.AkumaTransition>()) { NPC akuma = Main.npc[i]; if (akuma.ai[0] >= 660) { player.AddBuff(ModContent.BuffType <Buffs.BlazingPain>(), 2); } } else if (Main.npc[i].type == ModContent.NPCType <Bosses.Akuma.Awakened.AkumaA>()) { player.AddBuff(ModContent.BuffType <Buffs.BlazingPain>(), 2); } else if (Main.npc[i].type == ModContent.NPCType <Bosses.Yamata.Yamata>()) { player.AddBuff(ModContent.BuffType <Buffs.YamataGravity>(), 10); } else if (Main.npc[i].type == ModContent.NPCType <Bosses.Yamata.Awakened.YamataA>()) { player.AddBuff(ModContent.BuffType <Buffs.YamataAGravity>(), 10); } else if (Main.npc[i].type == ModContent.NPCType <Bosses.Shen.ShenA>()) { NPC shen = Main.npc[i]; if (((ShenA)shen.modNPC).halfLifeAIChange) { player.AddBuff(ModContent.BuffType <Buffs.YamataAGravity>(), 10, true); player.AddBuff(ModContent.BuffType <Buffs.BlazingPain>(), 10, true); } } if (ModSupport.GetMod("CalamityMod") != null) { bool revenge = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "revenge", false, true); bool Death = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "death", false, true); if (revenge && (Main.npc[i].type == ModContent.NPCType <Bosses.Shen.Shen>() || Main.npc[i].type == ModContent.NPCType <Bosses.Shen.ShenA>())) { player.AddBuff(ModContent.BuffType <Buffs.YamataAGravity>(), 10, true); player.AddBuff(ModContent.BuffType <Buffs.BlazingPain>(), 10, true); } } } /* * if (NPC.AnyNPCs(mod.NPCType("AkumaTransition"))) * { * int n = BaseAI.GetNPC(player.Center, mod.NPCType("AkumaTransition"), -1); * NPC akuma = Main.npc[n]; * * if (akuma.ai[0] >= 660) * { * player.AddBuff(mod.BuffType("BlazingPain"), 2); * } * } * else if (NPC.AnyNPCs(mod.NPCType("AkumaA"))) * { * player.AddBuff(mod.BuffType("BlazingPain"), 2); * } * * if (NPC.AnyNPCs(mod.NPCType("Yamata"))) * { * player.AddBuff(mod.BuffType("YamataGravity"), 10); * } * * if (NPC.AnyNPCs(mod.NPCType("YamataA"))) * { * player.AddBuff(mod.BuffType("YamataAGravity"), 10); * } * * if (NPC.AnyNPCs(mod.NPCType("ShenA"))) * { * int n = BaseAI.GetNPC(player.Center, mod.NPCType("ShenA"), -1); * NPC shen = Main.npc[n]; * * if (((ShenA)shen.modNPC).halfLifeAIChange) * { * player.AddBuff(mod.BuffType("YamataAGravity"), 10); * player.AddBuff(mod.BuffType("BlazingPain"), 10); * } * } * * * if (ModSupport.GetMod("CalamityMod") != null) * { * bool revenge = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "revenge", false, true); * bool Death = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "death", false, true); * * if (revenge && (NPC.AnyNPCs(ModContent.NPCType<Shen>()) || NPC.AnyNPCs(ModContent.NPCType<ShenA>()))) * { * player.AddBuff(mod.BuffType("YamataAGravity"), 10); * player.AddBuff(mod.BuffType("BlazingPain"), 10); * } * } */ }