diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index e70e089022..d2238dce0b 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1189,6 +1189,8 @@ namespace CalamityMod.Items // Arcane and Magnet Flower buffs if (item.type == ItemID.ArcaneFlower || item.type == ItemID.MagnetFlower) player.manaCost -= 0.04f; + if (item.type == ItemID.ArcaneFlower) + player.GetDamage() += 0.05f; if (item.type == ItemID.SniperScope) { diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index e2275e3809..602f7c42fb 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -611,6 +611,8 @@ namespace CalamityMod.Items // Arcane and Magnet Flower buffs. if (item.type == ItemID.ArcaneFlower || item.type == ItemID.MagnetFlower) EditTooltipByNum(0, (line) => line.Text = "12% reduced mana usage"); + if (item.type == ItemID.ArcaneFlower) + EditTooltipByNum(2, (line) => line.Text += "\n5% increased magic damage"); // Magiluminescence nerf and clear explanation of what it actually does. if (item.type == ItemID.Magiluminescence) diff --git a/NPCs/Leviathan/AnahitasIceShield.cs b/NPCs/Leviathan/AnahitasIceShield.cs index d919bf4115..950d6f2043 100644 --- a/NPCs/Leviathan/AnahitasIceShield.cs +++ b/NPCs/Leviathan/AnahitasIceShield.cs @@ -1,4 +1,6 @@ using CalamityMod.Events; +using CalamityMod.Projectiles.Boss; +using CalamityMod.World; using Microsoft.Xna.Framework; using System.IO; using Terraria; @@ -9,6 +11,16 @@ namespace CalamityMod.NPCs.Leviathan { public class AnahitasIceShield : ModNPC { + public bool WaitingForLeviathan + { + get + { + if (Main.npc.IndexInRange(CalamityGlobalNPC.leviathan) && Main.npc[CalamityGlobalNPC.leviathan].life / (float)Main.npc[CalamityGlobalNPC.leviathan].lifeMax >= ((CalamityWorld.death || BossRushEvent.BossRushActive) ? 0.7f : 0.4f)) + return true; + + return CalamityUtils.FindFirstProjectile(ModContent.ProjectileType()) != -1; + } + } public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -62,7 +74,7 @@ namespace CalamityMod.NPCs.Leviathan if (NPC.alpha > 100 && NPC.ai[1] == 0f) NPC.alpha -= 2; - if (Main.npc[anahitaID].damage == 0) + if (WaitingForLeviathan) NPC.ai[1] = 1f; else NPC.ai[1] = 0f; @@ -70,7 +82,7 @@ namespace CalamityMod.NPCs.Leviathan if (NPC.ai[1] == 1f) NPC.alpha = Main.npc[anahitaID].alpha; - NPC.dontTakeDamage = Main.npc[anahitaID].damage == 0; + NPC.dontTakeDamage = WaitingForLeviathan; NPC.rotation = Main.npc[anahitaID].rotation; NPC.spriteDirection = Main.npc[anahitaID].direction; NPC.velocity = Vector2.Zero; diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index 68a534ad96..e11eade9a3 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -453,9 +453,8 @@ namespace CalamityMod.World y += 5; } - if (Main.tile[x, y].HasTile || Main.tile[x, y].WallType > 0 && (!CalamityUtils.TileActiveAndOfType(x, y, TileID.Torches) || - !CalamityUtils.TileActiveAndOfType(x, y, TileID.Containers) || !CalamityUtils.TileActiveAndOfType(x, y, TileID.Containers2) - || (magicStorage is not null && MSTilesToAvoid.Contains(Main.tile[x, y].TileType)))) //AVOID HOUSES + if (Main.tile[x, y].HasTile || Main.tile[x, y].WallType > 0 && !TileID.Sets.Torch[Main.tile[x,y].TileType] && !TileID.Sets.IsAContainer[Main.tile[x, y].TileType] + && (magicStorage is not null && MSTilesToAvoid.Contains(Main.tile[x, y].TileType))) //AVOID HOUSES { bool place = true; SchematicManager.PlaceSchematic>(SchematicManager.AstralBeaconKey, new Point(x, y - 5), SchematicAnchor.Center, ref place);