diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 0b076da6e2..d512e897ea 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -80,6 +80,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public bool spawnArena = false; public bool enteredBrothersPhase = false; public bool hasSummonedBrothers = false; + public bool cirrus = false; public int giveUpCounter = 1200; public int phaseChange = 0; @@ -270,6 +271,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas writer.Write(spawnArena); writer.Write(hasSummonedBrothers); writer.Write(enteredBrothersPhase); + writer.Write(cirrus); writer.Write(NPC.dontTakeDamage); writer.Write(NPC.chaseable); @@ -321,6 +323,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas spawnArena = reader.ReadBoolean(); hasSummonedBrothers = reader.ReadBoolean(); enteredBrothersPhase = reader.ReadBoolean(); + cirrus = reader.ReadBoolean(); NPC.dontTakeDamage = reader.ReadBoolean(); NPC.chaseable = reader.ReadBoolean(); @@ -2737,6 +2740,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas Texture2D texture2D15 = DownedBossSystem.downedCalamitas && !BossRushEvent.BossRushActive ? TextureAssets.Npc[NPC.type].Value : ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCalamitasHooded").Value; + if (cirrus) + { + texture2D15 = ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCirrus").Value; + } + Vector2 vector11 = new Vector2(texture2D15.Width / 2f, texture2D15.Height / Main.npcFrameCount[NPC.type] / 2f); Color color36 = Color.White; float amount9 = 0.5f; @@ -2828,7 +2836,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas GameShaders.Misc["CalamityMod:SupremeShield"].UseImage1("Images/Misc/Perlin"); Color forcefieldColor = Color.DarkViolet; - Color secondaryForcefieldColor = Color.Red * 1.4f; + Color secondaryForcefieldColor = (cirrus ? Color.HotPink : Color.Red) * 1.4f; if (!NPC.dontTakeDamage && (willCharge || NPC.ai[1] == 2f)) { diff --git a/NPCs/SupremeCalamitas/SupremeCirrus.png b/NPCs/SupremeCalamitas/SupremeCirrus.png new file mode 100644 index 0000000000..dfd69ab6d3 Binary files /dev/null and b/NPCs/SupremeCalamitas/SupremeCirrus.png differ diff --git a/Projectiles/Boss/SCalRitualDrama.cs b/Projectiles/Boss/SCalRitualDrama.cs index 0fa9ada6a0..74d8e31bb8 100644 --- a/Projectiles/Boss/SCalRitualDrama.cs +++ b/Projectiles/Boss/SCalRitualDrama.cs @@ -74,10 +74,17 @@ namespace CalamityMod.Projectiles.Boss // Summon SCal serverside. // All the other acoustic and visual effects can happen client-side. if (Main.netMode != NetmodeID.MultiplayerClient) - CalamityUtils.SpawnBossBetter(Projectile.Center - new Vector2(60f), ModContent.NPCType()); + { + NPC scal = CalamityUtils.SpawnBossBetter(Projectile.Center - new Vector2(60f), ModContent.NPCType()); + if (Projectile.ai[1] == 1) + { + scal.ModNPC().cirrus = true; + } + } // Make a laugh sound and create a burst of brimstone dust. - SoundEngine.PlaySound(SupremeCalamitas.SpawnSound, Projectile.Center); + SoundStyle SpawnSound = Projectile.ai[1] == 1 ? SoundID.Item107 : SupremeCalamitas.SpawnSound; + SoundEngine.PlaySound(SpawnSound, Projectile.Center); // Make a sudden screen shake. Main.LocalPlayer.Calamity().GeneralScreenShakePower = Utils.GetLerpValue(3400f, 1560f, Main.LocalPlayer.Distance(Projectile.Center), true) * 16f; @@ -90,7 +97,8 @@ namespace CalamityMod.Projectiles.Boss burstDirectionVariance += j * 2; for (int k = 0; k < 40; k++) { - Dust burstDust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.Brimstone); + int type = Projectile.ai[1] == 1 ? 69 : (int)CalamityDusts.Brimstone; + Dust burstDust = Dust.NewDustPerfect(Projectile.Center, type); burstDust.scale = Main.rand.NextFloat(3.1f, 3.5f); burstDust.position += Main.rand.NextVector2Circular(10f, 10f); burstDust.velocity = Main.rand.NextVector2Square(-burstDirectionVariance, burstDirectionVariance).SafeNormalize(Vector2.UnitY) * burstSpeed; diff --git a/Tiles/Furniture/CraftingStations/SCalAltar.cs b/Tiles/Furniture/CraftingStations/SCalAltar.cs index 33c2e44dd9..6411d1be94 100644 --- a/Tiles/Furniture/CraftingStations/SCalAltar.cs +++ b/Tiles/Furniture/CraftingStations/SCalAltar.cs @@ -1,9 +1,11 @@ using CalamityMod.Events; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.CraftingStations; +using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Items.SummonItems; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.Projectiles.Boss; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -63,10 +65,19 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations public static void HoverItemIcon() { - if (Main.LocalPlayer.HasItem(ModContent.ItemType())) + bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && CalamityWorld.getFixedBoi; + if (vodka) + { + Main.LocalPlayer.cursorItemIconID = ModContent.ItemType(); + } + else if (Main.LocalPlayer.HasItem(ModContent.ItemType())) + { Main.LocalPlayer.cursorItemIconID = ModContent.ItemType(); + } else + { Main.LocalPlayer.cursorItemIconID = ModContent.ItemType(); + } Main.LocalPlayer.noThrow = 2; Main.LocalPlayer.cursorItemIconEnabled = true; @@ -80,11 +91,13 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations int top = j - tile.TileFrameY / 18; if (!Main.LocalPlayer.HasItem(ModContent.ItemType()) && - !Main.LocalPlayer.HasItem(ModContent.ItemType())) + !Main.LocalPlayer.HasItem(ModContent.ItemType()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && CalamityWorld.getFixedBoi)) { return true; } + bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && CalamityWorld.getFixedBoi; + if (NPC.AnyNPCs(ModContent.NPCType()) || BossRushEvent.BossRushActive) return true; @@ -97,10 +110,16 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations ritualSpawnPosition += new Vector2(-10f, -24f); SoundEngine.PlaySound(SummonSound, ritualSpawnPosition); - Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, Main.myPlayer); + Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0, vodka.ToInt()); - if (!usingSpecialItem) + if (vodka) + { + Main.LocalPlayer.ConsumeItem(ModContent.ItemType(), true); + } + else if (!usingSpecialItem) + { Main.LocalPlayer.ConsumeItem(ModContent.ItemType(), true); + } return true; } }