diff --git a/Buffs/Cooldowns/PlagueBlackoutCooldown.cs b/Buffs/Cooldowns/PlagueBlackoutCooldown.cs new file mode 100644 index 0000000000..f5b6d813c9 --- /dev/null +++ b/Buffs/Cooldowns/PlagueBlackoutCooldown.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.Cooldowns +{ + public class PlagueBlackoutCooldown : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Plague Blackout Cooldown"); + Description.SetDefault("Your plague blackout ability is recharging"); + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + longerExpertDebuff = false; + canBeCleared = false; + } + } +} diff --git a/Buffs/Cooldowns/PlagueBlackoutCooldown.png b/Buffs/Cooldowns/PlagueBlackoutCooldown.png new file mode 100644 index 0000000000..7db2900312 Binary files /dev/null and b/Buffs/Cooldowns/PlagueBlackoutCooldown.png differ diff --git a/Buffs/Summon/AtaxiaSummonSetBuff.cs b/Buffs/Summon/AtaxiaSummonSetBuff.cs index 1a3ddfa72d..36bbb63fd6 100644 --- a/Buffs/Summon/AtaxiaSummonSetBuff.cs +++ b/Buffs/Summon/AtaxiaSummonSetBuff.cs @@ -9,8 +9,8 @@ namespace CalamityMod.Buffs.Summon { public override void SetDefaults() { - DisplayName.SetDefault("Chaos Spirit"); - Description.SetDefault("The chaos spirit will protect you"); + DisplayName.SetDefault("Hydrothermic Vent"); + Description.SetDefault("The hydrothermic vent will protect you"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; } diff --git a/Buffs/Summon/AtaxiaSummonSetBuff.png b/Buffs/Summon/AtaxiaSummonSetBuff.png index d568ca3861..df7d882f78 100644 Binary files a/Buffs/Summon/AtaxiaSummonSetBuff.png and b/Buffs/Summon/AtaxiaSummonSetBuff.png differ diff --git a/Buffs/Summon/BrittleStar.png b/Buffs/Summon/BrittleStar.png index 04c3029de7..edb678d19b 100644 Binary files a/Buffs/Summon/BrittleStar.png and b/Buffs/Summon/BrittleStar.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index bf3b8ea936..9b14ffd1b1 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -17,12 +17,14 @@ using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs; +using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.Calamitas; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.NPCs.Leviathan; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.PlaguebringerGoliath; using CalamityMod.NPCs.Providence; +using CalamityMod.NPCs.SunkenSea; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using CalamityMod.Projectiles.Melee; @@ -30,6 +32,7 @@ using CalamityMod.Projectiles.Ranged; using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Environment; using CalamityMod.UI; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -507,6 +510,7 @@ namespace CalamityMod.CalPlayer public bool ataxiaFire = false; public bool ataxiaVolley = false; public bool ataxiaBlaze = false; + public bool hydrothermalSmoke = false; public bool daedalusAbsorb = false; public bool daedalusShard = false; public bool reaverSpore = false; @@ -1874,6 +1878,7 @@ namespace CalamityMod.CalPlayer ataxiaFire = false; ataxiaVolley = false; ataxiaBlaze = false; + hydrothermalSmoke = false; snowRuffianSet = false; eskimoSet = false; //vanilla armor meteorSet = false; //vanilla armor, for Space Gun nerf @@ -5555,7 +5560,7 @@ namespace CalamityMod.CalPlayer { if (npc.type == NPCID.BlueJellyfish || npc.type == NPCID.PinkJellyfish || npc.type == NPCID.GreenJellyfish || npc.type == NPCID.FungoFish || npc.type == NPCID.BloodJelly || npc.type == NPCID.AngryNimbus || npc.type == NPCID.GigaZapper || - npc.type == NPCID.MartianTurret || npc.type == ModContent.NPCType()) + npc.type == NPCID.MartianTurret || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType()) damage /= 2; } if (fleshTotem && !fleshTotemCooldown) @@ -5641,7 +5646,7 @@ namespace CalamityMod.CalPlayer } if (aSparkRare) { - if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || + if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ModContent.ProjectileType() || proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet) damage /= 2; } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 0e1179b718..afbfd8ea03 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -408,7 +408,7 @@ namespace CalamityMod.CalPlayer // Acid rain droplets if (player.whoAmI == Main.myPlayer) { - if (CalamityWorld.rainingAcid && player.Calamity().ZoneSulphur && !CalamityPlayer.areThereAnyDamnBosses && player.Center.Y < Main.worldSurface * 16f + 800f) + if (CalamityWorld.rainingAcid && modPlayer.ZoneSulphur && !CalamityPlayer.areThereAnyDamnBosses && player.Center.Y < Main.worldSurface * 16f + 800f) { int acidRainDropRate = (int)MathHelper.Clamp(Main.invasionSize * 0.4f, 13.5f, 50); Vector2 spawnPoint = new Vector2(player.Center.X + Main.rand.Next(-1000, 1001), player.Center.Y - Main.rand.Next(700, 801)); @@ -423,6 +423,23 @@ namespace CalamityMod.CalPlayer } } + //Hydrothermal blue smoke effects but it doesn't work epicccccc + if (player.whoAmI == Main.myPlayer) + { + if (modPlayer.hydrothermalSmoke) + { + if ((double)player.velocity.X > 0 || (double)player.velocity.Y > 0 || (double)player.velocity.X < -0.1 || (double)player.velocity.Y < -0.1) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); + } + } + //trying to find a workaround because apparently putting the bool in ResetEffects prevents it from working + if (!player.armorEffectDrawOutlines) + { + modPlayer.hydrothermalSmoke = false; + } + } + // Death Mode effects modPlayer.caveDarkness = 0f; if (CalamityWorld.death) diff --git a/Items/Accessories/GrandGelatin.png b/Items/Accessories/GrandGelatin.png index 1686452216..8c21f37c08 100644 Binary files a/Items/Accessories/GrandGelatin.png and b/Items/Accessories/GrandGelatin.png differ diff --git a/Items/Accessories/LifeJelly.png b/Items/Accessories/LifeJelly.png index fd5e502d8a..94edc721ec 100644 Binary files a/Items/Accessories/LifeJelly.png and b/Items/Accessories/LifeJelly.png differ diff --git a/Items/Accessories/ManaJelly.png b/Items/Accessories/ManaJelly.png index 14cb0a92bb..4b3b39bfa4 100644 Binary files a/Items/Accessories/ManaJelly.png and b/Items/Accessories/ManaJelly.png differ diff --git a/Items/Accessories/ScuttlersJewel.cs b/Items/Accessories/ScuttlersJewel.cs index 81a9bb69ff..6fa0ff6283 100644 --- a/Items/Accessories/ScuttlersJewel.cs +++ b/Items/Accessories/ScuttlersJewel.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Scuttler's Jewel"); - Tooltip.SetDefault("Javelin projectiles have a chance spawn a jewel spike when destroyed"); + Tooltip.SetDefault("Rogue javelin projectiles have a chance spawn a jewel spike when destroyed"); } public override void SetDefaults() diff --git a/Items/Accessories/VitalJelly.png b/Items/Accessories/VitalJelly.png index 0bdd413329..a4a112c513 100644 Binary files a/Items/Accessories/VitalJelly.png and b/Items/Accessories/VitalJelly.png differ diff --git a/Items/Accessories/Wings/DiscordianWings.cs b/Items/Accessories/Wings/DiscordianWings.cs index 8a96f02e15..6bc9a7f7dd 100644 --- a/Items/Accessories/Wings/DiscordianWings.cs +++ b/Items/Accessories/Wings/DiscordianWings.cs @@ -13,13 +13,13 @@ namespace CalamityMod.Items.Accessories.Wings { public override void SetStaticDefaults() { - DisplayName.SetDefault("Discordian Wings"); - Tooltip.SetDefault("Formed from the flames of pure chaos\n" + + DisplayName.SetDefault("Hadal Mantle"); + Tooltip.SetDefault("Fueled by the fury of the depths\n" + "Horizontal speed: 7.75\n" + "Acceleration multiplier: 1.5\n" + "Average vertical speed\n" + "Flight time: 180\n" + - "10% increased damage while wearing the Ataxia Armor"); + "10% increased damage while wearing the Hydrothermic Armor"); } public override void SetDefaults() diff --git a/Items/Accessories/Wings/DiscordianWings.png b/Items/Accessories/Wings/DiscordianWings.png index 810d842519..5aef8ffcae 100644 Binary files a/Items/Accessories/Wings/DiscordianWings.png and b/Items/Accessories/Wings/DiscordianWings.png differ diff --git a/Items/Accessories/Wings/DiscordianWings_Wings.png b/Items/Accessories/Wings/DiscordianWings_Wings.png index 5bb88eb502..a64eacf3d7 100644 Binary files a/Items/Accessories/Wings/DiscordianWings_Wings.png and b/Items/Accessories/Wings/DiscordianWings_Wings.png differ diff --git a/Items/Armor/AtaxiaArmor.cs b/Items/Armor/AtaxiaArmor.cs index 83538fd08a..abd671df04 100644 --- a/Items/Armor/AtaxiaArmor.cs +++ b/Items/Armor/AtaxiaArmor.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Armor"); + DisplayName.SetDefault("Hydrothermic Armor"); Tooltip.SetDefault("+20 max life\n" + "8% increased damage and 4% increased critical strike chance"); } diff --git a/Items/Armor/AtaxiaArmor.png b/Items/Armor/AtaxiaArmor.png index 525fb6b485..4f043ea947 100644 Binary files a/Items/Armor/AtaxiaArmor.png and b/Items/Armor/AtaxiaArmor.png differ diff --git a/Items/Armor/AtaxiaArmor_Arms.png b/Items/Armor/AtaxiaArmor_Arms.png index fa8fec2f8d..065f2801da 100644 Binary files a/Items/Armor/AtaxiaArmor_Arms.png and b/Items/Armor/AtaxiaArmor_Arms.png differ diff --git a/Items/Armor/AtaxiaArmor_Body.png b/Items/Armor/AtaxiaArmor_Body.png index f890e0b414..4dc1df5c64 100644 Binary files a/Items/Armor/AtaxiaArmor_Body.png and b/Items/Armor/AtaxiaArmor_Body.png differ diff --git a/Items/Armor/AtaxiaArmor_FemaleBody.png b/Items/Armor/AtaxiaArmor_FemaleBody.png index aabc67e196..4dc1df5c64 100644 Binary files a/Items/Armor/AtaxiaArmor_FemaleBody.png and b/Items/Armor/AtaxiaArmor_FemaleBody.png differ diff --git a/Items/Armor/AtaxiaHeadgear.cs b/Items/Armor/AtaxiaHeadgear.cs index e7e3fbee72..fe500812c5 100644 --- a/Items/Armor/AtaxiaHeadgear.cs +++ b/Items/Armor/AtaxiaHeadgear.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Headgear"); + DisplayName.SetDefault("Hydrothermic Headgear"); Tooltip.SetDefault("12% increased ranged damage and 10% increased ranged critical strike chance\n" + "Reduces ammo usage by 25%, temporary immunity to lava, and immunity to fire damage\n" + "Provides heat protection in Death Mode"); @@ -34,6 +34,7 @@ namespace CalamityMod.Items.Armor public override void ArmorSetShadows(Player player) { player.armorEffectDrawOutlines = true; + player.Calamity().hydrothermalSmoke = true; } public override void DrawHair(ref bool drawHair, ref bool drawAltHair) diff --git a/Items/Armor/AtaxiaHeadgear.png b/Items/Armor/AtaxiaHeadgear.png index 01ce905cb8..e43564d0e4 100644 Binary files a/Items/Armor/AtaxiaHeadgear.png and b/Items/Armor/AtaxiaHeadgear.png differ diff --git a/Items/Armor/AtaxiaHeadgear_Head.png b/Items/Armor/AtaxiaHeadgear_Head.png index 641731d4b3..a421825445 100644 Binary files a/Items/Armor/AtaxiaHeadgear_Head.png and b/Items/Armor/AtaxiaHeadgear_Head.png differ diff --git a/Items/Armor/AtaxiaHelm.cs b/Items/Armor/AtaxiaHelm.cs index b06118f233..6ec0e6dbe4 100644 --- a/Items/Armor/AtaxiaHelm.cs +++ b/Items/Armor/AtaxiaHelm.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Helm"); + DisplayName.SetDefault("Hydrothermic Helm"); Tooltip.SetDefault("12% increased melee damage and 10% increased melee critical strike chance\n" + "12% increased melee and movement speed\n" + "Melee attacks and melee projectiles inflict on fire\n" + @@ -36,6 +36,7 @@ namespace CalamityMod.Items.Armor public override void ArmorSetShadows(Player player) { player.armorEffectDrawOutlines = true; + player.Calamity().hydrothermalSmoke = true; } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/AtaxiaHelm.png b/Items/Armor/AtaxiaHelm.png index 24ad176f65..69a3e35904 100644 Binary files a/Items/Armor/AtaxiaHelm.png and b/Items/Armor/AtaxiaHelm.png differ diff --git a/Items/Armor/AtaxiaHelm_Head.png b/Items/Armor/AtaxiaHelm_Head.png index 74d340e905..c67d4253b3 100644 Binary files a/Items/Armor/AtaxiaHelm_Head.png and b/Items/Armor/AtaxiaHelm_Head.png differ diff --git a/Items/Armor/AtaxiaHelmet.cs b/Items/Armor/AtaxiaHelmet.cs index 36d8469221..0607f409d1 100644 --- a/Items/Armor/AtaxiaHelmet.cs +++ b/Items/Armor/AtaxiaHelmet.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Helmet"); + DisplayName.SetDefault("Hydrothermic Helmet"); Tooltip.SetDefault("5% increased minion damage and increased minion knockback\n" + "+2 max minions\n" + "Temporary immunity to lava and immunity to fire damage\n" + @@ -37,13 +37,14 @@ namespace CalamityMod.Items.Armor public override void ArmorSetShadows(Player player) { player.armorEffectDrawOutlines = true; + player.Calamity().hydrothermalSmoke = true; } public override void UpdateArmorSet(Player player) { player.setBonus = "40% increased minion damage\n" + "Inferno effect when below 50% life\n" + - "Summons a chaos spirit to protect you\n" + + "Summons a hydrothermic vent to protect you\n" + "You have a 20% chance to emit a blazing explosion when you are hit"; CalamityPlayer modPlayer = player.Calamity(); modPlayer.ataxiaBlaze = true; @@ -56,7 +57,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(190f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(190f * player.MinionDamage()), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.4f; diff --git a/Items/Armor/AtaxiaHelmet.png b/Items/Armor/AtaxiaHelmet.png index 93c34cfe64..48c8292052 100644 Binary files a/Items/Armor/AtaxiaHelmet.png and b/Items/Armor/AtaxiaHelmet.png differ diff --git a/Items/Armor/AtaxiaHelmet_Head.png b/Items/Armor/AtaxiaHelmet_Head.png index e474b10c26..1db4079bf7 100644 Binary files a/Items/Armor/AtaxiaHelmet_Head.png and b/Items/Armor/AtaxiaHelmet_Head.png differ diff --git a/Items/Armor/AtaxiaHood.cs b/Items/Armor/AtaxiaHood.cs index cf67e49703..6b71af1b1a 100644 --- a/Items/Armor/AtaxiaHood.cs +++ b/Items/Armor/AtaxiaHood.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Hood"); + DisplayName.SetDefault("Hydrothermic Hood"); Tooltip.SetDefault("12% increased rogue damage and 10% increased rogue critical strike chance\n" + "50% chance to not consume rogue items and 15% increased movement speed\n" + "Temporary immunity to lava and immunity to fire damage\n" + @@ -35,6 +35,7 @@ namespace CalamityMod.Items.Armor public override void ArmorSetShadows(Player player) { player.armorEffectDrawOutlines = true; + player.Calamity().hydrothermalSmoke = true; } public override void UpdateArmorSet(Player player) @@ -51,8 +52,8 @@ namespace CalamityMod.Items.Armor modPlayer.ataxiaBlaze = true; modPlayer.ataxiaVolley = true; modPlayer.rogueStealthMax += 1.1f; - player.Calamity().throwingDamage += 0.05f; - player.Calamity().wearingRogueArmor = true; + modPlayer.throwingDamage += 0.05f; + modPlayer.wearingRogueArmor = true; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/AtaxiaHood.png b/Items/Armor/AtaxiaHood.png index 7f066ab82a..8ea1eb5682 100644 Binary files a/Items/Armor/AtaxiaHood.png and b/Items/Armor/AtaxiaHood.png differ diff --git a/Items/Armor/AtaxiaHood_Head.png b/Items/Armor/AtaxiaHood_Head.png index d4838159f0..e22b20469c 100644 Binary files a/Items/Armor/AtaxiaHood_Head.png and b/Items/Armor/AtaxiaHood_Head.png differ diff --git a/Items/Armor/AtaxiaMask.cs b/Items/Armor/AtaxiaMask.cs index 546d6d570e..ebee740c94 100644 --- a/Items/Armor/AtaxiaMask.cs +++ b/Items/Armor/AtaxiaMask.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Mask"); + DisplayName.SetDefault("Hydrothermic Mask"); Tooltip.SetDefault("12% increased magic damage, reduces mana usage by 15%, and 10% increased magic critical strike chance\n" + "+100 max mana, temporary immunity to lava, and immunity to fire damage\n" + "Provides heat protection in Death Mode"); @@ -34,6 +34,7 @@ namespace CalamityMod.Items.Armor public override void ArmorSetShadows(Player player) { player.armorEffectDrawOutlines = true; + player.Calamity().hydrothermalSmoke = true; } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/AtaxiaMask.png b/Items/Armor/AtaxiaMask.png index 6f1e5446b2..39be1ca753 100644 Binary files a/Items/Armor/AtaxiaMask.png and b/Items/Armor/AtaxiaMask.png differ diff --git a/Items/Armor/AtaxiaMask_Head.png b/Items/Armor/AtaxiaMask_Head.png index 7efd79c740..b7c514963e 100644 Binary files a/Items/Armor/AtaxiaMask_Head.png and b/Items/Armor/AtaxiaMask_Head.png differ diff --git a/Items/Armor/AtaxiaSubligar.cs b/Items/Armor/AtaxiaSubligar.cs index 97e2499942..d3329c6e16 100644 --- a/Items/Armor/AtaxiaSubligar.cs +++ b/Items/Armor/AtaxiaSubligar.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ataxia Subligar"); + DisplayName.SetDefault("Hydrothermic Subligar"); Tooltip.SetDefault("3% increased critical strike chance\n" + "15% increased movement speed"); } diff --git a/Items/Armor/AtaxiaSubligar.png b/Items/Armor/AtaxiaSubligar.png index 677ffd9a46..08d4247e26 100644 Binary files a/Items/Armor/AtaxiaSubligar.png and b/Items/Armor/AtaxiaSubligar.png differ diff --git a/Items/Armor/AtaxiaSubligar_Legs.png b/Items/Armor/AtaxiaSubligar_Legs.png index 2de4516947..90103721ad 100644 Binary files a/Items/Armor/AtaxiaSubligar_Legs.png and b/Items/Armor/AtaxiaSubligar_Legs.png differ diff --git a/Items/Armor/PlagueReaperMask.cs b/Items/Armor/PlagueReaperMask.cs index 77df8d18a0..bfe52ce06a 100644 --- a/Items/Armor/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaperMask.cs @@ -1,3 +1,4 @@ +using CalamityMod.Buffs.Cooldowns; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; @@ -69,6 +70,10 @@ namespace CalamityMod.Items.Armor } modPlayer.plagueReaperCooldown--; } + if (modPlayer.plagueReaperCooldown == 1500) + { + player.AddBuff(ModContent.BuffType(), 1500, false); + } if (player.whoAmI == Main.myPlayer) { diff --git a/Items/Fishing/FishingRods/ChaoticSpreadRod.cs b/Items/Fishing/FishingRods/ChaoticSpreadRod.cs index a84b4e6541..8aa6ced860 100644 --- a/Items/Fishing/FishingRods/ChaoticSpreadRod.cs +++ b/Items/Fishing/FishingRods/ChaoticSpreadRod.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Fishing.FishingRods { public override void SetStaticDefaults() { - DisplayName.SetDefault("Chaotic Spread Rod"); + DisplayName.SetDefault("Rift Reeler"); Tooltip.SetDefault("Fires three to five lines at once. Can fish in lava.\n" + "The battlefield is a scene of constant chaos.\n" + //Napoleon Bonaparte quote reference "The winner will be the one who controls that chaos, both the pole and the fish."); @@ -40,7 +40,10 @@ namespace CalamityMod.Items.Fishing.FishingRods { float SpeedX = speedX + (float)Main.rand.Next(-75, 76) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-75, 76) * 0.05f; - int linecolor = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, 0, 0f, player.whoAmI, 0.0f, 0.0f); + int line = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, 0, 0f, player.whoAmI, 0.0f, 0.0f); + // Protection against projectile cap + if (Main.rand.NextBool() && line < Main.maxProjectiles) // randomizing line color + Main.projectile[line].Calamity().lineColor = 1; } return false; } diff --git a/Items/Fishing/FishingRods/ChaoticSpreadRod.png b/Items/Fishing/FishingRods/ChaoticSpreadRod.png index 65b9cd0482..50d68a1d99 100644 Binary files a/Items/Fishing/FishingRods/ChaoticSpreadRod.png and b/Items/Fishing/FishingRods/ChaoticSpreadRod.png differ diff --git a/Items/Materials/CruptixBar.cs b/Items/Materials/CruptixBar.cs index fe158fccbf..982e92d214 100644 --- a/Items/Materials/CruptixBar.cs +++ b/Items/Materials/CruptixBar.cs @@ -1,7 +1,9 @@ using CalamityMod.Items.Placeables.Ores; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Tiles; namespace CalamityMod.Items.Materials { @@ -9,11 +11,22 @@ namespace CalamityMod.Items.Materials { public override void SetStaticDefaults() { - DisplayName.SetDefault("Chaotic Bar"); + DisplayName.SetDefault("Scoria Bar"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + Tooltip.SetDefault("The smoke feels warm\n" + + "Looks funky when placed"); //explaining the texture shown when placed. same bug as red lightning container and ectoheart tbh } public override void SetDefaults() { + item.createTile = ModContent.TileType(); + item.noUseGraphic = true; //no use graphic because animated things swing their entire sheet + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; item.width = 30; item.height = 24; item.maxStack = 999; diff --git a/Items/Materials/CruptixBar.png b/Items/Materials/CruptixBar.png index 54b3da421c..670ec3fa3a 100644 Binary files a/Items/Materials/CruptixBar.png and b/Items/Materials/CruptixBar.png differ diff --git a/Items/Placeables/Ores/ChaoticOre.cs b/Items/Placeables/Ores/ChaoticOre.cs index 1da1aa3fd9..c4caff39ed 100644 --- a/Items/Placeables/Ores/ChaoticOre.cs +++ b/Items/Placeables/Ores/ChaoticOre.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Items.Placeables.Ores { public override void SetStaticDefaults() { - DisplayName.SetDefault("Chaotic Ore"); + DisplayName.SetDefault("Scoria Ore"); } public override void SetDefaults() diff --git a/Items/Placeables/Ores/ChaoticOre.png b/Items/Placeables/Ores/ChaoticOre.png index 97e5bd9674..6ded163e57 100644 Binary files a/Items/Placeables/Ores/ChaoticOre.png and b/Items/Placeables/Ores/ChaoticOre.png differ diff --git a/Items/Tools/ChaoswarpedSlashaxe.cs b/Items/Tools/ChaoswarpedSlashaxe.cs index eeae95d6b2..cafc172595 100644 --- a/Items/Tools/ChaoswarpedSlashaxe.cs +++ b/Items/Tools/ChaoswarpedSlashaxe.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Tools { public override void SetStaticDefaults() { - DisplayName.SetDefault("Chaoswarped Slashaxe"); + DisplayName.SetDefault("Tectonic Truncator"); } public override void SetDefaults() @@ -44,7 +44,12 @@ namespace CalamityMod.Items.Tools { if (Main.rand.NextBool(5)) { - int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 127); + int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(3) ? 16 : 127); + } + if (Main.rand.NextBool(5)) + { + int smoke = Gore.NewGore(new Vector2(hitbox.X, hitbox.Y), default, Main.rand.Next(375, 378), 0.75f); + Main.gore[smoke].behindTiles = true; } } diff --git a/Items/Tools/ChaoswarpedSlashaxe.png b/Items/Tools/ChaoswarpedSlashaxe.png index c9b99190cf..a0ebd46fed 100644 Binary files a/Items/Tools/ChaoswarpedSlashaxe.png and b/Items/Tools/ChaoswarpedSlashaxe.png differ diff --git a/Items/Tools/FlamebeakHampick.cs b/Items/Tools/FlamebeakHampick.cs index 0d91bf7e99..cce946278b 100644 --- a/Items/Tools/FlamebeakHampick.cs +++ b/Items/Tools/FlamebeakHampick.cs @@ -71,7 +71,12 @@ Right click to use as a hammer"); { if (Main.rand.NextBool(5)) { - int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 127); + int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(3) ? 16 : 127); + } + if (Main.rand.NextBool(5)) + { + int smoke = Gore.NewGore(new Vector2(hitbox.X, hitbox.Y), default, Main.rand.Next(375, 378), 0.75f); + Main.gore[smoke].behindTiles = true; } } diff --git a/Items/Tools/FlamebeakHampick.png b/Items/Tools/FlamebeakHampick.png index 2a132ea30e..8c9b22ad7a 100644 Binary files a/Items/Tools/FlamebeakHampick.png and b/Items/Tools/FlamebeakHampick.png differ diff --git a/Items/Weapons/Magic/BelchingSaxophone.cs b/Items/Weapons/Magic/BelchingSaxophone.cs index 5d4b521281..787e0e7f77 100644 --- a/Items/Weapons/Magic/BelchingSaxophone.cs +++ b/Items/Weapons/Magic/BelchingSaxophone.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Magic { public class BelchingSaxophone : ModItem { - public const int BaseDamage = 30; + public const int BaseDamage = 32; private int counter = 0; public override void SetStaticDefaults() diff --git a/Items/Weapons/Magic/ForbiddenSun.png b/Items/Weapons/Magic/ForbiddenSun.png index 7e13e36d43..fbf77418f0 100644 Binary files a/Items/Weapons/Magic/ForbiddenSun.png and b/Items/Weapons/Magic/ForbiddenSun.png differ diff --git a/Items/Weapons/Magic/HellwingStaff.png b/Items/Weapons/Magic/HellwingStaff.png index 426e7cd2e1..ccef51f3a8 100644 Binary files a/Items/Weapons/Magic/HellwingStaff.png and b/Items/Weapons/Magic/HellwingStaff.png differ diff --git a/Items/Weapons/Magic/StormSpray.png b/Items/Weapons/Magic/StormSpray.png index a95d2fa686..33e5033a62 100644 Binary files a/Items/Weapons/Magic/StormSpray.png and b/Items/Weapons/Magic/StormSpray.png differ diff --git a/Items/Weapons/Melee/AquaticDischarge.png b/Items/Weapons/Melee/AquaticDischarge.png index 02237d947d..ecebc39c4e 100644 Binary files a/Items/Weapons/Melee/AquaticDischarge.png and b/Items/Weapons/Melee/AquaticDischarge.png differ diff --git a/Items/Weapons/Melee/Chaotrix.cs b/Items/Weapons/Melee/Chaotrix.cs index a3c79c3e05..a0fbe0b00a 100644 --- a/Items/Weapons/Melee/Chaotrix.cs +++ b/Items/Weapons/Melee/Chaotrix.cs @@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Chaotrix"); - Tooltip.SetDefault("Explodes on enemy hits\nAn exceptionally agile yoyo"); + Tooltip.SetDefault("Explodes on enemy hits\n" + + "A very agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Chaotrix.png b/Items/Weapons/Melee/Chaotrix.png index d0616350be..5b37b1c522 100644 Binary files a/Items/Weapons/Melee/Chaotrix.png and b/Items/Weapons/Melee/Chaotrix.png differ diff --git a/Items/Weapons/Melee/ExsanguinationLance.png b/Items/Weapons/Melee/ExsanguinationLance.png index 83a5bebc14..83896b39e4 100644 Binary files a/Items/Weapons/Melee/ExsanguinationLance.png and b/Items/Weapons/Melee/ExsanguinationLance.png differ diff --git a/Items/Weapons/Melee/FlameScytheMelee.png b/Items/Weapons/Melee/FlameScytheMelee.png index d6577c12b4..2fb615a053 100644 Binary files a/Items/Weapons/Melee/FlameScytheMelee.png and b/Items/Weapons/Melee/FlameScytheMelee.png differ diff --git a/Items/Weapons/Melee/HellfireFlamberge.cs b/Items/Weapons/Melee/HellfireFlamberge.cs index a72d89f182..bd81d77d35 100644 --- a/Items/Weapons/Melee/HellfireFlamberge.cs +++ b/Items/Weapons/Melee/HellfireFlamberge.cs @@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Hellfire Flamberge"); - Tooltip.SetDefault("Fires a spread of fireballs"); + Tooltip.SetDefault("Fires a spread of volcanic fireballs"); } public override void SetDefaults() { - item.width = 60; + item.width = 58; item.damage = 102; item.melee = true; item.useAnimation = 20; @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee type = ModContent.ProjectileType(); break; case 1: - type = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); break; case 2: type = ModContent.ProjectileType(); @@ -73,7 +73,12 @@ namespace CalamityMod.Items.Weapons.Melee { if (Main.rand.NextBool(3)) { - int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 174); + int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(3) ? 16 : 174); + } + if (Main.rand.NextBool(5)) + { + int smoke = Gore.NewGore(new Vector2(hitbox.X, hitbox.Y), default, Main.rand.Next(375, 378), 0.75f); + Main.gore[smoke].behindTiles = true; } } diff --git a/Items/Weapons/Melee/HellfireFlamberge.png b/Items/Weapons/Melee/HellfireFlamberge.png index 0c433f0b1e..c3e0f37964 100644 Binary files a/Items/Weapons/Melee/HellfireFlamberge.png and b/Items/Weapons/Melee/HellfireFlamberge.png differ diff --git a/Items/Weapons/Melee/RedSun.cs b/Items/Weapons/Melee/RedSun.cs index d6479caa8b..5297863e9e 100644 --- a/Items/Weapons/Melee/RedSun.cs +++ b/Items/Weapons/Melee/RedSun.cs @@ -21,7 +21,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.width = 72; + item.width = 62; + item.height = 62; item.damage = 2500; item.melee = true; item.useTime = 5; @@ -32,7 +33,6 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 4; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.height = 72; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/RedSun.png b/Items/Weapons/Melee/RedSun.png index aa0820b4db..c051536ae6 100644 Binary files a/Items/Weapons/Melee/RedSun.png and b/Items/Weapons/Melee/RedSun.png differ diff --git a/Items/Weapons/Ranged/Barinade.png b/Items/Weapons/Ranged/Barinade.png index 0884a46051..724b21915d 100644 Binary files a/Items/Weapons/Ranged/Barinade.png and b/Items/Weapons/Ranged/Barinade.png differ diff --git a/Items/Weapons/Ranged/GreatbowofTurmoil.cs b/Items/Weapons/Ranged/GreatbowofTurmoil.cs index bcefb0140b..bde6567295 100644 --- a/Items/Weapons/Ranged/GreatbowofTurmoil.cs +++ b/Items/Weapons/Ranged/GreatbowofTurmoil.cs @@ -11,18 +11,19 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Greatbow of Turmoil"); - Tooltip.SetDefault("Fires 3 arrows at once\n" + + Tooltip.SetDefault("Wooden arrows are set alight with fire\n" + + "Fires 3 arrows at once\n" + "Fires 2 additional cursed, hellfire, or ichor arrows"); } public override void SetDefaults() { - item.damage = 33; + item.damage = 27; item.ranged = true; item.width = 18; item.height = 36; - item.useTime = 17; - item.useAnimation = 17; + item.useTime = 20; + item.useAnimation = 20; item.useStyle = 5; item.noMelee = true; item.knockBack = 4f; @@ -52,6 +53,10 @@ namespace CalamityMod.Items.Weapons.Ranged { value9 -= vector7; } + if (type == ProjectileID.WoodenArrowFriendly) + { + type = ProjectileID.FireArrow; + } int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[num121].noDropItem = true; } @@ -75,6 +80,8 @@ namespace CalamityMod.Items.Weapons.Ranged } int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.5f), knockBack, player.whoAmI, 0f, 0f); Main.projectile[index].noDropItem = true; + Main.projectile[index].usesLocalNPCImmunity = true; + Main.projectile[index].localNPCHitCooldown = 10; } return false; } diff --git a/Items/Weapons/Ranged/GreatbowofTurmoil.png b/Items/Weapons/Ranged/GreatbowofTurmoil.png index c2701d189e..e3fbcd12be 100644 Binary files a/Items/Weapons/Ranged/GreatbowofTurmoil.png and b/Items/Weapons/Ranged/GreatbowofTurmoil.png differ diff --git a/Items/Weapons/Ranged/Hellborn.cs b/Items/Weapons/Ranged/Hellborn.cs index 8193f63878..d2d838fdf8 100644 --- a/Items/Weapons/Ranged/Hellborn.cs +++ b/Items/Weapons/Ranged/Hellborn.cs @@ -1,6 +1,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Microsoft.Xna.Framework; namespace CalamityMod.Items.Weapons.Ranged { @@ -33,13 +34,20 @@ namespace CalamityMod.Items.Weapons.Ranged item.Calamity().customRarity = CalamityRarity.RareVariant; } + public override Vector2? HoldoutOffset() + { + return new Vector2(-5, 0); + } + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { for (int index = 0; index < 3; ++index) { float SpeedX = speedX + (float)Main.rand.Next(-15, 16) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-15, 16) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ProjectileID.ExplosiveBullet, damage, knockBack, player.whoAmI, 0f, 0f); + int bullet = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ProjectileID.ExplosiveBullet, damage, knockBack, player.whoAmI, 0f, 0f); + Main.projectile[bullet].usesLocalNPCImmunity = true; + Main.projectile[bullet].localNPCHitCooldown = 10; } return false; } diff --git a/Items/Weapons/Ranged/Helstorm.cs b/Items/Weapons/Ranged/Helstorm.cs index a60283e40a..141b5ea9f3 100644 --- a/Items/Weapons/Ranged/Helstorm.cs +++ b/Items/Weapons/Ranged/Helstorm.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Microsoft.Xna.Framework; namespace CalamityMod.Items.Weapons.Ranged { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 21; + item.damage = 31; item.ranged = true; item.width = 50; item.height = 24; @@ -33,6 +34,11 @@ namespace CalamityMod.Items.Weapons.Ranged item.useAmmo = 97; } + public override Vector2? HoldoutOffset() + { + return new Vector2(-5, 0); + } + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { for (int index = 0; index < 2; ++index) diff --git a/Items/Weapons/Ranged/Helstorm.png b/Items/Weapons/Ranged/Helstorm.png index b9fcdd173b..129ca5f1d1 100644 Binary files a/Items/Weapons/Ranged/Helstorm.png and b/Items/Weapons/Ranged/Helstorm.png differ diff --git a/Items/Weapons/Ranged/TrueConferenceCall.cs b/Items/Weapons/Ranged/TrueConferenceCall.cs index 6e982b1b91..1cb6a55de5 100644 --- a/Items/Weapons/Ranged/TrueConferenceCall.cs +++ b/Items/Weapons/Ranged/TrueConferenceCall.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Ranged item.ranged = true; item.width = 66; item.height = 26; - item.useTime = 24; - item.useAnimation = 24; + item.useTime = 26; + item.useAnimation = 26; item.useStyle = 5; item.noMelee = true; item.knockBack = 4.5f; diff --git a/Items/Weapons/Rogue/FlameScythe.png b/Items/Weapons/Rogue/FlameScythe.png index d6577c12b4..2fb615a053 100644 Binary files a/Items/Weapons/Rogue/FlameScythe.png and b/Items/Weapons/Rogue/FlameScythe.png differ diff --git a/Items/Weapons/Rogue/ScourgeoftheDesert.png b/Items/Weapons/Rogue/ScourgeoftheDesert.png index 93f9a0eefd..bf471717cd 100644 Binary files a/Items/Weapons/Rogue/ScourgeoftheDesert.png and b/Items/Weapons/Rogue/ScourgeoftheDesert.png differ diff --git a/Items/Weapons/Summon/SeaboundStaff.png b/Items/Weapons/Summon/SeaboundStaff.png index 8a0fe4de66..6af047ee40 100644 Binary files a/Items/Weapons/Summon/SeaboundStaff.png and b/Items/Weapons/Summon/SeaboundStaff.png differ diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index ec46d9bf95..bed650ad6d 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -638,27 +638,49 @@ namespace CalamityMod if (setBonus == "umbraphile") return mp.umbraphileSet; - // Ataxia + // Hydrothermic (Ataxia is legacy name) switch (setBonus) { default: break; case "ataxia": + case "hydrothermic": + case "hydrothermal": return mp.ataxiaBlaze; case "ataxia_melee": case "ataxia melee": + case "hydrothermic_melee": + case "hydrothermic melee": + case "hydrothermal_melee": + case "hydrothermal melee": return mp.ataxiaGeyser; case "ataxia_ranged": case "ataxia ranged": + case "hydrothermic_ranged": + case "hydrothermic ranged": + case "hydrothermal_ranged": + case "hydrothermal ranged": return mp.ataxiaBolt; case "ataxia_magic": case "ataxia magic": + case "hydrothermic_magic": + case "hydrothermic magic": + case "hydrothermal_magic": + case "hydrothermal magic": return mp.ataxiaMage; case "ataxia_summon": case "ataxia summon": + case "hydrothermic_summon": + case "hydrothermic summon": + case "hydrothermal_summon": + case "hydrothermal summon": return mp.chaosSpirit; case "ataxia_rogue": case "ataxia rogue": + case "hydrothermic_rogue": + case "hydrothermic rogue": + case "hydrothermal_rogue": + case "hydrothermal rogue": return mp.ataxiaVolley; } @@ -928,36 +950,58 @@ namespace CalamityMod return true; } - // Ataxia + // Hydrothermic (Ataxia as legacy name) switch (setBonus) { default: break; case "ataxia": + case "hydrothermic": + case "hydrothermal": mp.ataxiaBlaze = enabled; return true; case "ataxia_melee": case "ataxia melee": + case "hydrothermic_melee": + case "hydrothermic melee": + case "hydrothermal_melee": + case "hydrothermal melee": mp.ataxiaBlaze = enabled; mp.ataxiaGeyser = enabled; return true; case "ataxia_ranged": case "ataxia ranged": + case "hydrothermic_ranged": + case "hydrothermic ranged": + case "hydrothermal_ranged": + case "hydrothermal ranged": mp.ataxiaBlaze = enabled; mp.ataxiaBolt = enabled; return true; case "ataxia_magic": case "ataxia magic": + case "hydrothermic_magic": + case "hydrothermic magic": + case "hydrothermal_magic": + case "hydrothermal magic": mp.ataxiaBlaze = enabled; mp.ataxiaMage = enabled; return true; case "ataxia_summon": case "ataxia summon": + case "hydrothermic_summon": + case "hydrothermic summon": + case "hydrothermal_summon": + case "hydrothermal summon": mp.ataxiaBlaze = enabled; mp.chaosSpirit = enabled; // LATER -- remove this when player.chaosSpirit actually controls ataxia summoner return true; case "ataxia_rogue": case "ataxia rogue": + case "hydrothermic_rogue": + case "hydrothermic rogue": + case "hydrothermal_rogue": + case "hydrothermal rogue": mp.ataxiaBlaze = enabled; mp.ataxiaVolley = enabled; return true; diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index e1d1971921..7303c08a3f 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -772,7 +772,7 @@ namespace CalamityMod AddToMutantShop("SlimeGod", "OverloadedSludge", DownedSlimeGod, Item.buyPrice(gold: 15)); AddToMutantShop("BrimstoneElemental", "CharredIdol", DownedBrimstoneElemental, Item.buyPrice(gold: 20)); AddToMutantShop("AstrumAureus", "AstralChunk", DownedAureus, Item.buyPrice(gold: 25)); - AddToMutantShop("PlaguebringerGoliath", "Abombination", DownedPBG, Item.buyPrice(gold: 50)); + AddToMutantShop("PlaguebringerGoliath", "Abomination", DownedPBG, Item.buyPrice(gold: 50)); AddToMutantShop("Ravager", "AncientMedallion", DownedRavager, Item.buyPrice(gold: 50)); AddToMutantShop("ProfanedGuardians", "ProfanedShard", DownedGuardians, Item.buyPrice(platinum: 5)); AddToMutantShop("Bumblebirb", "BirbPheromones", DownedBirb, Item.buyPrice(platinum: 5)); diff --git a/NPCs/Abyss/ChaoticPuffer.png b/NPCs/Abyss/ChaoticPuffer.png index 5c81d9d9e3..813668657b 100644 Binary files a/NPCs/Abyss/ChaoticPuffer.png and b/NPCs/Abyss/ChaoticPuffer.png differ diff --git a/NPCs/Abyss/ChaoticPufferGlow.png b/NPCs/Abyss/ChaoticPufferGlow.png index 8c21d503ba..1534b51249 100644 Binary files a/NPCs/Abyss/ChaoticPufferGlow.png and b/NPCs/Abyss/ChaoticPufferGlow.png differ diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index 45fce42bf0..6f834f438d 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -41,7 +41,12 @@ namespace CalamityMod.NPCs.Bumblebirb npc.width = 130; npc.height = 100; npc.defense = 40; - npc.LifeMaxNERB(227500, 252500, 3000000); + CalamityGlobalNPC global = npc.Calamity(); + global.DR = 0.1f; + global.customDR = true; + global.multDRReductions.Add(BuffID.Ichor, 0.88f); + global.multDRReductions.Add(BuffID.CursedInferno, 0.9f); + npc.LifeMaxNERB(227500, 252500, 3000000); double HPBoost = CalamityMod.CalamityConfig.BossHealthPercentageBoost * 0.01; npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.knockBackResist = 0f; @@ -213,7 +218,7 @@ namespace CalamityMod.NPCs.Bumblebirb Texture2D texture2D15 = Main.npcTexture[npc.type]; Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); Color color = lightColor; - Color color36 = phase2 && calamityGlobalNPC.newAI[2] == 1f ? Color.Yellow : Color.White; + Color color36 = Color.White; float amount9 = 0f; int num150 = 120; @@ -221,23 +226,17 @@ namespace CalamityMod.NPCs.Bumblebirb if (phase3 && calamityGlobalNPC.newAI[3] == 1f) { - color = buffColor(color, 0.4f, 0.8f, 0.4f, 1f); - } - else if (phase3 && calamityGlobalNPC.newAI[1] > (float)num150) - { - float num152 = calamityGlobalNPC.newAI[1] - (float)num150; - num152 /= (float)num151; - color = buffColor(color, 1f - 0.5f * num152, 1f - 0.5f * num152, 1f - 0.3f * num152, 1f); + color = buffColor(color, 0.9f, 0.6f, 0.2f, 1f); } else if (phase2 && calamityGlobalNPC.newAI[2] == 1f) { - color = buffColor(color, 0.5f, 0.7f, 0.5f, 1f); + color = buffColor(color, 0.7f, 0.7f, 0.3f, 1f); } else if (phase2 && calamityGlobalNPC.newAI[0] > (float)num150) { float num152 = calamityGlobalNPC.newAI[0] - (float)num150; num152 /= (float)num151; - color = buffColor(color, 1f - 0.5f * num152, 1f - 0.5f * num152, 1f - 0.3f * num152, 1f); + color = buffColor(color, 1f - 0.3f * num152, 1f - 0.3f * num152, 1f - 0.7f * num152, 1f); } int num153 = 10; @@ -250,7 +249,7 @@ namespace CalamityMod.NPCs.Bumblebirb { num153 = 7; } - if (npc.ai[0] == 2f || npc.ai[0] == 3.2f) + if (npc.ai[0] == 2f || npc.ai[0] == 3.2f || (phase2 && calamityGlobalNPC.newAI[2] == 1f)) { color36 = Color.Yellow; amount9 = 0.5f; @@ -294,12 +293,22 @@ namespace CalamityMod.NPCs.Bumblebirb } } - if (phaseSwitchPhase && (calamityGlobalNPC.newAI[0] > (float)num150 || calamityGlobalNPC.newAI[1] > (float)num150)) + if (phaseSwitchPhase) { - num156 = 6; - num157 = 1f - (float)Math.Cos((double)(((phase3 ? calamityGlobalNPC.newAI[1] : calamityGlobalNPC.newAI[0]) - (float)num150) / (float)num151 * MathHelper.TwoPi)); - num157 /= 3f; - scaleFactor9 = 60f; + if (phase3 && calamityGlobalNPC.newAI[1] > (float)num150) + { + num156 = 6; + num157 = 1f - (float)Math.Cos((double)((calamityGlobalNPC.newAI[1] - (float)num150) / (float)num151 * MathHelper.TwoPi)); + num157 /= 3f; + scaleFactor9 = 60f; + } + else if (phase2 && calamityGlobalNPC.newAI[0] > (float)num150) + { + num156 = 6; + num157 = 1f - (float)Math.Cos((double)((calamityGlobalNPC.newAI[0] - (float)num150) / (float)num151 * MathHelper.TwoPi)); + num157 /= 3f; + scaleFactor9 = 60f; + } } for (int num160 = 0; num160 < num156; num160++) diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index af0f1fcfed..07d8e236bc 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -3701,6 +3701,8 @@ namespace CalamityMod.NPCs npc.dontTakeDamage = phaseSwitchPhase; + calamityGlobalNPC.DR = npc.ai[0] == 5f ? 0.75f : 0.1f; + if (phaseSwitchPhase) { npc.collideX = false; diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index 0be4e43729..480fcf56ec 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -56,11 +56,11 @@ namespace CalamityMod.NPCs.OldDuke npc.boss = true; npc.netAlways = true; npc.timeLeft = NPC.activeTime * 30; - /*Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/OldDuke"); + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"); else - music = MusicID.Boss1;*/ + music = MusicID.Boss1; bossBag = ModContent.ItemType(); for (int k = 0; k < npc.buffImmune.Length; k++) { @@ -251,7 +251,7 @@ namespace CalamityMod.NPCs.OldDuke if (npc.ai[2] > (float)num158) { num156 = 6; - num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num158) / (float)num159 * 6.28318548f)); + num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num158) / (float)num159 * MathHelper.TwoPi)); num157 /= 3f; scaleFactor9 = 40f; } @@ -260,7 +260,7 @@ namespace CalamityMod.NPCs.OldDuke if ((npc.ai[0] == 4f || npc.ai[0] == 9f) && npc.ai[2] > (float)num150) { num156 = 6; - num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num150) / (float)num151 * 6.28318548f)); + num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num150) / (float)num151 * MathHelper.TwoPi)); num157 /= 3f; scaleFactor9 = 60f; } @@ -268,7 +268,7 @@ namespace CalamityMod.NPCs.OldDuke if (npc.ai[0] == 12f) { num156 = 6; - num157 = 1f - (float)Math.Cos((double)(npc.ai[2] / 30f * 6.28318548f)); + num157 = 1f - (float)Math.Cos((double)(npc.ai[2] / 30f * MathHelper.TwoPi)); num157 /= 3f; scaleFactor9 = 20f; } @@ -279,7 +279,7 @@ namespace CalamityMod.NPCs.OldDuke color39 = Color.Lerp(color39, color36, amount9); color39 = npc.GetAlpha(color39); color39 *= 1f - num157; - Vector2 vector42 = npc.Center + ((float)num160 / (float)num156 * 6.28318548f + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition; + Vector2 vector42 = npc.Center + ((float)num160 / (float)num156 * MathHelper.TwoPi + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition; vector42 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; vector42 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); spriteBatch.Draw(texture2D15, vector42, new Rectangle?(npc.frame), color39, npc.rotation, vector11, npc.scale, spriteEffects, 0f); @@ -343,7 +343,7 @@ namespace CalamityMod.NPCs.OldDuke color42 = Color.Lerp(color42, color36, amount9); color42 = npc.GetAlpha(color42); color42 *= 1f - num157; - Vector2 vector45 = npc.Center + ((float)num164 / (float)num156 * 6.28318548f + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition; + Vector2 vector45 = npc.Center + ((float)num164 / (float)num156 * MathHelper.TwoPi + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition; vector45 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; vector45 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); spriteBatch.Draw(texture2D15, vector45, new Rectangle?(npc.frame), color42, npc.rotation, vector11, npc.scale, spriteEffects, 0f); diff --git a/Projectiles/Enemy/LavaChunk.png b/Projectiles/Enemy/LavaChunk.png deleted file mode 100644 index 0a9cef86c1..0000000000 Binary files a/Projectiles/Enemy/LavaChunk.png and /dev/null differ diff --git a/Projectiles/Enemy/LavaChunk.cs b/Projectiles/Environment/LavaChunk.cs similarity index 98% rename from Projectiles/Enemy/LavaChunk.cs rename to Projectiles/Environment/LavaChunk.cs index 5ef7d5b499..9bee03d02d 100644 --- a/Projectiles/Enemy/LavaChunk.cs +++ b/Projectiles/Environment/LavaChunk.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles.Environment { public class LavaChunk : ModProjectile { diff --git a/Projectiles/Environment/LavaChunk.png b/Projectiles/Environment/LavaChunk.png new file mode 100644 index 0000000000..d2fc3e570f Binary files /dev/null and b/Projectiles/Environment/LavaChunk.png differ diff --git a/Projectiles/Enemy/LightningMark.cs b/Projectiles/Environment/LightningMark.cs similarity index 98% rename from Projectiles/Enemy/LightningMark.cs rename to Projectiles/Environment/LightningMark.cs index eb65dd8bf6..c1e4a22a78 100644 --- a/Projectiles/Enemy/LightningMark.cs +++ b/Projectiles/Environment/LightningMark.cs @@ -3,7 +3,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles.Environment { public class LightningMark : ModProjectile { diff --git a/Projectiles/Enemy/LightningMark.png b/Projectiles/Environment/LightningMark.png similarity index 100% rename from Projectiles/Enemy/LightningMark.png rename to Projectiles/Environment/LightningMark.png diff --git a/Projectiles/Magic/ForbiddenSunProjectile.cs b/Projectiles/Magic/ForbiddenSunProjectile.cs index e11f7175b9..e038c35b7a 100644 --- a/Projectiles/Magic/ForbiddenSunProjectile.cs +++ b/Projectiles/Magic/ForbiddenSunProjectile.cs @@ -1,4 +1,5 @@ using Microsoft.Xna.Framework; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Sun"); + Main.projFrames[projectile.type] = 4; } public override void SetDefaults() @@ -24,6 +26,17 @@ namespace CalamityMod.Projectiles.Magic public override void AI() { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= Main.projFrames[projectile.type]) + { + projectile.frame = 0; + } Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.2f / 255f, (255 - projectile.alpha) * 0.01f / 255f); if (projectile.wet && !projectile.lavaWet) { @@ -34,12 +47,11 @@ namespace CalamityMod.Projectiles.Magic Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } - for (int num457 = 0; num457 < 5; num457++) + if (Main.rand.NextBool(4)) { - int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 55, 0f, 0f, 100, default, 1.2f); - Main.dust[num458].noGravity = true; - Main.dust[num458].velocity *= 0.5f; - Main.dust[num458].velocity += projectile.velocity * 0.1f; + int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 174, 0f, 0f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; } } diff --git a/Projectiles/Magic/ForbiddenSunProjectile.png b/Projectiles/Magic/ForbiddenSunProjectile.png index 314e8ea2b0..5a1fe37e31 100644 Binary files a/Projectiles/Magic/ForbiddenSunProjectile.png and b/Projectiles/Magic/ForbiddenSunProjectile.png differ diff --git a/Projectiles/Magic/IceCluster.cs b/Projectiles/Magic/IceCluster.cs index 09f0bec99e..d6b2d3d494 100644 --- a/Projectiles/Magic/IceCluster.cs +++ b/Projectiles/Magic/IceCluster.cs @@ -114,6 +114,8 @@ namespace CalamityMod.Projectiles.Magic { target.immune[projectile.owner] = 5; target.AddBuff(ModContent.BuffType(), 120); + if (target.type == NPCID.TargetDummy) + return; Vector2 vector80 = projectile.rotation.ToRotationVector2(); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Melee/ChaosFlameLarge.cs b/Projectiles/Melee/ChaosFlameLarge.cs index a2431d1d3e..f55fc1dce8 100644 --- a/Projectiles/Melee/ChaosFlameLarge.cs +++ b/Projectiles/Melee/ChaosFlameLarge.cs @@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Flame"); + Main.projFrames[projectile.type] = 4; } public override void SetDefaults() @@ -27,11 +28,21 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= Main.projFrames[projectile.type]) + { + projectile.frame = 0; + } + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f); if (Main.rand.NextBool(4)) { - int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f); + int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 174, 0f, 0f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } diff --git a/Projectiles/Melee/ChaosFlameLarge.png b/Projectiles/Melee/ChaosFlameLarge.png index aa8e22d717..d25d2d9e08 100644 Binary files a/Projectiles/Melee/ChaosFlameLarge.png and b/Projectiles/Melee/ChaosFlameLarge.png differ diff --git a/Projectiles/Melee/ChaosFlameMedium.cs b/Projectiles/Melee/ChaosFlameMedium.cs deleted file mode 100644 index 1683ffc231..0000000000 --- a/Projectiles/Melee/ChaosFlameMedium.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Microsoft.Xna.Framework; -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Melee -{ - public class ChaosFlameMedium : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Flame"); - } - - public override void SetDefaults() - { - projectile.width = 20; - projectile.height = 20; - projectile.aiStyle = 44; - projectile.friendly = true; - projectile.melee = true; - projectile.penetrate = 1; - projectile.timeLeft = 600; - aiType = ProjectileID.SporeCloud; - } - - public override void AI() - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f); - if (Main.rand.NextBool(4)) - { - int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } - } - - public override void Kill(int timeLeft) - { - for (int k = 0; k < 5; k++) - { - int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(BuffID.OnFire, 360); - } - - public override Color? GetAlpha(Color lightColor) - { - return new Color(255, Main.DiscoG, 53, projectile.alpha); - } - } -} diff --git a/Projectiles/Melee/ChaosFlameMedium.png b/Projectiles/Melee/ChaosFlameMedium.png deleted file mode 100644 index dfc1df55b9..0000000000 Binary files a/Projectiles/Melee/ChaosFlameMedium.png and /dev/null differ diff --git a/Projectiles/Melee/ChaosFlameSmall.cs b/Projectiles/Melee/ChaosFlameSmall.cs index 40b963c38e..6c641a7cb0 100644 --- a/Projectiles/Melee/ChaosFlameSmall.cs +++ b/Projectiles/Melee/ChaosFlameSmall.cs @@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Flame"); + Main.projFrames[projectile.type] = 4; } public override void SetDefaults() @@ -27,11 +28,21 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= Main.projFrames[projectile.type]) + { + projectile.frame = 0; + } + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f); if (Main.rand.NextBool(4)) { - int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f); + int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 174, 0f, 0f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } diff --git a/Projectiles/Melee/ChaosFlameSmall.png b/Projectiles/Melee/ChaosFlameSmall.png index e09617c256..5a1fe37e31 100644 Binary files a/Projectiles/Melee/ChaosFlameSmall.png and b/Projectiles/Melee/ChaosFlameSmall.png differ diff --git a/Projectiles/Melee/FlameScytheProjectileMelee.cs b/Projectiles/Melee/FlameScytheProjectileMelee.cs index 1158207580..55060e33dc 100644 --- a/Projectiles/Melee/FlameScytheProjectileMelee.cs +++ b/Projectiles/Melee/FlameScytheProjectileMelee.cs @@ -33,8 +33,14 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, 0.25f, 0.15f, 0f); if (Main.rand.NextBool(5)) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); } + Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) + projectile.velocity.X, projectile.position.Y + (float)(projectile.height / 2) + projectile.velocity.Y); + if (Main.rand.NextBool(8)) + { + int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.75f); + Main.gore[smoke].behindTiles = true; + } } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/FlameScytheProjectileMelee.png b/Projectiles/Melee/FlameScytheProjectileMelee.png index d6577c12b4..2fb615a053 100644 Binary files a/Projectiles/Melee/FlameScytheProjectileMelee.png and b/Projectiles/Melee/FlameScytheProjectileMelee.png differ diff --git a/Projectiles/Melee/RSSolarFlare.cs b/Projectiles/Melee/RSSolarFlare.cs index 5c039ee8fe..413ac4be5e 100644 --- a/Projectiles/Melee/RSSolarFlare.cs +++ b/Projectiles/Melee/RSSolarFlare.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Projectiles.Melee public override void SetDefaults() { - projectile.width = 40; - projectile.height = 40; + projectile.width = 46; + projectile.height = 46; projectile.friendly = true; projectile.tileCollide = false; projectile.penetrate = 1; diff --git a/Projectiles/Melee/RSSolarFlare.png b/Projectiles/Melee/RSSolarFlare.png index 2fde137f0d..4b3af8ca40 100644 Binary files a/Projectiles/Melee/RSSolarFlare.png and b/Projectiles/Melee/RSSolarFlare.png differ diff --git a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs index 834be99464..0c197c8277 100644 --- a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs +++ b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs @@ -36,7 +36,14 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void ExtraBehavior() { if (Main.rand.NextBool(5)) - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + + Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) + projectile.velocity.X, projectile.position.Y + (float)(projectile.height / 2) + projectile.velocity.Y); + if (Main.rand.NextBool(8)) + { + int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 1f); + Main.gore[smoke].behindTiles = true; + } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { diff --git a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png index 4b507aa8c6..967d74db26 100644 Binary files a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png and b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png differ diff --git a/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs b/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs index eab201f11b..8c38d1c234 100644 --- a/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs +++ b/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs @@ -35,7 +35,14 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void AI() { if (Main.rand.NextBool(5)) - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + + Vector2 goreVec = new Vector2(projectile.position.X, projectile.position.Y); + if (Main.rand.NextBool(8)) + { + int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.5f); + Main.gore[smoke].behindTiles = true; + } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) diff --git a/Projectiles/Melee/Yoyos/ChaotrixYoyo.png b/Projectiles/Melee/Yoyos/ChaotrixYoyo.png index d84bc782e5..a608e9f154 100644 Binary files a/Projectiles/Melee/Yoyos/ChaotrixYoyo.png and b/Projectiles/Melee/Yoyos/ChaotrixYoyo.png differ diff --git a/Projectiles/Rogue/FlameScytheProjectile.cs b/Projectiles/Rogue/FlameScytheProjectile.cs index 5fe95b69bf..64d64fed4f 100644 --- a/Projectiles/Rogue/FlameScytheProjectile.cs +++ b/Projectiles/Rogue/FlameScytheProjectile.cs @@ -33,8 +33,14 @@ namespace CalamityMod.Projectiles.Rogue Lighting.AddLight(projectile.Center, 0.25f, 0.15f, 0f); if (Main.rand.NextBool(5)) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); } + Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) + projectile.velocity.X, projectile.position.Y + (float)(projectile.height / 2) + projectile.velocity.Y); + if (Main.rand.NextBool(8)) + { + int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.75f); + Main.gore[smoke].behindTiles = true; + } } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/FlameScytheProjectile.png b/Projectiles/Rogue/FlameScytheProjectile.png index d6577c12b4..2fb615a053 100644 Binary files a/Projectiles/Rogue/FlameScytheProjectile.png and b/Projectiles/Rogue/FlameScytheProjectile.png differ diff --git a/Projectiles/Rogue/ScourgeoftheDesertProj.cs b/Projectiles/Rogue/ScourgeoftheDesertProj.cs index 4751fbcba8..ab85cbb7e8 100644 --- a/Projectiles/Rogue/ScourgeoftheDesertProj.cs +++ b/Projectiles/Rogue/ScourgeoftheDesertProj.cs @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Rogue Dust.NewDust(projectile.position, projectile.width, projectile.height, 32); } projectile.velocity.X *= 1.025f; - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + MathHelper.PiOver4; if (projectile.spriteDirection == -1) { projectile.rotation -= 1.57f; diff --git a/Projectiles/Rogue/ScourgeoftheDesertProj.png b/Projectiles/Rogue/ScourgeoftheDesertProj.png index 4bfd79d57b..bf471717cd 100644 Binary files a/Projectiles/Rogue/ScourgeoftheDesertProj.png and b/Projectiles/Rogue/ScourgeoftheDesertProj.png differ diff --git a/Projectiles/Summon/BrittleStarMinion.png b/Projectiles/Summon/BrittleStarMinion.png index c89624f1c8..b65fe96613 100644 Binary files a/Projectiles/Summon/BrittleStarMinion.png and b/Projectiles/Summon/BrittleStarMinion.png differ diff --git a/Projectiles/Summon/ChaosSpirit.cs b/Projectiles/Summon/ChaosSpirit.cs index 3668dbfcd5..5bb40663fb 100644 --- a/Projectiles/Summon/ChaosSpirit.cs +++ b/Projectiles/Summon/ChaosSpirit.cs @@ -13,16 +13,16 @@ namespace CalamityMod.Projectiles.Summon public override void SetStaticDefaults() { - DisplayName.SetDefault("Chaos Spirit"); - Main.projFrames[projectile.type] = 9; + DisplayName.SetDefault("Hydrothermic Vent"); + Main.projFrames[projectile.type] = 6; ProjectileID.Sets.MinionSacrificable[projectile.type] = true; ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; } public override void SetDefaults() { - projectile.width = 40; - projectile.height = 40; + projectile.width = 26; + projectile.height = 34; projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; @@ -58,21 +58,21 @@ namespace CalamityMod.Projectiles.Summon dust--; if (dust >= 0) { - projectile.Calamity().spawnedPlayerMinionDamageValue = (player.allDamage + player.minionDamage - 1f); + projectile.Calamity().spawnedPlayerMinionDamageValue = player.MinionDamage(); projectile.Calamity().spawnedPlayerMinionProjectileDamageValue = projectile.damage; int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { - int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 127, 0f, 0f, 0, default, 1f); + int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, Main.rand.NextBool(3) ? 16 : 127, 0f, 0f, 0, default, 1f); Main.dust[num503].velocity *= 2f; Main.dust[num503].scale *= 1.15f; } } - if ((player.allDamage + player.minionDamage - 1f) != projectile.Calamity().spawnedPlayerMinionDamageValue) + if (player.MinionDamage() != projectile.Calamity().spawnedPlayerMinionDamageValue) { int damage2 = (int)((float)projectile.Calamity().spawnedPlayerMinionProjectileDamageValue / projectile.Calamity().spawnedPlayerMinionDamageValue * - (player.allDamage + player.minionDamage - 1f)); + player.MinionDamage()); projectile.damage = damage2; } Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 1f / 255f, (255 - projectile.alpha) * 0.35f / 255f, (255 - projectile.alpha) * 0f / 255f); @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Summon projectile.frame++; projectile.frameCounter = 0; } - if (projectile.frame > 8) + if (projectile.frame >= Main.projFrames[projectile.type]) { projectile.frame = 0; } @@ -128,7 +128,7 @@ namespace CalamityMod.Projectiles.Summon } else { - for (int num512 = 0; num512 < 200; num512++) + for (int num512 = 0; num512 < Main.maxNPCs; num512++) { if (Main.npc[num512].CanBeChasedBy(projectile, false)) { @@ -145,6 +145,7 @@ namespace CalamityMod.Projectiles.Summon } } } + float yAdjust = player.gravDir == -1f ? 0f : 10f; if (flag18) { float num516 = num506; @@ -160,9 +161,18 @@ namespace CalamityMod.Projectiles.Summon num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, projectile.damage, 5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y - yAdjust, num404, num405, projectileType, projectile.damage, 5f, projectile.owner, 0f, 0f); projectile.ai[0] = 38f; } + + //doesn't look good + /*Vector2 goreVec = new Vector2(projectile.Center.X, projectile.Center.Y - yAdjust - 10f); + Vector2 goreVec = new Vector2(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y); + if (Main.rand.NextBool(8)) + { + int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.5f); + Main.gore[smoke].behindTiles = true; + }*/ } } diff --git a/Projectiles/Summon/ChaosSpirit.png b/Projectiles/Summon/ChaosSpirit.png index d074fce66d..f1cfc65f4d 100644 Binary files a/Projectiles/Summon/ChaosSpirit.png and b/Projectiles/Summon/ChaosSpirit.png differ diff --git a/Projectiles/Typeless/ChaoticSpreadBobber.cs b/Projectiles/Typeless/ChaoticSpreadBobber.cs index a2e2795282..a84b12c3a0 100644 --- a/Projectiles/Typeless/ChaoticSpreadBobber.cs +++ b/Projectiles/Typeless/ChaoticSpreadBobber.cs @@ -26,8 +26,11 @@ namespace CalamityMod.Projectiles.Typeless public override bool PreDrawExtras(SpriteBatch spriteBatch) { - Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f); - CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType(), new Color(138, 50, 73, 100), 65, 30f); + if (projectile.Calamity().lineColor == 1) + Lighting.AddLight(projectile.Center, 0.5f, 0.25f, 0f); + else + Lighting.AddLight(projectile.Center, 0f, 0.45f, 0.46f); + CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType(), projectile.Calamity().lineColor == 1 ? new Color(255, 165, 0, 100) : new Color(0, 206, 209, 100), 65, 30f); return false; } } diff --git a/Projectiles/Typeless/ChaoticSpreadBobber.png b/Projectiles/Typeless/ChaoticSpreadBobber.png index 030ec6d5c6..9a028573bc 100644 Binary files a/Projectiles/Typeless/ChaoticSpreadBobber.png and b/Projectiles/Typeless/ChaoticSpreadBobber.png differ diff --git a/Projectiles/Typeless/HydrothermalSmoke.cs b/Projectiles/Typeless/HydrothermalSmoke.cs new file mode 100644 index 0000000000..c74a89c390 --- /dev/null +++ b/Projectiles/Typeless/HydrothermalSmoke.cs @@ -0,0 +1,63 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Typeless +{ + public class HydrothermalSmoke : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Smoke"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 42; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.penetrate = -1; + projectile.timeLeft = 6; + } + + public override void AI() + { + if (projectile.timeLeft == 6) + projectile.Center = Main.player[projectile.owner].Center; + + int randomDust = Main.rand.Next(4); + if (randomDust == 3) + { + randomDust = 16; + } + else + { + randomDust = 127; + } + if (Main.rand.NextBool(4)) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, randomDust, 0f, 0f, 100, default, 1f); + if (Main.rand.NextBool(4)) + { + Main.dust[num469].scale *= 0.35f; + } + Main.dust[num469].velocity *= 0f; + } + + Vector2 goreVec = new Vector2(projectile.position.X, projectile.position.Y); + if (Main.rand.NextBool(8)) + { + int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.75f); + Main.gore[smoke].behindTiles = true; + } + } + + public override bool CanDamage() + { + return false; + } + } +} diff --git a/Projectiles/Typeless/HydrothermalSmoke.png b/Projectiles/Typeless/HydrothermalSmoke.png new file mode 100644 index 0000000000..d72b7b5eac Binary files /dev/null and b/Projectiles/Typeless/HydrothermalSmoke.png differ diff --git a/Tiles/ChaoticBarPlaced.cs b/Tiles/ChaoticBarPlaced.cs new file mode 100644 index 0000000000..a2a9224475 --- /dev/null +++ b/Tiles/ChaoticBarPlaced.cs @@ -0,0 +1,54 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using CalamityMod.Items.Materials; + +namespace CalamityMod.Tiles +{ + public class ChaoticBarPlaced : ModTile + { + public override void SetDefaults() + { + Main.tileShine[Type] = 1000; + Main.tileSolid[Type] = true; + Main.tileSolidTop[Type] = true; + Main.tileFrameImportant[Type] = true; + + TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1); + TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; + TileObjectData.addTile(Type); + + dustType = 87; + drop = ModContent.ItemType(); + + AddMapEntry(new Color(255, 165, 0)); //Orange + } + + public override bool CreateDust(int i, int j, ref int type) + { + if (Main.rand.NextBool(2)) + { + type = 87; + } + else + { + type = 6; + } + return true; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + WorldGen.Check1x1(i, j, Type); + return true; + } + + public override void PlaceInWorld(int i, int j, Item item) + { + Main.tile[i, j].frameX = 0; + Main.tile[i, j].frameY = 0; + } + } +} diff --git a/Tiles/ChaoticBarPlaced.png b/Tiles/ChaoticBarPlaced.png new file mode 100644 index 0000000000..0801e2db7a Binary files /dev/null and b/Tiles/ChaoticBarPlaced.png differ diff --git a/Tiles/Ores/ChaoticOre.cs b/Tiles/Ores/ChaoticOre.cs index 2c1ba1a44b..b98a848824 100644 --- a/Tiles/Ores/ChaoticOre.cs +++ b/Tiles/Ores/ChaoticOre.cs @@ -1,7 +1,7 @@ - -using CalamityMod.Projectiles.Enemy; +using CalamityMod.Projectiles.Environment; using CalamityMod.Tiles.Abyss; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.Ores dustType = 105; drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); - name.SetDefault("Chaotic Ore"); + name.SetDefault("Scoria Ore"); AddMapEntry(new Color(255, 0, 0), name); mineResist = 4f; minPick = 210; @@ -81,5 +81,38 @@ namespace CalamityMod.Tiles.Ores TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xPos = Main.tile[i, j].frameX; + int yPos = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Ores/ChaoticOreGlow"); + Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; + Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50)); + Tile trackTile = Main.tile[i, j]; + double num6 = Main.time * 0.08; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + { + Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + else if (trackTile.halfBrick()) + { + Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } + + private Color GetDrawColour(int i, int j, Color colour) + { + int colType = Main.tile[i, j].color(); + Color paintCol = WorldGen.paintColor(colType); + if (colType >= 13 && colType <= 24) + { + colour.R = (byte)(paintCol.R / 255f * colour.R); + colour.G = (byte)(paintCol.G / 255f * colour.G); + colour.B = (byte)(paintCol.B / 255f * colour.B); + } + return colour; + } } } diff --git a/Tiles/Ores/ChaoticOre.png b/Tiles/Ores/ChaoticOre.png index 9b3521d430..6a5505596b 100644 Binary files a/Tiles/Ores/ChaoticOre.png and b/Tiles/Ores/ChaoticOre.png differ diff --git a/Tiles/Ores/ChaoticOreGlow.png b/Tiles/Ores/ChaoticOreGlow.png new file mode 100644 index 0000000000..3d88cd3b4a Binary files /dev/null and b/Tiles/Ores/ChaoticOreGlow.png differ