diff --git a/Items/Armor/Aerospec/AerospecHat.cs b/Items/Armor/Aerospec/AerospecHat.cs index 8f32429176..1c6b73bce9 100644 --- a/Items/Armor/Aerospec/AerospecHat.cs +++ b/Items/Armor/Aerospec/AerospecHat.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateEquip(Player player) { - player.GetDamage() += 0.08f; + player.GetDamage() += 0.1f; player.statManaMax2 += 30; } diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 592e891335..f76e0aae59 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -812,6 +812,10 @@ namespace CalamityMod.Items line.Text = newTooltip; }); } + + // Meteor + if (item.type == ItemID.MeteorHelmet || item.type == ItemID.MeteorSuit || item.type == ItemID.MeteorLeggings) + EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("9%", "8%")); #endregion // Hardmode ore armor tooltip edits diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 26fb0bbdb4..b11b67c31d 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items { ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) }, { ItemID.BatScepter, Do(DamageExact(56)) }, { ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) }, - { ItemID.BeeGun, Do(DamageExact(11)) }, + { ItemID.BeeGun, Do(DamageExact(10), ManaExact(4)) }, { ItemID.BeesKnees, Do(PointBlank, DamageExact(18), UseExact(38)) }, { ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120), ScaleRatio(1.75f)) }, { ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) }, @@ -127,6 +127,7 @@ namespace CalamityMod.Items { ItemID.HellwingBow, Do(PointBlank, DamageExact(16)) }, { ItemID.HighVelocityBullet, Do(DamageExact(15)) }, { ItemID.HiveFive, Do(AutoReuse, DamageExact(26)) }, + { ItemID.HornetStaff, Do(AutoReuse, DamageExact(13), UseExact(30)) }, { ItemID.IceBlade, Do(UseMeleeSpeed) }, { ItemID.IceBoomerang, Do(UseExact(25), ShootSpeedExact(9)) }, { ItemID.IceRod, Do(UseExact(6), DamageExact(30), ShootSpeedExact(20)) }, @@ -482,7 +483,6 @@ namespace CalamityMod.Items { ItemID.DeadlySphereStaff, Do(AutoReuse, UseExact(20)) }, { ItemID.FireWhip, autoReuse }, // Firecracker { ItemID.FlinxStaff, Do(AutoReuse, UseExact(35)) }, - { ItemID.HornetStaff, Do(AutoReuse, UseExact(30)) }, { ItemID.MaceWhip, autoReuse }, // Morning Star { ItemID.MoonlordTurretStaff, Do(UseExact(15)) }, // Lunar Portal Staff { ItemID.OpticStaff, Do(AutoReuse, UseExact(25)) }, diff --git a/Items/VanillaArmorChanges/MeteorArmorSetChange.cs b/Items/VanillaArmorChanges/MeteorArmorSetChange.cs index 2bc9b5f104..6aeb0b42be 100644 --- a/Items/VanillaArmorChanges/MeteorArmorSetChange.cs +++ b/Items/VanillaArmorChanges/MeteorArmorSetChange.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Items.VanillaArmorChanges { @@ -13,12 +14,20 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Meteor"; - // Meteor Armor only makes space gun cost 50% instead of zero mana. public override void UpdateSetBonusText(ref string setBonusText) { setBonusText = $"{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; } + // Reducing every piece's damage boost from 9% to 8% + private void ApplyAnyPieceEffect(Player player) => player.GetDamage() -= 0.01f; + + public override void ApplyHeadPieceEffect(Player player) => ApplyAnyPieceEffect(player); + + public override void ApplyBodyPieceEffect(Player player) => ApplyAnyPieceEffect(player); + + public override void ApplyLegPieceEffect(Player player) => ApplyAnyPieceEffect(player); + public override void ApplyArmorSetBonus(Player player) { player.Calamity().meteorSet = true; diff --git a/Items/Weapons/Rogue/HardenedHoneycomb.cs b/Items/Weapons/Rogue/HardenedHoneycomb.cs index 880ddb9c31..9a31a2d014 100644 --- a/Items/Weapons/Rogue/HardenedHoneycomb.cs +++ b/Items/Weapons/Rogue/HardenedHoneycomb.cs @@ -18,11 +18,11 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 30; Item.height = 32; - Item.damage = 20; + Item.damage = 19; Item.noMelee = true; Item.consumable = true; Item.noUseGraphic = true; - Item.useAnimation = Item.useTime = 16; + Item.useAnimation = Item.useTime = 18; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 3f; Item.UseSound = SoundID.Item1; @@ -35,16 +35,15 @@ namespace CalamityMod.Items.Weapons.Rogue Item.DamageType = RogueDamageClass.Instance; } + public override float StealthDamageMultiplier => 0.9f; + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); if (stealth.WithinBounds(Main.maxProjectiles)) - { Main.projectile[stealth].Calamity().stealthStrike = true; - Main.projectile[stealth].penetrate = 3; - } return false; } return true; diff --git a/Items/Weapons/Rogue/TitaniumShuriken.cs b/Items/Weapons/Rogue/TitaniumShuriken.cs index 549fc49d81..23a60e25b5 100644 --- a/Items/Weapons/Rogue/TitaniumShuriken.cs +++ b/Items/Weapons/Rogue/TitaniumShuriken.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 34; Item.height = 34; - Item.damage = 56; + Item.damage = 41; Item.noMelee = true; Item.consumable = true; Item.noUseGraphic = true; @@ -34,6 +34,9 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 16f; Item.DamageType = RogueDamageClass.Instance; } + public override float StealthDamageMultiplier => 1.3f; + public override float StealthVelocityMultiplier => 1.25f; + // Terraria seems to really dislike high crit values in SetDefaults public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 10; diff --git a/Items/Weapons/Summon/RustyBeaconPrototype.cs b/Items/Weapons/Summon/RustyBeaconPrototype.cs index f5cb8fe039..11703fe871 100644 --- a/Items/Weapons/Summon/RustyBeaconPrototype.cs +++ b/Items/Weapons/Summon/RustyBeaconPrototype.cs @@ -17,8 +17,6 @@ namespace CalamityMod.Items.Weapons.Summon public const int IrradiatedDebuffTime = 120; - public const int PoisonedDebuffTime = 240; - public override void SetDefaults() { Item.width = 28; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 4736c5ce86..4e0d24f0fa 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -390,7 +390,7 @@ CorrosiveSpine: { Tooltip: ''' 5% increased movement speed - All rogue weapons inflict poison and spawn irradiated clouds on enemy hits + All rogue weapons inflict poison and spawn poisoned clouds on enemy hits You release a ton of clouds everywhere on hit ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson index 857678bf90..3ae93b401a 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson @@ -10,7 +10,7 @@ AerospecBreastplate: { AerospecHat: { DisplayName: Aerospec Hat - Tooltip: 8% increased magic damage and +30 max mana + Tooltip: 10% increased magic damage and +30 max mana SetBonus: 5% increased movement speed and magic critical strike chance } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 3770bf84b1..c693c18cbc 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -542,8 +542,7 @@ HardenedHoneycomb: { Tooltip: ''' Fires a honeycomb that shatters into fragments - Grants the honey buff to players it touches - Stealth strikes can bounce off walls and enemies + Stealth strikes grant the honey buff on hit and spawn bees ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 46b8ff3740..43c9405417 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -561,7 +561,7 @@ RustyBeaconPrototype: { Tooltip: ''' Summons a long-abandoned drone to support you - The drone hovers in place and releases toxic waves that inflict irradiated and poisoned + The drone hovers in place and releases toxic waves that irradiate hit enemies ''' } diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 6a7d4a7caa..cafbb9a7d8 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -35,8 +35,12 @@ namespace CalamityMod.NPCs.AstrumAureus public class AstrumAureus : ModNPC { public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/NPCHit/AureusHit", 4); + public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AureusDeath"); + public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusShoot"); + public static readonly SoundStyle FlameCrystalSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusShootCrystal"); public static readonly SoundStyle StompSound = new("CalamityMod/Sounds/Custom/AstrumAureus/LegStomp"); public static readonly SoundStyle JumpSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusJump"); + public static readonly SoundStyle TeleportSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusTeleport"); private bool stomping = false; public int slimeProjCounter = 0; @@ -75,7 +79,7 @@ namespace CalamityMod.NPCs.AstrumAureus NPC.knockBackResist = 0f; NPC.value = Item.buyPrice(0, 60, 0, 0); NPC.boss = true; - NPC.DeathSound = SoundID.NPCDeath14; + NPC.DeathSound = DeathSound; double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index ba1e2f361f..accccdf2fd 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.noGravity = true; NPC.noTileCollide = true; NPC.canGhostHeal = false; - NPC.HitSound = SoundID.NPCHit4; + NPC.HitSound = AstrumDeusHead.HitSound; NPC.DeathSound = AstrumDeusHead.DeathSound; NPC.netAlways = true; NPC.boss = true; diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 4e0f3ff8a2..32cfaeb0ce 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -34,10 +34,12 @@ namespace CalamityMod.NPCs.AstrumDeus [AutoloadBossHead] public class AstrumDeusHead : ModNPC { - public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn"); - public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumDeusLaser"); - public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AstrumDeusMine"); - public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit"); + public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusSpawn"); + public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusLaser"); + public static readonly SoundStyle GodRaySound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusGodRay"); + public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusMine"); + public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusSplit"); + public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/NPCHit/AstrumDeusHit", 2) { Volume = 1.25f }; public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AstrumDeusDeath"); public override void SetStaticDefaults() @@ -87,7 +89,7 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.HitSound = SoundID.NPCHit4; + NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index eae753ab00..856dcea12d 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.noGravity = true; NPC.noTileCollide = true; NPC.canGhostHeal = false; - NPC.HitSound = SoundID.NPCHit4; + NPC.HitSound = AstrumDeusHead.HitSound; NPC.DeathSound = AstrumDeusHead.DeathSound; NPC.netAlways = true; NPC.boss = true; diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 0bada01b73..8c4eac6828 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -2727,7 +2727,7 @@ namespace CalamityMod.NPCs astrumAureus.slimeProjCounter++; if (astrumAureus.slimeProjCounter % 180 == 0) { - SoundEngine.PlaySound(SoundID.Item33, npc.Center); + SoundEngine.PlaySound(SoundID.Item33, npc.Center); // Intentionally keeping the old laser sound in GFB if (astrumAureus.slimePhase == 1) { @@ -2797,7 +2797,7 @@ namespace CalamityMod.NPCs if (npc.ai[0] >= 5f && npc.ai[0] != 7) { npc.localAI[0] = 0f; - SoundEngine.PlaySound(SoundID.Item109, npc.Center); + SoundEngine.PlaySound(AstrumAureus.AstrumAureus.FlameCrystalSound, npc.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -2821,7 +2821,7 @@ namespace CalamityMod.NPCs { npc.localAI[0] = 0f; - SoundEngine.PlaySound(SoundID.Item33, npc.Center); + SoundEngine.PlaySound(AstrumAureus.AstrumAureus.LaserSound, npc.Center); if (calamityGlobalNPC.newAI[2] == 0f) { @@ -3161,7 +3161,7 @@ namespace CalamityMod.NPCs } // Fire lasers or flames on stomp - SoundEngine.PlaySound(SoundID.Item33, npc.Center); + SoundEngine.PlaySound(AstrumAureus.AstrumAureus.LaserSound, npc.Center); if (Main.zenithWorld) { @@ -3405,7 +3405,7 @@ namespace CalamityMod.NPCs if (npc.soundDelay == 0) { npc.soundDelay = 15; - SoundEngine.PlaySound(SoundID.Item109, npc.Center); + SoundEngine.PlaySound(AstrumAureus.AstrumAureus.TeleportSound, npc.Center); } // Emit dust to make the teleport pretty @@ -4253,8 +4253,6 @@ namespace CalamityMod.NPCs if (Vector2.Distance(player.Center, npc.Center) > 80f) { - SoundEngine.PlaySound(AstrumDeusHead.LaserSound, npc.Center); - if (Main.netMode != NetmodeID.MultiplayerClient) { float deusLaserSpeed = (death ? 16f : revenge ? 14f : 13f) + enrageScale * 4f; @@ -4273,6 +4271,7 @@ namespace CalamityMod.NPCs int damage = npc.GetProjectileDamage(type); if (shootGodRays) { + SoundEngine.PlaySound(AstrumDeusHead.GodRaySound, npc.Center); // Waving beams need to start offset so they cross each other neatly. float waveSideOffset = Main.rand.NextFloat(9f, 14f); Vector2 perp = shootDirection.RotatedBy(-MathHelper.PiOver2) * waveSideOffset; @@ -4287,7 +4286,10 @@ namespace CalamityMod.NPCs } } else + { + SoundEngine.PlaySound(AstrumDeusHead.LaserSound, npc.Center); Projectile.NewProjectile(npc.GetSource_FromAI(), deusLaserCenter, laserVelocity, type, damage, 0f, Main.myPlayer, player.Center.X, player.Center.Y); + } } } } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 51113c5080..684aa9ad9f 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -763,7 +763,7 @@ namespace CalamityMod.NPCs if (VulnerableToHeat.Value) heatDamageMult *= slimed ? ((wormBoss || slimeGod) ? 1.25 : 1.5) : ((wormBoss || slimeGod) ? VulnerableToDoTDamageMult_Worms_SlimeGod : VulnerableToDoTDamageMult); else - heatDamageMult *= slimed ? 0.2 : 0.5; + heatDamageMult *= slimed ? ((wormBoss || slimeGod) ? 0.66 : 0.5) : 0.5; } double coldDamageMult = BaseDoTDamageMult; @@ -781,7 +781,7 @@ namespace CalamityMod.NPCs if (VulnerableToSickness.Value) sicknessDamageMult *= irradiated > 0 ? (wormBoss ? 1.25 : 1.5) : (wormBoss ? VulnerableToDoTDamageMult_Worms_SlimeGod : VulnerableToDoTDamageMult); else - sicknessDamageMult *= irradiated > 0 ? 0.2 : 0.5; + sicknessDamageMult *= irradiated > 0 ? (wormBoss ? 0.66 : 0.5) : 0.5; } bool increasedElectricityDamage = npc.wet || npc.honeyWet || npc.lavaWet || npc.dripping; @@ -791,7 +791,7 @@ namespace CalamityMod.NPCs if (VulnerableToElectricity.Value) electricityDamageMult *= increasedElectricityDamage ? (wormBoss ? 1.25 : 1.5) : (wormBoss ? VulnerableToDoTDamageMult_Worms_SlimeGod : VulnerableToDoTDamageMult); else - electricityDamageMult *= increasedElectricityDamage ? 0.2 : 0.5; + electricityDamageMult *= increasedElectricityDamage ? (wormBoss ? 0.66 : 0.5) : 0.5; } double waterDamageMult = BaseDoTDamageMult; @@ -1027,7 +1027,7 @@ namespace CalamityMod.NPCs // Poisoned if (npc.poisoned) { - int basePoisonedDoTValue = (int)(4 * vanillaSicknessDamageMult); + int basePoisonedDoTValue = (int)(12 * vanillaSicknessDamageMult); npc.lifeRegen -= basePoisonedDoTValue; if (damage < basePoisonedDoTValue / 4) damage = basePoisonedDoTValue / 4; diff --git a/Projectiles/Boss/DeusMine.cs b/Projectiles/Boss/DeusMine.cs index fab0dbc5ea..08eee62b19 100644 --- a/Projectiles/Boss/DeusMine.cs +++ b/Projectiles/Boss/DeusMine.cs @@ -13,6 +13,8 @@ namespace CalamityMod.Projectiles.Boss { public class DeusMine : ModProjectile, ILocalizedModType { + public static readonly SoundStyle ExplodeSound = new("CalamityMod/Sounds/Custom/AstrumDeus/DeusMineExplode"); + public new string LocalizationCategory => "Projectiles.Boss"; private const int MaxTimeLeft = 600; private const int FadeTime = 85; @@ -96,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss // Explode and split into accelerating lasers if (Projectile.ai[0] == 1f) { - SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); + SoundEngine.PlaySound(ExplodeSound, Projectile.Center); Projectile.position = Projectile.Center; Projectile.width = Projectile.height = 96; Projectile.position.X = Projectile.position.X - (Projectile.width / 2); diff --git a/Projectiles/Rogue/Corrocloud1.cs b/Projectiles/Rogue/Corrocloud1.cs index 7a9ef4c2cf..09dc1fca86 100644 --- a/Projectiles/Rogue/Corrocloud1.cs +++ b/Projectiles/Rogue/Corrocloud1.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue @@ -39,12 +40,12 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff (BuffID.Poisoned, 120); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Poisoned, 120); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Rogue/Corrocloud2.cs b/Projectiles/Rogue/Corrocloud2.cs index fde0006e69..c13fbf5a69 100644 --- a/Projectiles/Rogue/Corrocloud2.cs +++ b/Projectiles/Rogue/Corrocloud2.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue @@ -39,12 +40,12 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Poisoned, 120); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Poisoned, 120); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Rogue/Corrocloud3.cs b/Projectiles/Rogue/Corrocloud3.cs index e3000a8913..f815c5e170 100644 --- a/Projectiles/Rogue/Corrocloud3.cs +++ b/Projectiles/Rogue/Corrocloud3.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue @@ -39,12 +40,12 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Poisoned, 120); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Poisoned, 120); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Rogue/Honeycomb.cs b/Projectiles/Rogue/Honeycomb.cs index 105989553d..0a767cc9f1 100644 --- a/Projectiles/Rogue/Honeycomb.cs +++ b/Projectiles/Rogue/Honeycomb.cs @@ -27,73 +27,42 @@ namespace CalamityMod.Projectiles.Rogue Projectile.DamageType = RogueDamageClass.Instance; } - public override void AI() - { - Player player = Main.player[Main.myPlayer]; - Vector2 posDiff = player.Center - Projectile.Center; - if (posDiff.Length() <= radius) - { - player.AddBuff(BuffID.Honey, 300); - } - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - SpawnFragments(); - Projectile.penetrate--; - if (Projectile.penetrate <= 0) - { - Projectile.Kill(); - } - else - { - if (Projectile.velocity.X != oldVelocity.X) - { - Projectile.velocity.X = -oldVelocity.X; - } - if (Projectile.velocity.Y != oldVelocity.Y) - { - Projectile.velocity.Y = -oldVelocity.Y; - } - } - return false; - } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - SpawnFragments(); - Projectile.velocity.X = -Projectile.velocity.X; - Projectile.velocity.Y = -Projectile.velocity.Y; + Player player = Main.player[Main.myPlayer]; + if (Projectile.Calamity().stealthStrike) + player.AddBuff(BuffID.Honey, 300); + SpawnProjectiles(); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - SpawnFragments(); - Projectile.velocity.X = -Projectile.velocity.X; - Projectile.velocity.Y = -Projectile.velocity.Y; + Player player = Main.player[Main.myPlayer]; + if (Projectile.Calamity().stealthStrike) + player.AddBuff(BuffID.Honey, 300); + SpawnProjectiles(); } - public void SpawnFragments() + public void SpawnProjectiles() { - int split = 0; - while (split < 2) + Player player = Main.player[Main.myPlayer]; + int fragAmt = 2; + for (int i = 0; i < fragAmt; i++) { //Calculate the velocity of the projectile - float shardspeedX = -Projectile.velocity.X * Main.rand.NextFloat(.5f, .7f) + Main.rand.NextFloat(-3f, 3f); - float shardspeedY = -Projectile.velocity.Y * Main.rand.Next(50, 70) * 0.01f + Main.rand.Next(-8, 9) * 0.2f; - //Prevents the projectile speed from being too low - if (shardspeedX < 2f && shardspeedX > -2f) - { - shardspeedX += -Projectile.velocity.X; - } - if (shardspeedY > 2f && shardspeedY < 2f) - { - shardspeedY += -Projectile.velocity.Y; - } + Vector2 shardVelocity = CalamityUtils.RandomVelocity(100f, 35f, 55f); //Spawn the projectile - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.position.X + shardspeedX, Projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, Main.rand.Next(3), 0f); - split += 1; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, shardVelocity, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, Main.rand.Next(3), 0f); + } + if (Projectile.Calamity().stealthStrike) + { + int beeAmt = 4; + for (int j = 0; j < beeAmt; j++) + { + Vector2 beeVelocity = CalamityUtils.RandomVelocity(100f, 35f, 55f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, beeVelocity, player.beeType(), player.beeDamage(Projectile.damage), player.beeKB(0.25f), player.whoAmI); + } } } diff --git a/Projectiles/Rogue/TitaniumShurikenProjectile.cs b/Projectiles/Rogue/TitaniumShurikenProjectile.cs index b9f83f6878..7532a63a95 100644 --- a/Projectiles/Rogue/TitaniumShurikenProjectile.cs +++ b/Projectiles/Rogue/TitaniumShurikenProjectile.cs @@ -26,13 +26,13 @@ namespace CalamityMod.Projectiles.Rogue Projectile.width = 34; Projectile.height = 34; Projectile.friendly = true; - Projectile.penetrate = -1; + Projectile.penetrate = 3; Projectile.aiStyle = ProjAIStyleID.ThrownProjectile; Projectile.timeLeft = 600; AIType = ProjectileID.ThrowingKnife; Projectile.DamageType = RogueDamageClass.Instance; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 20; + Projectile.localNPCHitCooldown = 30; } public override void AI() diff --git a/Projectiles/Summon/BetterHornetStinger.cs b/Projectiles/Summon/BetterHornetStinger.cs index 5bfcc24c13..084d4926a3 100644 --- a/Projectiles/Summon/BetterHornetStinger.cs +++ b/Projectiles/Summon/BetterHornetStinger.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(BuffID.PotionSickness, 180); + target.AddBuff(BuffID.Poisoned, 180); if (!Main.dedServ) { diff --git a/Projectiles/Summon/RustyBeaconPulse.cs b/Projectiles/Summon/RustyBeaconPulse.cs index 02e65ed8f8..3e176dcf1b 100644 --- a/Projectiles/Summon/RustyBeaconPulse.cs +++ b/Projectiles/Summon/RustyBeaconPulse.cs @@ -71,7 +71,6 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), RustyBeaconPrototype.IrradiatedDebuffTime); - target.AddBuff(BuffID.Poisoned, RustyBeaconPrototype.PoisonedDebuffTime); } public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) diff --git a/Sounds/Custom/AstrumAureus/AureusShoot.ogg b/Sounds/Custom/AstrumAureus/AureusShoot.ogg new file mode 100644 index 0000000000..aacaaa6b9c Binary files /dev/null and b/Sounds/Custom/AstrumAureus/AureusShoot.ogg differ diff --git a/Sounds/Custom/AstrumAureus/AureusShootCrystal.ogg b/Sounds/Custom/AstrumAureus/AureusShootCrystal.ogg new file mode 100644 index 0000000000..ad8f3f496c Binary files /dev/null and b/Sounds/Custom/AstrumAureus/AureusShootCrystal.ogg differ diff --git a/Sounds/Custom/AstrumAureus/AureusTeleport.ogg b/Sounds/Custom/AstrumAureus/AureusTeleport.ogg new file mode 100644 index 0000000000..dc79fc3142 Binary files /dev/null and b/Sounds/Custom/AstrumAureus/AureusTeleport.ogg differ diff --git a/Sounds/Custom/AstrumAureus/LegStomp.ogg b/Sounds/Custom/AstrumAureus/LegStomp.ogg index 63bbe5c2b6..0bf8fdd94a 100644 Binary files a/Sounds/Custom/AstrumAureus/LegStomp.ogg and b/Sounds/Custom/AstrumAureus/LegStomp.ogg differ diff --git a/Sounds/Custom/AstrumDeus/AstrumDeusGodRay.ogg b/Sounds/Custom/AstrumDeus/AstrumDeusGodRay.ogg new file mode 100644 index 0000000000..4da256b2a0 Binary files /dev/null and b/Sounds/Custom/AstrumDeus/AstrumDeusGodRay.ogg differ diff --git a/Sounds/Custom/AstrumDeusLaser.ogg b/Sounds/Custom/AstrumDeus/AstrumDeusLaser.ogg similarity index 100% rename from Sounds/Custom/AstrumDeusLaser.ogg rename to Sounds/Custom/AstrumDeus/AstrumDeusLaser.ogg diff --git a/Sounds/Custom/AstrumDeusMine.ogg b/Sounds/Custom/AstrumDeus/AstrumDeusMine.ogg similarity index 100% rename from Sounds/Custom/AstrumDeusMine.ogg rename to Sounds/Custom/AstrumDeus/AstrumDeusMine.ogg diff --git a/Sounds/Custom/AstrumDeusSpawn.ogg b/Sounds/Custom/AstrumDeus/AstrumDeusSpawn.ogg similarity index 100% rename from Sounds/Custom/AstrumDeusSpawn.ogg rename to Sounds/Custom/AstrumDeus/AstrumDeusSpawn.ogg diff --git a/Sounds/Custom/AstrumDeusSplit.ogg b/Sounds/Custom/AstrumDeus/AstrumDeusSplit.ogg similarity index 100% rename from Sounds/Custom/AstrumDeusSplit.ogg rename to Sounds/Custom/AstrumDeus/AstrumDeusSplit.ogg diff --git a/Sounds/Custom/AstrumDeus/DeusMineExplode.ogg b/Sounds/Custom/AstrumDeus/DeusMineExplode.ogg new file mode 100644 index 0000000000..e3ca1438c6 Binary files /dev/null and b/Sounds/Custom/AstrumDeus/DeusMineExplode.ogg differ diff --git a/Sounds/NPCHit/AstrumDeusHit1.ogg b/Sounds/NPCHit/AstrumDeusHit1.ogg new file mode 100644 index 0000000000..9b2950839e Binary files /dev/null and b/Sounds/NPCHit/AstrumDeusHit1.ogg differ diff --git a/Sounds/NPCHit/AstrumDeusHit2.ogg b/Sounds/NPCHit/AstrumDeusHit2.ogg new file mode 100644 index 0000000000..dbd1d9b4de Binary files /dev/null and b/Sounds/NPCHit/AstrumDeusHit2.ogg differ diff --git a/Sounds/NPCKilled/AureusDeath.ogg b/Sounds/NPCKilled/AureusDeath.ogg new file mode 100644 index 0000000000..7ccc868ba7 Binary files /dev/null and b/Sounds/NPCKilled/AureusDeath.ogg differ