diff --git a/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.png b/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.png index 15d0c56138..33065ad331 100644 Binary files a/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.png and b/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.png differ diff --git a/Buffs/Potions/Cadence.png b/Buffs/Potions/Cadence.png index 3f42e24f69..2cf41f1a0f 100644 Binary files a/Buffs/Potions/Cadence.png and b/Buffs/Potions/Cadence.png differ diff --git a/Buffs/StatBuffs/AbyssalDivingSuitBuff.png b/Buffs/StatBuffs/AbyssalDivingSuitBuff.png index 54470f90ca..574d5145e2 100644 Binary files a/Buffs/StatBuffs/AbyssalDivingSuitBuff.png and b/Buffs/StatBuffs/AbyssalDivingSuitBuff.png differ diff --git a/Buffs/StatBuffs/AbyssalDivingSuitPlates.png b/Buffs/StatBuffs/AbyssalDivingSuitPlates.png index 94f799fdbb..a89877f9ad 100644 Binary files a/Buffs/StatBuffs/AbyssalDivingSuitPlates.png and b/Buffs/StatBuffs/AbyssalDivingSuitPlates.png differ diff --git a/Buffs/Summon/AquaticStar.png b/Buffs/Summon/AquaticStar.png index 7f06fa9055..d99a0b8a19 100644 Binary files a/Buffs/Summon/AquaticStar.png and b/Buffs/Summon/AquaticStar.png differ diff --git a/Buffs/Summon/GladiatorSwords.png b/Buffs/Summon/GladiatorSwords.png index cd4eb7b512..2df6ad7858 100644 Binary files a/Buffs/Summon/GladiatorSwords.png and b/Buffs/Summon/GladiatorSwords.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 91a651aa10..12afae7f5d 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -296,6 +296,7 @@ namespace CalamityMod.CalPlayer public bool crysthamyr = false; public AndromedaPlayerState andromedaState; public int andromedaCripple; + public const float UnicornSpeedNerfPower = 0.8f; #endregion #region Pet @@ -2904,7 +2905,7 @@ namespace CalamityMod.CalPlayer } if (dsSetBonus) { - Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DemonshadeEnrage"), player.Center); for (int num502 = 0; num502 < 36; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f); @@ -5691,9 +5692,6 @@ namespace CalamityMod.CalPlayer theBeeCooldown = 600; } - if (!CalamityWorld.downedBossAny) - contactDamageReduction += 0.2; - if (CalamityWorld.revenge) { if (CalamityConfig.Instance.Rippers) @@ -5968,10 +5966,6 @@ namespace CalamityMod.CalPlayer damage = (int)(damage * 0.65); } - // Reduce the bullshit damage Ichor Stickers do - if (proj.type == ProjectileID.GoldenShowerHostile) - damage = (int)(damage * 0.35); - if (CalamityWorld.revenge) { double damageMultiplier = 1D; @@ -6100,12 +6094,6 @@ namespace CalamityMod.CalPlayer projectileDamageReduction += 0.25; } - if (Main.hardMode && Main.expertMode && !CalamityWorld.spawnedHardBoss && proj.active && !proj.friendly && proj.hostile && damage > 0) - { - if (CalamityLists.hardModeNerfList.Contains(proj.type)) - projectileDamageReduction += 0.25; - } - if (trinketOfChiBuff) projectileDamageReduction += 0.15; @@ -6132,9 +6120,6 @@ namespace CalamityMod.CalPlayer theBeeCooldown = 600; } - if (!CalamityWorld.downedBossAny) - projectileDamageReduction += 0.2; - if (CalamityWorld.revenge) { if (CalamityConfig.Instance.Rippers) diff --git a/CalamityLists.cs b/CalamityLists.cs index 2d18e53d9f..e1377e0021 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -695,16 +695,17 @@ namespace CalamityMod hardModeNerfList = new List() { - ProjectileID.WebSpit, ProjectileID.PinkLaser, ProjectileID.FrostBlastHostile, - ProjectileID.RuneBlast, ProjectileID.GoldenShowerHostile, ProjectileID.RainNimbus, - ProjectileID.Stinger, ProjectileID.FlamingArrow, ProjectileID.BulletDeadeye, - ProjectileID.CannonballHostile + ProjectileID.CannonballHostile, + ProjectileID.UnholyTridentHostile, + ProjectileID.FrostBeam, + ProjectileID.CursedFlameHostile, + ProjectileID.Stinger }; debuffList = new List() diff --git a/CalamityMod.cs b/CalamityMod.cs index 8047e2c220..544e28d565 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -119,6 +119,8 @@ namespace CalamityMod rainOriginal = Main.rainTexture; manaOriginal = Main.manaTexture; carpetOriginal = Main.flyingCarpetTexture; + Mount.mounts[Mount.Unicorn].dashSpeed *= CalamityPlayer.UnicornSpeedNerfPower; + Mount.mounts[Mount.Unicorn].runSpeed *= CalamityPlayer.UnicornSpeedNerfPower; NormalityRelocatorHotKey = RegisterHotKey("Normality Relocator", "Z"); RageHotKey = RegisterHotKey("Rage Mode", "V"); @@ -282,6 +284,8 @@ namespace CalamityMod Main.manaTexture = manaOriginal; Main.flyingCarpetTexture = carpetOriginal; } + Mount.mounts[Mount.Unicorn].dashSpeed /= CalamityPlayer.UnicornSpeedNerfPower; + Mount.mounts[Mount.Unicorn].runSpeed /= CalamityPlayer.UnicornSpeedNerfPower; heartOriginal2 = null; heartOriginal = null; diff --git a/DataStructures/BaseBossSpawnContext.cs b/DataStructures/BaseBossSpawnContext.cs new file mode 100644 index 0000000000..6fcbce1d88 --- /dev/null +++ b/DataStructures/BaseBossSpawnContext.cs @@ -0,0 +1,9 @@ +using Microsoft.Xna.Framework; + +namespace CalamityMod.DataStructures +{ + public abstract class BaseBossSpawnContext + { + public abstract Vector2 DetermineSpawnPosition(Vector2 relativePosition); + } +} diff --git a/DataStructures/ExactPositionBossSpawnContext.cs b/DataStructures/ExactPositionBossSpawnContext.cs new file mode 100644 index 0000000000..f5c81f9b5b --- /dev/null +++ b/DataStructures/ExactPositionBossSpawnContext.cs @@ -0,0 +1,9 @@ +using Microsoft.Xna.Framework; + +namespace CalamityMod.DataStructures +{ + public class ExactPositionBossSpawnContext : BaseBossSpawnContext + { + public override Vector2 DetermineSpawnPosition(Vector2 relativePosition) => relativePosition; + } +} diff --git a/DataStructures/OffscreenBossSpawnContext.cs b/DataStructures/OffscreenBossSpawnContext.cs new file mode 100644 index 0000000000..005ebeb21c --- /dev/null +++ b/DataStructures/OffscreenBossSpawnContext.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework; +using System; +using Terraria; + +namespace CalamityMod.DataStructures +{ + public class OffscreenBossSpawnContext : BaseBossSpawnContext + { + public override Vector2 DetermineSpawnPosition(Vector2 relativePosition) + { + Vector2 exactPosition = relativePosition; + + // Determine the position based on a circlular offset that is always 10% away from the screen points. + exactPosition += Main.rand.NextVector2CircularEdge(Main.screenWidth, Main.screenHeight) * (float)Math.Sqrt(2f) * 1.1f * 0.5f; + return exactPosition; + } + } +} diff --git a/Gores/CultistAssassinGores/CultistAssassin.png b/Gores/CultistAssassinGores/CultistAssassin.png new file mode 100644 index 0000000000..80ef0bd5a5 Binary files /dev/null and b/Gores/CultistAssassinGores/CultistAssassin.png differ diff --git a/Gores/CultistAssassinGores/CultistAssassin2.png b/Gores/CultistAssassinGores/CultistAssassin2.png new file mode 100644 index 0000000000..b4d740b250 Binary files /dev/null and b/Gores/CultistAssassinGores/CultistAssassin2.png differ diff --git a/Gores/CultistAssassinGores/CultistAssassin3.png b/Gores/CultistAssassinGores/CultistAssassin3.png new file mode 100644 index 0000000000..5350c9bc37 Binary files /dev/null and b/Gores/CultistAssassinGores/CultistAssassin3.png differ diff --git a/Gores/DespairStoneGores/DespairStone.png b/Gores/DespairStoneGores/DespairStone.png new file mode 100644 index 0000000000..2a59f561f1 Binary files /dev/null and b/Gores/DespairStoneGores/DespairStone.png differ diff --git a/Gores/DespairStoneGores/DespairStone2.png b/Gores/DespairStoneGores/DespairStone2.png new file mode 100644 index 0000000000..1745408b2a Binary files /dev/null and b/Gores/DespairStoneGores/DespairStone2.png differ diff --git a/Gores/EidiolistGores/Eidolist.png b/Gores/EidiolistGores/Eidolist.png new file mode 100644 index 0000000000..61029bc5ea Binary files /dev/null and b/Gores/EidiolistGores/Eidolist.png differ diff --git a/Gores/EidiolistGores/Eidolist2.png b/Gores/EidiolistGores/Eidolist2.png new file mode 100644 index 0000000000..698aa4bf1d Binary files /dev/null and b/Gores/EidiolistGores/Eidolist2.png differ diff --git a/Gores/EidiolistGores/Eidolist3.png b/Gores/EidiolistGores/Eidolist3.png new file mode 100644 index 0000000000..7d62499166 Binary files /dev/null and b/Gores/EidiolistGores/Eidolist3.png differ diff --git a/Gores/EidiolistGores/Eidolist4.png b/Gores/EidiolistGores/Eidolist4.png new file mode 100644 index 0000000000..f7b1a1c325 Binary files /dev/null and b/Gores/EidiolistGores/Eidolist4.png differ diff --git a/Gores/ScryllarGores/Scryllar.png b/Gores/ScryllarGores/Scryllar.png new file mode 100644 index 0000000000..e0b97e744b Binary files /dev/null and b/Gores/ScryllarGores/Scryllar.png differ diff --git a/Gores/ScryllarGores/ScryllarRage.png b/Gores/ScryllarGores/ScryllarRage.png new file mode 100644 index 0000000000..1ca48810b3 Binary files /dev/null and b/Gores/ScryllarGores/ScryllarRage.png differ diff --git a/Gores/ScryllarGores/ScryllarRage2.png b/Gores/ScryllarGores/ScryllarRage2.png new file mode 100644 index 0000000000..156c22870f Binary files /dev/null and b/Gores/ScryllarGores/ScryllarRage2.png differ diff --git a/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker.png b/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker.png new file mode 100644 index 0000000000..2754ddfc96 Binary files /dev/null and b/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker.png differ diff --git a/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker2.png b/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker2.png new file mode 100644 index 0000000000..5c18ad17c9 Binary files /dev/null and b/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker2.png differ diff --git a/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker3.png b/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker3.png new file mode 100644 index 0000000000..d6fbc15b0e Binary files /dev/null and b/Gores/SoulSeekerSupremeGores/SupremeSoulSeeker3.png differ diff --git a/Gores/SoulSlurperGores/SoulSlurper.png b/Gores/SoulSlurperGores/SoulSlurper.png new file mode 100644 index 0000000000..a51261bf13 Binary files /dev/null and b/Gores/SoulSlurperGores/SoulSlurper.png differ diff --git a/Gores/SoulSlurperGores/SoulSlurper2.png b/Gores/SoulSlurperGores/SoulSlurper2.png new file mode 100644 index 0000000000..10ef2f8ce5 Binary files /dev/null and b/Gores/SoulSlurperGores/SoulSlurper2.png differ diff --git a/Gores/SoulSlurperGores/SoulSlurper3.png b/Gores/SoulSlurperGores/SoulSlurper3.png new file mode 100644 index 0000000000..8cea7d54e7 Binary files /dev/null and b/Gores/SoulSlurperGores/SoulSlurper3.png differ diff --git a/Gores/StormlionGores/Stormlion.png b/Gores/StormlionGores/Stormlion.png new file mode 100644 index 0000000000..4e41a896d4 Binary files /dev/null and b/Gores/StormlionGores/Stormlion.png differ diff --git a/Gores/StormlionGores/Stormlion2.png b/Gores/StormlionGores/Stormlion2.png new file mode 100644 index 0000000000..dc06b3ae7f Binary files /dev/null and b/Gores/StormlionGores/Stormlion2.png differ diff --git a/Gores/StormlionGores/Stormlion3.png b/Gores/StormlionGores/Stormlion3.png new file mode 100644 index 0000000000..e6b0edf903 Binary files /dev/null and b/Gores/StormlionGores/Stormlion3.png differ diff --git a/Gores/StormlionGores/Stormlion4.png b/Gores/StormlionGores/Stormlion4.png new file mode 100644 index 0000000000..77b6ce0855 Binary files /dev/null and b/Gores/StormlionGores/Stormlion4.png differ diff --git a/Items/Accessories/AlchemicalFlask.png b/Items/Accessories/AlchemicalFlask.png index 5cb7345f9b..c4bf41e7e0 100644 Binary files a/Items/Accessories/AlchemicalFlask.png and b/Items/Accessories/AlchemicalFlask.png differ diff --git a/Items/Accessories/BloodPact.png b/Items/Accessories/BloodPact.png index de1b2f0dec..f34c36e115 100644 Binary files a/Items/Accessories/BloodPact.png and b/Items/Accessories/BloodPact.png differ diff --git a/Items/Accessories/BloodyWormTooth.png b/Items/Accessories/BloodyWormTooth.png index e00b3f5896..bdc187fd4b 100644 Binary files a/Items/Accessories/BloodyWormTooth.png and b/Items/Accessories/BloodyWormTooth.png differ diff --git a/Items/Accessories/CalamityRing.png b/Items/Accessories/CalamityRing.png index 1c272155d5..6054ac9273 100644 Binary files a/Items/Accessories/CalamityRing.png and b/Items/Accessories/CalamityRing.png differ diff --git a/Items/Accessories/CoreOfTheBloodGod.cs b/Items/Accessories/CoreOfTheBloodGod.cs index 028e5e988c..bc1bfda6b2 100644 --- a/Items/Accessories/CoreOfTheBloodGod.cs +++ b/Items/Accessories/CoreOfTheBloodGod.cs @@ -2,6 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -17,12 +18,12 @@ namespace CalamityMod.Items.Accessories "Healing Potions are 15% more effective\n" + "Halves enemy contact damage\n" + "When you take contact damage this effect has a 20 second cooldown"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4)); } public override void SetDefaults() { - item.width = 26; - item.height = 26; + item.width = item.height = 48; item.value = CalamityGlobalItem.Rarity14BuyPrice; item.expert = true; item.rare = ItemRarityID.Red; diff --git a/Items/Accessories/CoreOfTheBloodGod.png b/Items/Accessories/CoreOfTheBloodGod.png index b3e2dfb3f3..10d98d7cb2 100644 Binary files a/Items/Accessories/CoreOfTheBloodGod.png and b/Items/Accessories/CoreOfTheBloodGod.png differ diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs index 779af79d55..b9c6f05e55 100644 --- a/Items/Accessories/DarkSunRing.cs +++ b/Items/Accessories/DarkSunRing.cs @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Accessories "During the day the player has +3 life regen\n" + "During the night the player has +15 defense\n" + "Both of these bonuses are granted during an eclipse"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5)); } public override void SetDefaults() { - item.width = 26; - item.height = 26; + item.width = 40; + item.height = 28; item.value = CalamityGlobalItem.Rarity14BuyPrice; item.rare = ItemRarityID.Purple; item.defense = 10; diff --git a/Items/Accessories/DarkSunRing.png b/Items/Accessories/DarkSunRing.png index deef093bf1..1a17ddad46 100644 Binary files a/Items/Accessories/DarkSunRing.png and b/Items/Accessories/DarkSunRing.png differ diff --git a/Items/Accessories/GladiatorsLocket.png b/Items/Accessories/GladiatorsLocket.png index 83eb7dbf0a..d2e1c67d65 100644 Binary files a/Items/Accessories/GladiatorsLocket.png and b/Items/Accessories/GladiatorsLocket.png differ diff --git a/Items/Accessories/PermafrostsConcoction.png b/Items/Accessories/PermafrostsConcoction.png index a6bc883ce5..01947ec607 100644 Binary files a/Items/Accessories/PermafrostsConcoction.png and b/Items/Accessories/PermafrostsConcoction.png differ diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index 36a44c69a5..dba03bf0a2 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { - item.width = 30; - item.height = 38; + item.width = 42; + item.height = 48; item.value = CalamityGlobalItem.Rarity9BuyPrice; item.expert = true; item.rare = ItemRarityID.Cyan; diff --git a/Items/Accessories/PlagueHive.png b/Items/Accessories/PlagueHive.png index 48e3845b9a..1cd4a7baaa 100644 Binary files a/Items/Accessories/PlagueHive.png and b/Items/Accessories/PlagueHive.png differ diff --git a/Items/Accessories/RadiantOoze.cs b/Items/Accessories/RadiantOoze.cs index f7e557b672..d25f436569 100644 --- a/Items/Accessories/RadiantOoze.cs +++ b/Items/Accessories/RadiantOoze.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories if (!Main.dayTime) { Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 1f, 1f, 0.6f); - player.lifeRegen += 1; + player.lifeRegen += 4; } } diff --git a/Items/Accessories/ToxicHeart.png b/Items/Accessories/ToxicHeart.png index b5e66f1e0f..d5259a044c 100644 Binary files a/Items/Accessories/ToxicHeart.png and b/Items/Accessories/ToxicHeart.png differ diff --git a/Items/Accessories/UnstablePrism.cs b/Items/Accessories/UnstablePrism.cs index 02e4ac7baf..9b250daf51 100644 --- a/Items/Accessories/UnstablePrism.cs +++ b/Items/Accessories/UnstablePrism.cs @@ -2,6 +2,7 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using Terraria.DataStructures; namespace CalamityMod.Items.Accessories { @@ -11,12 +12,13 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Unstable Prism"); Tooltip.SetDefault("Three sparks are released on critical hits"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(7, 5)); } public override void SetDefaults() { - item.width = 22; - item.height = 38; + item.width = 40; + item.height = 44; item.value = CalamityGlobalItem.Rarity3BuyPrice; item.rare = ItemRarityID.Orange; item.accessory = true; diff --git a/Items/Accessories/UnstablePrism.png b/Items/Accessories/UnstablePrism.png index dabdd4e99a..309d3cfa45 100644 Binary files a/Items/Accessories/UnstablePrism.png and b/Items/Accessories/UnstablePrism.png differ diff --git a/Items/Accessories/Wings/HadarianWings.cs b/Items/Accessories/Wings/HadarianWings.cs index 49d82defdd..4d1246b7c1 100644 --- a/Items/Accessories/Wings/HadarianWings.cs +++ b/Items/Accessories/Wings/HadarianWings.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Accessories.Wings { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 8); - recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 8); recipe.AddIngredient(ItemID.SoulofFlight, 20); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); diff --git a/Items/Ammo/IcicleArrow.cs b/Items/Ammo/IcicleArrow.cs index cdb6c2a1cb..1373462cb4 100644 --- a/Items/Ammo/IcicleArrow.cs +++ b/Items/Ammo/IcicleArrow.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Ammo item.damage = 14; item.ranged = true; item.consumable = true; - item.width = 14; + item.width = 18; item.height = 50; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 0, 0, 80); diff --git a/Items/Ammo/IcicleArrow.png b/Items/Ammo/IcicleArrow.png index 6be666a75d..6364060cdd 100644 Binary files a/Items/Ammo/IcicleArrow.png and b/Items/Ammo/IcicleArrow.png differ diff --git a/Items/Ammo/IcyBullet.cs b/Items/Ammo/IcyBullet.cs index 51ca28b613..4c728c826c 100644 --- a/Items/Ammo/IcyBullet.cs +++ b/Items/Ammo/IcyBullet.cs @@ -17,8 +17,8 @@ namespace CalamityMod.Items.Ammo item.damage = 10; item.ranged = true; item.consumable = true; - item.width = 18; - item.height = 16; + item.width = 14; + item.height = 20; item.knockBack = 2f; item.value = Item.buyPrice(0, 0, 0, 80); item.rare = ItemRarityID.LightPurple; diff --git a/Items/Ammo/IcyBullet.png b/Items/Ammo/IcyBullet.png index baccf98031..4adc099d07 100644 Binary files a/Items/Ammo/IcyBullet.png and b/Items/Ammo/IcyBullet.png differ diff --git a/Items/DifficultyItems/MLGRune.cs b/Items/DifficultyItems/MLGRune.cs index d9224f43dd..51518c4897 100644 --- a/Items/DifficultyItems/MLGRune.cs +++ b/Items/DifficultyItems/MLGRune.cs @@ -16,8 +16,7 @@ namespace CalamityMod.Items.DifficultyItems public override void SetDefaults() { - item.width = 28; - item.height = 28; + item.width = item.height = 54; item.maxStack = 99; item.rare = ItemRarityID.Blue; item.useAnimation = 45; diff --git a/Items/DifficultyItems/MLGRune.png b/Items/DifficultyItems/MLGRune.png index e1cf416b98..511794c4e7 100644 Binary files a/Items/DifficultyItems/MLGRune.png and b/Items/DifficultyItems/MLGRune.png differ diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index 8dd11bb059..bc057d54a7 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.DifficultyItems "You gain Rage when you take damage or by using special items.\n" + "ADRENALINE TOOLTIP LINE HERE\n" + "You gain Adrenaline whenever a boss is alive. Getting hit drops Adrenaline back to 0.\n" + - "All enemies drop 50% more cash and spawn 15% more frequently\n" + + "All enemies drop 50% more coins and spawn 15% more frequently\n" + "Certain enemies and projectiles deal between 5% and 25% more damage.\n" + "Makes certain enemies block life steal and nerfs the effectiveness of life steal.\n" + "Nerfs the effectiveness of the Titanium Armor set bonus.\n" + diff --git a/Items/Materials/CalamityDust.cs b/Items/Materials/CalamityDust.cs index 2f69786d37..451514ac6a 100644 --- a/Items/Materials/CalamityDust.cs +++ b/Items/Materials/CalamityDust.cs @@ -1,6 +1,7 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; +using Terraria.DataStructures; namespace CalamityMod.Items.Materials { @@ -9,6 +10,7 @@ namespace CalamityMod.Items.Materials public override void SetStaticDefaults() { DisplayName.SetDefault("Ashes of Calamity"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5)); } public override void SetDefaults() diff --git a/Items/Materials/CalamityDust.png b/Items/Materials/CalamityDust.png index 5565101405..c932a55dab 100644 Binary files a/Items/Materials/CalamityDust.png and b/Items/Materials/CalamityDust.png differ diff --git a/Items/Materials/DesertFeather.png b/Items/Materials/DesertFeather.png index e2495cde51..df02cc3ea1 100644 Binary files a/Items/Materials/DesertFeather.png and b/Items/Materials/DesertFeather.png differ diff --git a/Items/Materials/StormlionMandible.cs b/Items/Materials/StormlionMandible.cs index d905eeb2a7..99fd67a72f 100644 --- a/Items/Materials/StormlionMandible.cs +++ b/Items/Materials/StormlionMandible.cs @@ -1,6 +1,7 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; +using Terraria.DataStructures; namespace CalamityMod.Items.Materials { @@ -9,6 +10,7 @@ namespace CalamityMod.Items.Materials public override void SetStaticDefaults() { DisplayName.SetDefault("Stormlion Mandible"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); } public override void SetDefaults() diff --git a/Items/Materials/StormlionMandible.png b/Items/Materials/StormlionMandible.png index 5d6d9bdb3d..6a5f91d07d 100644 Binary files a/Items/Materials/StormlionMandible.png and b/Items/Materials/StormlionMandible.png differ diff --git a/Items/Placeables/Furniture/CraftingStations/VoidCondenser.png b/Items/Placeables/Furniture/CraftingStations/VoidCondenser.png index b2b1fc41f3..aec3989d27 100644 Binary files a/Items/Placeables/Furniture/CraftingStations/VoidCondenser.png and b/Items/Placeables/Furniture/CraftingStations/VoidCondenser.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusBathtub.png b/Items/Placeables/FurnitureStratus/StratusBathtub.png index 62b3e465f3..1e2883a811 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusBathtub.png and b/Items/Placeables/FurnitureStratus/StratusBathtub.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusBed.png b/Items/Placeables/FurnitureStratus/StratusBed.png index b639e4706c..d756f3b2c9 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusBed.png and b/Items/Placeables/FurnitureStratus/StratusBed.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusBookcase.png b/Items/Placeables/FurnitureStratus/StratusBookcase.png index 47689c13f9..c0f802069f 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusBookcase.png and b/Items/Placeables/FurnitureStratus/StratusBookcase.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusBricks.png b/Items/Placeables/FurnitureStratus/StratusBricks.png index afe0a1534b..633ac18e06 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusBricks.png and b/Items/Placeables/FurnitureStratus/StratusBricks.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusCandelabra.png b/Items/Placeables/FurnitureStratus/StratusCandelabra.png index 39f33d7f13..b9b22edf89 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusCandelabra.png and b/Items/Placeables/FurnitureStratus/StratusCandelabra.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusCandle.png b/Items/Placeables/FurnitureStratus/StratusCandle.png index a11ef5a0b5..2d0d36d06e 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusCandle.png and b/Items/Placeables/FurnitureStratus/StratusCandle.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusChair.png b/Items/Placeables/FurnitureStratus/StratusChair.png index 52a0589125..d5649a7ca1 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusChair.png and b/Items/Placeables/FurnitureStratus/StratusChair.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusChandelier.png b/Items/Placeables/FurnitureStratus/StratusChandelier.png index 1e450c448e..5384acad14 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusChandelier.png and b/Items/Placeables/FurnitureStratus/StratusChandelier.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusChest.png b/Items/Placeables/FurnitureStratus/StratusChest.png index 4b1b4f7787..fa6c5afea9 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusChest.png and b/Items/Placeables/FurnitureStratus/StratusChest.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusDoor.png b/Items/Placeables/FurnitureStratus/StratusDoor.png index 04614fd6c1..e8b86aecc8 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusDoor.png and b/Items/Placeables/FurnitureStratus/StratusDoor.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusDresser.png b/Items/Placeables/FurnitureStratus/StratusDresser.png index c05d362d40..9e09dc19d8 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusDresser.png and b/Items/Placeables/FurnitureStratus/StratusDresser.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusLamp.png b/Items/Placeables/FurnitureStratus/StratusLamp.png index f943742f65..3eeefc45f8 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusLamp.png and b/Items/Placeables/FurnitureStratus/StratusLamp.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusLantern.png b/Items/Placeables/FurnitureStratus/StratusLantern.png index 10c96473ed..80a5d0f6dd 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusLantern.png and b/Items/Placeables/FurnitureStratus/StratusLantern.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusPiano.png b/Items/Placeables/FurnitureStratus/StratusPiano.png index d23c90825b..d6c7527f86 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusPiano.png and b/Items/Placeables/FurnitureStratus/StratusPiano.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusPlatform.png b/Items/Placeables/FurnitureStratus/StratusPlatform.png index dcdcf37818..27caff0c25 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusPlatform.png and b/Items/Placeables/FurnitureStratus/StratusPlatform.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusSink.png b/Items/Placeables/FurnitureStratus/StratusSink.png index afac8f629a..6607d9d26f 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusSink.png and b/Items/Placeables/FurnitureStratus/StratusSink.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusSofa.png b/Items/Placeables/FurnitureStratus/StratusSofa.png index a5ade83284..79b3947880 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusSofa.png and b/Items/Placeables/FurnitureStratus/StratusSofa.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusStarPlatformItem.cs b/Items/Placeables/FurnitureStratus/StratusStarPlatformItem.cs new file mode 100644 index 0000000000..8f538963f9 --- /dev/null +++ b/Items/Placeables/FurnitureStratus/StratusStarPlatformItem.cs @@ -0,0 +1,33 @@ +using CalamityMod.Tiles.FurnitureStratus; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureStratus +{ + public class StratusStarPlatformItem : ModItem + { + public override void SetStaticDefaults() => DisplayName.SetDefault("Stratus Star Platform"); + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.maxStack = 999; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = ItemUseStyleID.SwingThrow; + item.consumable = true; + item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.SetResult(this, 2); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/FurnitureStratus/StratusStarPlatformItem.png b/Items/Placeables/FurnitureStratus/StratusStarPlatformItem.png new file mode 100644 index 0000000000..07a163a220 Binary files /dev/null and b/Items/Placeables/FurnitureStratus/StratusStarPlatformItem.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusTable.png b/Items/Placeables/FurnitureStratus/StratusTable.png index 839a4bd297..a58f6ddeea 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusTable.png and b/Items/Placeables/FurnitureStratus/StratusTable.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusWorkbench.png b/Items/Placeables/FurnitureStratus/StratusWorkbench.png index 9aec85be30..19e284c7ed 100644 Binary files a/Items/Placeables/FurnitureStratus/StratusWorkbench.png and b/Items/Placeables/FurnitureStratus/StratusWorkbench.png differ diff --git a/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.png b/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.png index a4f87d3144..fa07bcd54f 100644 Binary files a/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.png and b/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidBath.png b/Items/Placeables/FurnitureVoid/VoidBath.png index 4f0ad12713..3642eba796 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidBath.png and b/Items/Placeables/FurnitureVoid/VoidBath.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidBed.png b/Items/Placeables/FurnitureVoid/VoidBed.png index 7e200bf914..12aeae1881 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidBed.png and b/Items/Placeables/FurnitureVoid/VoidBed.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidBookcase.png b/Items/Placeables/FurnitureVoid/VoidBookcase.png index 2e1321d68f..9ea1a02b46 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidBookcase.png and b/Items/Placeables/FurnitureVoid/VoidBookcase.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidCandelabra.png b/Items/Placeables/FurnitureVoid/VoidCandelabra.png index 7a04fbf90d..4b4e635767 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidCandelabra.png and b/Items/Placeables/FurnitureVoid/VoidCandelabra.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidCandle.png b/Items/Placeables/FurnitureVoid/VoidCandle.png index cab8a4f80f..67cc7d3315 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidCandle.png and b/Items/Placeables/FurnitureVoid/VoidCandle.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidChair.png b/Items/Placeables/FurnitureVoid/VoidChair.png index 693ee310f2..76e55c3107 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidChair.png and b/Items/Placeables/FurnitureVoid/VoidChair.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidChandelier.png b/Items/Placeables/FurnitureVoid/VoidChandelier.png index 0fc5b28890..125c68bdab 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidChandelier.png and b/Items/Placeables/FurnitureVoid/VoidChandelier.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidChest.png b/Items/Placeables/FurnitureVoid/VoidChest.png index c3da75e1a6..9ab3ebb151 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidChest.png and b/Items/Placeables/FurnitureVoid/VoidChest.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidClock.png b/Items/Placeables/FurnitureVoid/VoidClock.png index 33cf4cf3b6..8cff76c0e5 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidClock.png and b/Items/Placeables/FurnitureVoid/VoidClock.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidDoor.png b/Items/Placeables/FurnitureVoid/VoidDoor.png index 79a1e82ac6..a770c45939 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidDoor.png and b/Items/Placeables/FurnitureVoid/VoidDoor.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidDresser.png b/Items/Placeables/FurnitureVoid/VoidDresser.png index 0dbb8ef311..5789feb6f5 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidDresser.png and b/Items/Placeables/FurnitureVoid/VoidDresser.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidLamp.png b/Items/Placeables/FurnitureVoid/VoidLamp.png index 3e7a73bc88..e252da9d06 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidLamp.png and b/Items/Placeables/FurnitureVoid/VoidLamp.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidLantern.png b/Items/Placeables/FurnitureVoid/VoidLantern.png index 023846d83f..a0718bcefe 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidLantern.png and b/Items/Placeables/FurnitureVoid/VoidLantern.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidPiano.png b/Items/Placeables/FurnitureVoid/VoidPiano.png index d449f8d3ee..769e27bf23 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidPiano.png and b/Items/Placeables/FurnitureVoid/VoidPiano.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidSink.png b/Items/Placeables/FurnitureVoid/VoidSink.png index 64726add2c..ccf03caa6b 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidSink.png and b/Items/Placeables/FurnitureVoid/VoidSink.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidSofa.png b/Items/Placeables/FurnitureVoid/VoidSofa.png index c88fe97c5a..efaf0c7dda 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidSofa.png and b/Items/Placeables/FurnitureVoid/VoidSofa.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidTable.png b/Items/Placeables/FurnitureVoid/VoidTable.png index e28b9b00b2..54acb8053d 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidTable.png and b/Items/Placeables/FurnitureVoid/VoidTable.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidWorkbench.png b/Items/Placeables/FurnitureVoid/VoidWorkbench.png index bc085a95a0..1affd97771 100644 Binary files a/Items/Placeables/FurnitureVoid/VoidWorkbench.png and b/Items/Placeables/FurnitureVoid/VoidWorkbench.png differ diff --git a/Items/Placeables/Ores/PerennialOre.png b/Items/Placeables/Ores/PerennialOre.png index 2251c05622..bad3aea6ad 100644 Binary files a/Items/Placeables/Ores/PerennialOre.png and b/Items/Placeables/Ores/PerennialOre.png differ diff --git a/Items/Placeables/PerennialBrick.png b/Items/Placeables/PerennialBrick.png index 58b2949b40..b88e57b447 100644 Binary files a/Items/Placeables/PerennialBrick.png and b/Items/Placeables/PerennialBrick.png differ diff --git a/Items/Placeables/Walls/ChaoticBrickWall.png b/Items/Placeables/Walls/ChaoticBrickWall.png index 229c02d89c..ae8bf102b0 100644 Binary files a/Items/Placeables/Walls/ChaoticBrickWall.png and b/Items/Placeables/Walls/ChaoticBrickWall.png differ diff --git a/Items/Placeables/Walls/PerennialBrickWall.png b/Items/Placeables/Walls/PerennialBrickWall.png index 49e55bd1a8..e0301850f8 100644 Binary files a/Items/Placeables/Walls/PerennialBrickWall.png and b/Items/Placeables/Walls/PerennialBrickWall.png differ diff --git a/Items/Placeables/Walls/StratusWall.png b/Items/Placeables/Walls/StratusWall.png index fe13f83c34..693079e5e6 100644 Binary files a/Items/Placeables/Walls/StratusWall.png and b/Items/Placeables/Walls/StratusWall.png differ diff --git a/Items/Potions/CadencePotion.cs b/Items/Potions/CadencePotion.cs index e4b9c983b3..312bfe6117 100644 --- a/Items/Potions/CadencePotion.cs +++ b/Items/Potions/CadencePotion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions public override void SetDefaults() { item.width = 28; - item.height = 18; + item.height = 38; item.useTurn = true; item.maxStack = 999; item.rare = ItemRarityID.Orange; diff --git a/Items/Potions/CadencePotion.png b/Items/Potions/CadencePotion.png index fe7763574b..1cc6566f97 100644 Binary files a/Items/Potions/CadencePotion.png and b/Items/Potions/CadencePotion.png differ diff --git a/Items/Potions/ProfanedRagePotion.cs b/Items/Potions/ProfanedRagePotion.cs index 62801d7411..c54b52b384 100644 --- a/Items/Potions/ProfanedRagePotion.cs +++ b/Items/Potions/ProfanedRagePotion.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Potions public override void SetDefaults() { - item.width = 28; - item.height = 18; + item.width = 34; + item.height = 42; item.useTurn = true; item.maxStack = 999; item.rare = ItemRarityID.Orange; diff --git a/Items/Potions/ProfanedRagePotion.png b/Items/Potions/ProfanedRagePotion.png index bf88fd779d..3e9d7340d3 100644 Binary files a/Items/Potions/ProfanedRagePotion.png and b/Items/Potions/ProfanedRagePotion.png differ diff --git a/Items/SummonItems/ChickenEgg.cs b/Items/SummonItems/ChickenEgg.cs index 2aeb534049..b4b9ab55e0 100644 --- a/Items/SummonItems/ChickenEgg.cs +++ b/Items/SummonItems/ChickenEgg.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedBossAny && !BossRushEvent.BossRushActive; + return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; } public override bool UseItem(Player player) diff --git a/Items/SummonItems/CosmicWorm.cs b/Items/SummonItems/CosmicWorm.cs index cd9afa5b0e..e5f3a08849 100644 --- a/Items/SummonItems/CosmicWorm.cs +++ b/Items/SummonItems/CosmicWorm.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.DoGSecondStageCountdown <= 0 && CalamityWorld.downedBossAny && !BossRushEvent.BossRushActive; + return !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.DoGSecondStageCountdown <= 0 && !BossRushEvent.BossRushActive; } public override bool UseItem(Player player) diff --git a/Items/SummonItems/EyeofExtinction.cs b/Items/SummonItems/EyeofExtinction.cs index 82a93bd021..f4d7bd38c3 100644 --- a/Items/SummonItems/EyeofExtinction.cs +++ b/Items/SummonItems/EyeofExtinction.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedBossAny && !BossRushEvent.BossRushActive; + return !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; } public override bool UseItem(Player player) diff --git a/Items/SummonItems/NecroplasmicBeacon.cs b/Items/SummonItems/NecroplasmicBeacon.cs index 180bc2c494..e41cf684e2 100644 --- a/Items/SummonItems/NecroplasmicBeacon.cs +++ b/Items/SummonItems/NecroplasmicBeacon.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return player.ZoneDungeon && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedBossAny && !BossRushEvent.BossRushActive; + return player.ZoneDungeon && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; } public override bool UseItem(Player player) diff --git a/Items/SummonItems/ProfanedCoreUnlimited.cs b/Items/SummonItems/ProfanedCoreUnlimited.cs index ce43632a51..7641eead1c 100644 --- a/Items/SummonItems/ProfanedCoreUnlimited.cs +++ b/Items/SummonItems/ProfanedCoreUnlimited.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(ModContent.NPCType()) && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny && !BossRushEvent.BossRushActive; + return !NPC.AnyNPCs(ModContent.NPCType()) && (player.ZoneHoly || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive; } public override bool UseItem(Player player) diff --git a/Items/SummonItems/SandstormsCore.png b/Items/SummonItems/SandstormsCore.png index 9948f068ad..4b4d7836d7 100644 Binary files a/Items/SummonItems/SandstormsCore.png and b/Items/SummonItems/SandstormsCore.png differ diff --git a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs index aeaec0dba5..ec5dbcf111 100644 --- a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs +++ b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class Phaseslayer : ModItem { - public const int Damage = 8999; + public const int Damage = 3599; // When below this percentage of charge, the sword is small instead of big. public const float SizeChargeThreshold = 0.25f; // The small sword barely affects damage on its own because damage is already dropping significantly at low charge. diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index ac95a98634..11e88cba8e 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.width = 22; item.height = 28; - item.damage = 14200; + item.damage = 5680; item.noMelee = true; item.noUseGraphic = true; item.consumable = true; diff --git a/Items/Weapons/DraedonsArsenal/PoleWarper.cs b/Items/Weapons/DraedonsArsenal/PoleWarper.cs index 964a9d2a2a..b954d4a09f 100644 --- a/Items/Weapons/DraedonsArsenal/PoleWarper.cs +++ b/Items/Weapons/DraedonsArsenal/PoleWarper.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal CalamityGlobalItem modItem = item.Calamity(); item.shootSpeed = 10f; - item.damage = 798; + item.damage = 319; item.mana = 12; item.width = 38; item.height = 24; diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index a6acfeeb40..a3284c60a7 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class PulseRifle : ModItem { - private int BaseDamage = 8900; + private int BaseDamage = 1420; public override void SetStaticDefaults() { diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index 81d02b4f57..fedfd49904 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public class TeslaCannon : ModItem { - private int BaseDamage = 14001; + private int BaseDamage = 2240; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Magic/AcidGun.cs b/Items/Weapons/Magic/AcidGun.cs index 52786315a7..95fc517808 100644 --- a/Items/Weapons/Magic/AcidGun.cs +++ b/Items/Weapons/Magic/AcidGun.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Magic item.damage = 15; item.magic = true; item.mana = 9; - item.width = 48; - item.height = 30; + item.width = 42; + item.height = 28; item.useTime = item.useAnimation = 20; item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; diff --git a/Items/Weapons/Magic/AcidGun.png b/Items/Weapons/Magic/AcidGun.png index 6c5d06e5f2..2113911825 100644 Binary files a/Items/Weapons/Magic/AcidGun.png and b/Items/Weapons/Magic/AcidGun.png differ diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index 78d0f3c531..e55fcdd135 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 280; + item.damage = 112; item.magic = true; item.mana = 5; item.width = 84; diff --git a/Items/Weapons/Magic/ArcticBearPaw.cs b/Items/Weapons/Magic/ArcticBearPaw.cs index 477f4fec9d..17ea08ae5a 100644 --- a/Items/Weapons/Magic/ArcticBearPaw.cs +++ b/Items/Weapons/Magic/ArcticBearPaw.cs @@ -18,8 +18,8 @@ Fires spiritual claws that ignore walls and confuse enemies"); item.damage = 100; item.magic = true; item.mana = 18; - item.width = 34; - item.height = 22; + item.width = 28; + item.height = 24; item.useTime = 28; item.useAnimation = 28; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Magic/ArcticBearPaw.png b/Items/Weapons/Magic/ArcticBearPaw.png index 53ebc65b6a..08d3962445 100644 Binary files a/Items/Weapons/Magic/ArcticBearPaw.png and b/Items/Weapons/Magic/ArcticBearPaw.png differ diff --git a/Items/Weapons/Magic/BlushieStaff.cs b/Items/Weapons/Magic/BlushieStaff.cs index fce8e7f7ca..17c1f0f639 100644 --- a/Items/Weapons/Magic/BlushieStaff.cs +++ b/Items/Weapons/Magic/BlushieStaff.cs @@ -1,7 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Tiles.Furniture.CraftingStations; -using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -17,8 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.width = 38; - item.height = 38; + item.width = item.height = 48; item.useStyle = ItemUseStyleID.HoldingUp; item.useAnimation = 30; item.useTime = 30; diff --git a/Items/Weapons/Magic/BlushieStaff.png b/Items/Weapons/Magic/BlushieStaff.png index 694d4e7934..95076800e4 100644 Binary files a/Items/Weapons/Magic/BlushieStaff.png and b/Items/Weapons/Magic/BlushieStaff.png differ diff --git a/Items/Weapons/Magic/CalamitasInferno.png b/Items/Weapons/Magic/CalamitasInferno.png index 127f4b2dd6..a965af3c19 100644 Binary files a/Items/Weapons/Magic/CalamitasInferno.png and b/Items/Weapons/Magic/CalamitasInferno.png differ diff --git a/Items/Weapons/Magic/Cryophobia.png b/Items/Weapons/Magic/Cryophobia.png index d8111f09bb..2629ffcb8a 100644 Binary files a/Items/Weapons/Magic/Cryophobia.png and b/Items/Weapons/Magic/Cryophobia.png differ diff --git a/Items/Weapons/Magic/CrystalFlareStaff.png b/Items/Weapons/Magic/CrystalFlareStaff.png index 6ce9c83227..d46c91b4d0 100644 Binary files a/Items/Weapons/Magic/CrystalFlareStaff.png and b/Items/Weapons/Magic/CrystalFlareStaff.png differ diff --git a/Items/Weapons/Magic/Downpour.png b/Items/Weapons/Magic/Downpour.png index db39ab03e4..9465a9ab71 100644 Binary files a/Items/Weapons/Magic/Downpour.png and b/Items/Weapons/Magic/Downpour.png differ diff --git a/Items/Weapons/Magic/EventHorizon.cs b/Items/Weapons/Magic/EventHorizon.cs index 4fd2b8519c..042c4eaadd 100644 --- a/Items/Weapons/Magic/EventHorizon.cs +++ b/Items/Weapons/Magic/EventHorizon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.width = 28; item.height = 30; - item.damage = 369; + item.damage = 148; item.knockBack = 3.5f; item.noMelee = true; item.magic = true; diff --git a/Items/Weapons/Magic/FaceMelter.cs b/Items/Weapons/Magic/FaceMelter.cs index 9c644b6dcf..71225809b5 100644 --- a/Items/Weapons/Magic/FaceMelter.cs +++ b/Items/Weapons/Magic/FaceMelter.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 250; + item.damage = 100; item.magic = true; item.mana = 10; item.width = 56; diff --git a/Items/Weapons/Magic/GleamingMagnolia.png b/Items/Weapons/Magic/GleamingMagnolia.png index 9e159acd3e..9191ec262d 100644 Binary files a/Items/Weapons/Magic/GleamingMagnolia.png and b/Items/Weapons/Magic/GleamingMagnolia.png differ diff --git a/Items/Weapons/Magic/HellBurst.png b/Items/Weapons/Magic/HellBurst.png index 26bfd79a0b..410a2fe98f 100644 Binary files a/Items/Weapons/Magic/HellBurst.png and b/Items/Weapons/Magic/HellBurst.png differ diff --git a/Items/Weapons/Magic/IceBarrage.cs b/Items/Weapons/Magic/IceBarrage.cs index 15f58b9403..080a1b7853 100644 --- a/Items/Weapons/Magic/IceBarrage.cs +++ b/Items/Weapons/Magic/IceBarrage.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic item.Calamity().customRarity = CalamityRarity.DarkBlue; item.Calamity().donorItem = true; - item.damage = 5800; + item.damage = 2320; item.knockBack = 6f; item.useTime = 300; item.useAnimation = 300; diff --git a/Items/Weapons/Magic/IcicleTrident.cs b/Items/Weapons/Magic/IcicleTrident.cs index b8721eb8a6..d3f8dd24e2 100644 --- a/Items/Weapons/Magic/IcicleTrident.cs +++ b/Items/Weapons/Magic/IcicleTrident.cs @@ -19,8 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic item.damage = 69; item.magic = true; item.mana = 21; - item.width = 64; - item.height = 64; + item.width = item.height = 44; item.useTime = 25; item.useAnimation = 25; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Magic/IcicleTrident.png b/Items/Weapons/Magic/IcicleTrident.png index 5f408cc574..93cc8dc5f6 100644 Binary files a/Items/Weapons/Magic/IcicleTrident.png and b/Items/Weapons/Magic/IcicleTrident.png differ diff --git a/Items/Weapons/Magic/LightGodsBrilliance.cs b/Items/Weapons/Magic/LightGodsBrilliance.cs index 7bcb96550d..b8a7ffad5b 100644 --- a/Items/Weapons/Magic/LightGodsBrilliance.cs +++ b/Items/Weapons/Magic/LightGodsBrilliance.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 100; + item.damage = 50; item.magic = true; item.mana = 4; item.width = 34; diff --git a/Items/Weapons/Magic/ManaRose.png b/Items/Weapons/Magic/ManaRose.png index c27713d21f..f8b5ca589e 100644 Binary files a/Items/Weapons/Magic/ManaRose.png and b/Items/Weapons/Magic/ManaRose.png differ diff --git a/Items/Weapons/Magic/PlasmaRod.png b/Items/Weapons/Magic/PlasmaRod.png index 16e0f471cb..2ca812d871 100644 Binary files a/Items/Weapons/Magic/PlasmaRod.png and b/Items/Weapons/Magic/PlasmaRod.png differ diff --git a/Items/Weapons/Magic/PrimordialAncient.cs b/Items/Weapons/Magic/PrimordialAncient.cs index 69daddbc28..6b380c6aa8 100644 --- a/Items/Weapons/Magic/PrimordialAncient.cs +++ b/Items/Weapons/Magic/PrimordialAncient.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 305; + item.damage = 122; item.magic = true; item.mana = 20; item.width = 36; diff --git a/Items/Weapons/Magic/Purge.png b/Items/Weapons/Magic/Purge.png index 770f46c352..364192c1c9 100644 Binary files a/Items/Weapons/Magic/Purge.png and b/Items/Weapons/Magic/Purge.png differ diff --git a/Items/Weapons/Magic/RecitationoftheBeast.cs b/Items/Weapons/Magic/RecitationoftheBeast.cs index ffbc0a9762..cd21ca99e8 100644 --- a/Items/Weapons/Magic/RecitationoftheBeast.cs +++ b/Items/Weapons/Magic/RecitationoftheBeast.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.mana = 24; item.width = 38; item.height = 34; - item.damage = 300; + item.damage = 120; item.noMelee = true; item.useAnimation = 18; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Magic/SHPC.cs b/Items/Weapons/Magic/SHPC.cs index 67959f65a8..a8a87b240a 100644 --- a/Items/Weapons/Magic/SHPC.cs +++ b/Items/Weapons/Magic/SHPC.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Magic item.damage = 22; item.magic = true; item.mana = 20; - item.width = 96; - item.height = 34; + item.width = 90; + item.height = 42; item.useTime = item.useAnimation = 7; item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; diff --git a/Items/Weapons/Magic/SHPC.png b/Items/Weapons/Magic/SHPC.png index 5076987e82..dd59cda99a 100644 Binary files a/Items/Weapons/Magic/SHPC.png and b/Items/Weapons/Magic/SHPC.png differ diff --git a/Items/Weapons/Magic/SoulPiercer.cs b/Items/Weapons/Magic/SoulPiercer.cs index 4eb2edb3af..0bd9710bca 100644 --- a/Items/Weapons/Magic/SoulPiercer.cs +++ b/Items/Weapons/Magic/SoulPiercer.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 155; + item.damage = 62; item.magic = true; item.mana = 19; item.width = 64; diff --git a/Items/Weapons/Magic/T1000.cs b/Items/Weapons/Magic/T1000.cs index ace66cf56f..01ede1a9a6 100644 --- a/Items/Weapons/Magic/T1000.cs +++ b/Items/Weapons/Magic/T1000.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 300; + item.damage = 120; item.magic = true; item.mana = 10; item.width = 20; diff --git a/Items/Weapons/Magic/T1000.png b/Items/Weapons/Magic/T1000.png index 019dc1c48b..dad467ea72 100644 Binary files a/Items/Weapons/Magic/T1000.png and b/Items/Weapons/Magic/T1000.png differ diff --git a/Items/Weapons/Magic/WintersFury.cs b/Items/Weapons/Magic/WintersFury.cs index c9331630b5..a89e79c531 100644 --- a/Items/Weapons/Magic/WintersFury.cs +++ b/Items/Weapons/Magic/WintersFury.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Magic item.damage = 59; item.magic = true; item.mana = 7; - item.width = 28; - item.height = 30; + item.width = 36; + item.height = 40; item.useTime = 12; item.useAnimation = 12; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Magic/WintersFury.png b/Items/Weapons/Magic/WintersFury.png index 32994417e2..48c92d0aa7 100644 Binary files a/Items/Weapons/Magic/WintersFury.png and b/Items/Weapons/Magic/WintersFury.png differ diff --git a/Items/Weapons/Melee/AbsoluteZero.png b/Items/Weapons/Melee/AbsoluteZero.png index a18fab51d6..eba3273691 100644 Binary files a/Items/Weapons/Melee/AbsoluteZero.png and b/Items/Weapons/Melee/AbsoluteZero.png differ diff --git a/Items/Weapons/Melee/AncientShiv.png b/Items/Weapons/Melee/AncientShiv.png index baa82de97c..d452405e46 100644 Binary files a/Items/Weapons/Melee/AncientShiv.png and b/Items/Weapons/Melee/AncientShiv.png differ diff --git a/Items/Weapons/Melee/ColdheartIcicle.cs b/Items/Weapons/Melee/ColdheartIcicle.cs index f7578b9401..246f8f9f1b 100644 --- a/Items/Weapons/Melee/ColdheartIcicle.cs +++ b/Items/Weapons/Melee/ColdheartIcicle.cs @@ -15,8 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.damage = 1; item.melee = true; - item.width = 26; - item.height = 26; + item.width = item.height = 24; item.useTime = 27; item.useAnimation = 27; item.autoReuse = true; diff --git a/Items/Weapons/Melee/ColdheartIcicle.png b/Items/Weapons/Melee/ColdheartIcicle.png index aba5085616..8a398ac692 100644 Binary files a/Items/Weapons/Melee/ColdheartIcicle.png and b/Items/Weapons/Melee/ColdheartIcicle.png differ diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index ba36bf9917..c3cf957ed5 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.width = 44; item.height = 44; - item.damage = 666; + item.damage = 266; item.melee = true; item.knockBack = 9f; diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 6615e41e75..767b489371 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.width = 118; item.height = 118; - item.damage = 520; + item.damage = 208; item.melee = true; item.useAnimation = 20; item.useTime = 20; diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index b033e7e73d..33d5ca9e0f 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 18; - item.damage = 600; + item.damage = 240; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/EssenceFlayer.cs b/Items/Weapons/Melee/EssenceFlayer.cs index 4f64f4ee0c..084a423fb9 100644 --- a/Items/Weapons/Melee/EssenceFlayer.cs +++ b/Items/Weapons/Melee/EssenceFlayer.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 100; - item.damage = 450; + item.damage = 180; item.melee = true; item.useAnimation = 19; item.useStyle = ItemUseStyleID.SwingThrow; diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index a49afd38ea..32d0630103 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Galaxia"); - Tooltip.SetDefault("Fires homing projectiles that inflict different debuffs depending on what biome you're in\n" + + Tooltip.SetDefault("Fires a spread of homing projectiles that inflict different debuffs depending on what biome you're in\n" + "Upon hitting an enemy you are granted a buff based on what biome you're in\n" + "Projectiles also change based on moon events"); } @@ -23,13 +23,13 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 70; - item.damage = 385; + item.damage = 120; item.melee = true; - item.useAnimation = 17; - item.useTime = 17; + item.useAnimation = 18; + item.useTime = 18; item.useTurn = true; item.useStyle = ItemUseStyleID.SwingThrow; - item.knockBack = 9; + item.knockBack = 9f; item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 70; @@ -40,7 +40,18 @@ namespace CalamityMod.Items.Weapons.Melee item.Calamity().customRarity = CalamityRarity.DarkBlue; } - public override void AddRecipes() + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + for (int projectiles = 0; projectiles < 3; projectiles++) + { + float SpeedX = speedX + Main.rand.Next(-40, 41) * 0.05f; + float SpeedY = speedY + Main.rand.Next(-40, 41) * 0.05f; + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI); + } + return false; + } + + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); diff --git a/Items/Weapons/Melee/GalaxySmasherMelee.cs b/Items/Weapons/Melee/GalaxySmasherMelee.cs index 25f87d551c..cfde400c44 100644 --- a/Items/Weapons/Melee/GalaxySmasherMelee.cs +++ b/Items/Weapons/Melee/GalaxySmasherMelee.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee { public class GalaxySmasherMelee : ModItem { - public static int BaseDamage = 480; + public static int BaseDamage = 192; public static float Speed = 18f; public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/GreatswordofBlah.cs b/Items/Weapons/Melee/GreatswordofBlah.cs index cacddf6d46..a411775225 100644 --- a/Items/Weapons/Melee/GreatswordofBlah.cs +++ b/Items/Weapons/Melee/GreatswordofBlah.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = item.height = 102; - item.damage = 300; + item.damage = 120; item.melee = true; item.useAnimation = 18; item.useStyle = ItemUseStyleID.SwingThrow; diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index d15eee73ee..75b6e8d8fe 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee { public class Nadir : ModItem { - public static int BaseDamage = 700; + public static int BaseDamage = 280; public static float ShootSpeed = 12f; public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index b08f7723e9..abe904e2f2 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee { float SpeedX = speedX + Main.rand.Next(-40, 41) * 0.05f; float SpeedY = speedY + Main.rand.Next(-40, 41) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI); } return false; } diff --git a/Items/Weapons/Melee/Omniblade.png b/Items/Weapons/Melee/Omniblade.png index 53936276b5..1afd373fd5 100644 Binary files a/Items/Weapons/Melee/Omniblade.png and b/Items/Weapons/Melee/Omniblade.png differ diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index fb669c76b5..a6495208d1 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.damage = 1200; + item.damage = 720; item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = item.useAnimation = 15; item.useTurn = true; diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index f546326b90..e0eab8f07d 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.width = 18; - item.damage = 1300; + item.width = item.height = 64; + item.damage = 520; item.melee = true; item.noMelee = true; item.noUseGraphic = true; @@ -27,7 +27,6 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 5f; item.UseSound = SoundID.Item109; item.autoReuse = true; - item.height = 20; item.value = CalamityGlobalItem.Rarity14BuyPrice; item.rare = ItemRarityID.Purple; item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.png b/Items/Weapons/Melee/ScourgeoftheCosmos.png index f5b527abdf..b9cfa8ce5a 100644 Binary files a/Items/Weapons/Melee/ScourgeoftheCosmos.png and b/Items/Weapons/Melee/ScourgeoftheCosmos.png differ diff --git a/Items/Weapons/Melee/SporeKnife.png b/Items/Weapons/Melee/SporeKnife.png index 3627904887..eda8bd0455 100644 Binary files a/Items/Weapons/Melee/SporeKnife.png and b/Items/Weapons/Melee/SporeKnife.png differ diff --git a/Items/Weapons/Melee/StreamGouge.cs b/Items/Weapons/Melee/StreamGouge.cs index 161ce67d27..cfab748d33 100644 --- a/Items/Weapons/Melee/StreamGouge.cs +++ b/Items/Weapons/Melee/StreamGouge.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 100; - item.damage = 350; + item.damage = 140; item.melee = true; item.noMelee = true; item.useTurn = true; diff --git a/Items/Weapons/Melee/SubmarineShocker.png b/Items/Weapons/Melee/SubmarineShocker.png index cfececae90..c1a04b66b1 100644 Binary files a/Items/Weapons/Melee/SubmarineShocker.png and b/Items/Weapons/Melee/SubmarineShocker.png differ diff --git a/Items/Weapons/Melee/TenebreusTides.cs b/Items/Weapons/Melee/TenebreusTides.cs index 63deaf2fef..064f712819 100644 --- a/Items/Weapons/Melee/TenebreusTides.cs +++ b/Items/Weapons/Melee/TenebreusTides.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = ItemRarityID.Cyan; item.Calamity().donorItem = true; - item.width = item.height = 72; + item.width = item.height = 68; item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.noMelee = true; diff --git a/Items/Weapons/Melee/TenebreusTides.png b/Items/Weapons/Melee/TenebreusTides.png index 6b5fac2a7a..bc1fb44020 100644 Binary files a/Items/Weapons/Melee/TenebreusTides.png and b/Items/Weapons/Melee/TenebreusTides.png differ diff --git a/Items/Weapons/Melee/TheBurningSky.cs b/Items/Weapons/Melee/TheBurningSky.cs index a7663c0181..0e39b5713e 100644 --- a/Items/Weapons/Melee/TheBurningSky.cs +++ b/Items/Weapons/Melee/TheBurningSky.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.width = 62; item.damage = 200; item.melee = true; - item.useTime = 5; + item.useTime = 15; item.useAnimation = 15; item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = ItemRarityID.Purple; item.Calamity().customRarity = CalamityRarity.Violet; item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 35f; + item.shootSpeed = 12f; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Melee num80 = num72 / num80; } - int num107 = 10; + int num107 = 20; for (int num108 = 0; num108 < num107; num108++) { vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f); diff --git a/Items/Weapons/Melee/TheEnforcer.cs b/Items/Weapons/Melee/TheEnforcer.cs index 7b3cf83935..b095fb1724 100644 --- a/Items/Weapons/Melee/TheEnforcer.cs +++ b/Items/Weapons/Melee/TheEnforcer.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.width = 100; item.height = 100; item.scale = 1.5f; - item.damage = 1900; + item.damage = 760; item.melee = true; item.useAnimation = 17; item.useStyle = ItemUseStyleID.SwingThrow; diff --git a/Items/Weapons/Melee/TheEyeofCalamitas.png b/Items/Weapons/Melee/TheEyeofCalamitas.png index 3d25fe1600..e749d3cb9b 100644 Binary files a/Items/Weapons/Melee/TheEyeofCalamitas.png and b/Items/Weapons/Melee/TheEyeofCalamitas.png differ diff --git a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs index 0693a323dc..48580df177 100644 --- a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs +++ b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 160; + item.height = 160; item.damage = 10000; item.noMelee = true; item.noUseGraphic = true; @@ -28,7 +29,6 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 50f; item.UseSound = SoundID.Item1; item.melee = true; - item.height = 160; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; diff --git a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.png b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.png index 3f86fa3c6d..60e00a746b 100644 Binary files a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.png and b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.png differ diff --git a/Items/Weapons/Ranged/AMR.cs b/Items/Weapons/Ranged/AMR.cs index 6b5f1dd13c..08617a7ed4 100644 --- a/Items/Weapons/Ranged/AMR.cs +++ b/Items/Weapons/Ranged/AMR.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 7000; + item.damage = 2800; item.ranged = true; item.width = 76; item.height = 30; @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Ranged if (type == ProjectileID.Bullet) Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI); else - Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); + Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.3), knockBack, player.whoAmI); return false; } diff --git a/Items/Weapons/Ranged/Alluvion.cs b/Items/Weapons/Ranged/Alluvion.cs index db1dcaad18..e252fc95ba 100644 --- a/Items/Weapons/Ranged/Alluvion.cs +++ b/Items/Weapons/Ranged/Alluvion.cs @@ -15,14 +15,13 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Alluvion"); - Tooltip.SetDefault("Moderate chance to convert wooden arrows into sharks\n" + - "Low chance to convert wooden arrows into typhoon arrows\n" + + Tooltip.SetDefault("Converts wooden arrows into sharks, torrential and typhoon arrows\n" + "Fires a torrent of six arrows at once"); } public override void SetDefaults() { - item.damage = 70; + item.damage = 50; item.ranged = true; item.width = 60; item.height = 90; @@ -36,14 +35,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item5; item.autoReuse = true; item.shoot = ProjectileID.WoodenArrowFriendly; - item.shootSpeed = 17f; + item.shootSpeed = 12f; item.useAmmo = AmmoID.Arrow; item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Vector2 source = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 source = player.RotatedRelativePoint(player.MountedCenter); float num117 = MathHelper.Pi * 0.1f; int totalProjectiles = 6; Vector2 velocity = new Vector2(speedX, speedY); @@ -52,32 +51,34 @@ namespace CalamityMod.Items.Weapons.Ranged bool canHit = Collision.CanHit(source, 0, 0, source + velocity, 0, 0); for (int i = 0; i < totalProjectiles; i++) { - float num120 = (float)i - ((float)totalProjectiles - 1f) / 2f; - Vector2 offset = velocity.RotatedBy((double)(num117 * num120), default); + float num120 = i - (totalProjectiles - 1f) / 2f; + Vector2 offset = velocity.RotatedBy(num117 * num120); if (!canHit) - { offset -= velocity; - } + if (type == ProjectileID.WoodenArrowFriendly) { - if (Main.rand.NextBool(12)) - { - type = ModContent.ProjectileType(); - } - if (Main.rand.NextBool(25)) - { - type = ModContent.ProjectileType(); - } - if (Main.rand.NextBool(100)) - { - type = ModContent.ProjectileType(); - } - int proj = Projectile.NewProjectile(source.X + offset.X, source.Y + offset.Y, speedX, speedY, type, damage, knockBack, player.whoAmI); + int newType = type; + switch (i) + { + case 0: + case 5: + newType = ModContent.ProjectileType(); + break; + case 1: + case 4: + newType = ModContent.ProjectileType(); + break; + case 2: + case 3: + newType = ModContent.ProjectileType(); + break; + } + int proj = Projectile.NewProjectile(source.X + offset.X, source.Y + offset.Y, speedX, speedY, newType, damage, knockBack, player.whoAmI); if (proj.WithinBounds(Main.maxProjectiles)) { - Main.projectile[proj].Calamity().forceRanged = true; - Main.projectile[proj].noDropItem = true; Main.projectile[proj].arrow = true; + Main.projectile[proj].extraUpdates += 1; } } else diff --git a/Items/Weapons/Ranged/Animosity.png b/Items/Weapons/Ranged/Animosity.png index e6df7ae736..41a91b1e3e 100644 Binary files a/Items/Weapons/Ranged/Animosity.png and b/Items/Weapons/Ranged/Animosity.png differ diff --git a/Items/Weapons/Ranged/Barinautical.png b/Items/Weapons/Ranged/Barinautical.png index 5ca5835f63..5c680e03a9 100644 Binary files a/Items/Weapons/Ranged/Barinautical.png and b/Items/Weapons/Ranged/Barinautical.png differ diff --git a/Items/Weapons/Ranged/BlossomFlux.cs b/Items/Weapons/Ranged/BlossomFlux.cs index 50f2f2e93b..b6f2e970ef 100644 --- a/Items/Weapons/Ranged/BlossomFlux.cs +++ b/Items/Weapons/Ranged/BlossomFlux.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 22; item.ranged = true; - item.width = 40; - item.height = 62; + item.width = 38; + item.height = 68; item.useTime = 4; item.useAnimation = 16; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Ranged/BlossomFlux.png b/Items/Weapons/Ranged/BlossomFlux.png index 65ff75f648..82ebdb8d59 100644 Binary files a/Items/Weapons/Ranged/BlossomFlux.png and b/Items/Weapons/Ranged/BlossomFlux.png differ diff --git a/Items/Weapons/Ranged/ChargedDartRifle.cs b/Items/Weapons/Ranged/ChargedDartRifle.cs index 0d043200ed..abd42eb38a 100644 --- a/Items/Weapons/Ranged/ChargedDartRifle.cs +++ b/Items/Weapons/Ranged/ChargedDartRifle.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 100; item.ranged = true; - item.width = 60; - item.height = 24; + item.width = 74; + item.height = 40; item.useTime = 25; item.useAnimation = 25; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Ranged/ChargedDartRifle.png b/Items/Weapons/Ranged/ChargedDartRifle.png index a99401fc36..4ba1a1833d 100644 Binary files a/Items/Weapons/Ranged/ChargedDartRifle.png and b/Items/Weapons/Ranged/ChargedDartRifle.png differ diff --git a/Items/Weapons/Ranged/ChickenCannon.cs b/Items/Weapons/Ranged/ChickenCannon.cs index 95822f651c..dbb9541285 100644 --- a/Items/Weapons/Ranged/ChickenCannon.cs +++ b/Items/Weapons/Ranged/ChickenCannon.cs @@ -16,12 +16,12 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 12; + item.damage = 300; item.ranged = true; item.width = 76; item.height = 24; - item.useTime = 13; - item.useAnimation = 13; + item.useTime = 39; + item.useAnimation = 39; item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8.5f; @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); return false; } } diff --git a/Items/Weapons/Ranged/CleansingBlaze.cs b/Items/Weapons/Ranged/CleansingBlaze.cs index 7cf62f012f..7c691feecb 100644 --- a/Items/Weapons/Ranged/CleansingBlaze.cs +++ b/Items/Weapons/Ranged/CleansingBlaze.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 250; + item.damage = 130; item.ranged = true; item.width = 64; item.height = 32; diff --git a/Items/Weapons/Ranged/CursedCapper.cs b/Items/Weapons/Ranged/CursedCapper.cs index 50d7e1662a..df2055a052 100644 --- a/Items/Weapons/Ranged/CursedCapper.cs +++ b/Items/Weapons/Ranged/CursedCapper.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 35; item.ranged = true; - item.width = 44; + item.width = 52; item.height = 32; item.useTime = 10; item.useAnimation = 10; diff --git a/Items/Weapons/Ranged/CursedCapper.png b/Items/Weapons/Ranged/CursedCapper.png index 7b0eef9535..ce5af668df 100644 Binary files a/Items/Weapons/Ranged/CursedCapper.png and b/Items/Weapons/Ranged/CursedCapper.png differ diff --git a/Items/Weapons/Ranged/Deathwind.cs b/Items/Weapons/Ranged/Deathwind.cs index 65c7107ee5..55b58ed1fe 100644 --- a/Items/Weapons/Ranged/Deathwind.cs +++ b/Items/Weapons/Ranged/Deathwind.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 265; + item.damage = 345; item.ranged = true; item.width = 40; item.height = 82; diff --git a/Items/Weapons/Ranged/DodusHandcannon.cs b/Items/Weapons/Ranged/DodusHandcannon.cs index 3842788665..74adf9c5a1 100644 --- a/Items/Weapons/Ranged/DodusHandcannon.cs +++ b/Items/Weapons/Ranged/DodusHandcannon.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged // Reduce volume to 30% so it stops destroying people's ears. var sound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LargeWeaponFire"); - item.UseSound = sound.WithVolume(0.3f); + item.UseSound = sound?.WithVolume(0.3f); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; diff --git a/Items/Weapons/Ranged/EternalBlizzard.cs b/Items/Weapons/Ranged/EternalBlizzard.cs index 1acf1d1987..b9cf8264a0 100644 --- a/Items/Weapons/Ranged/EternalBlizzard.cs +++ b/Items/Weapons/Ranged/EternalBlizzard.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 73; item.ranged = true; - item.width = 42; + item.width = 38; item.height = 62; item.useTime = 18; item.useAnimation = 18; diff --git a/Items/Weapons/Ranged/EternalBlizzard.png b/Items/Weapons/Ranged/EternalBlizzard.png index 98942e37af..8d0fcc4925 100644 Binary files a/Items/Weapons/Ranged/EternalBlizzard.png and b/Items/Weapons/Ranged/EternalBlizzard.png differ diff --git a/Items/Weapons/Ranged/FrostbiteBlaster.cs b/Items/Weapons/Ranged/FrostbiteBlaster.cs index d4e75f37c1..4ef484eb78 100644 --- a/Items/Weapons/Ranged/FrostbiteBlaster.cs +++ b/Items/Weapons/Ranged/FrostbiteBlaster.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 31; item.ranged = true; - item.width = 54; - item.height = 30; + item.width = 56; + item.height = 22; item.useTime = 7; item.useAnimation = 21; item.reuseDelay = 54; diff --git a/Items/Weapons/Ranged/FrostbiteBlaster.png b/Items/Weapons/Ranged/FrostbiteBlaster.png index 18f1ddd993..f71f58da68 100644 Binary files a/Items/Weapons/Ranged/FrostbiteBlaster.png and b/Items/Weapons/Ranged/FrostbiteBlaster.png differ diff --git a/Items/Weapons/Ranged/HalleysInferno.cs b/Items/Weapons/Ranged/HalleysInferno.cs index 319326f475..b09ef658ef 100644 --- a/Items/Weapons/Ranged/HalleysInferno.cs +++ b/Items/Weapons/Ranged/HalleysInferno.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 1150; + item.damage = 1350; item.knockBack = 5f; item.ranged = true; item.useTime = item.useAnimation = 30; diff --git a/Items/Weapons/Ranged/Karasawa.cs b/Items/Weapons/Ranged/Karasawa.cs index dfa7c4c4de..54c6c6d144 100644 --- a/Items/Weapons/Ranged/Karasawa.cs +++ b/Items/Weapons/Ranged/Karasawa.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.width = 94; item.height = 44; item.ranged = true; - item.damage = 1380; + item.damage = 800; item.knockBack = 12f; item.useTime = 52; item.useAnimation = 52; diff --git a/Items/Weapons/Ranged/MagnaStriker.cs b/Items/Weapons/Ranged/MagnaStriker.cs index f5f72be904..9e2014dc78 100644 --- a/Items/Weapons/Ranged/MagnaStriker.cs +++ b/Items/Weapons/Ranged/MagnaStriker.cs @@ -19,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 35; item.ranged = true; - item.width = 60; - item.height = 22; + item.width = 72; + item.height = 38; item.useTime = 5; item.reuseDelay = 6; item.useAnimation = 20; diff --git a/Items/Weapons/Ranged/MagnaStriker.png b/Items/Weapons/Ranged/MagnaStriker.png index ae4b94e72a..f841775c43 100644 Binary files a/Items/Weapons/Ranged/MagnaStriker.png and b/Items/Weapons/Ranged/MagnaStriker.png differ diff --git a/Items/Weapons/Ranged/Megafleet.png b/Items/Weapons/Ranged/Megafleet.png index 839b2a8aab..ac0d0b0f01 100644 Binary files a/Items/Weapons/Ranged/Megafleet.png and b/Items/Weapons/Ranged/Megafleet.png differ diff --git a/Items/Weapons/Ranged/Monsoon.cs b/Items/Weapons/Ranged/Monsoon.cs index 86061bf902..e74819ad62 100644 --- a/Items/Weapons/Ranged/Monsoon.cs +++ b/Items/Weapons/Ranged/Monsoon.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged { DisplayName.SetDefault("Monsoon"); Tooltip.SetDefault("Fires a spread of 5 arrows\n" + - "Wooden arrows have a chance to be converted into typhoon arrows or sharks"); + "Wooden arrows are converted into typhoon arrows and sharks"); } public override void SetDefaults() @@ -33,13 +33,13 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item5; item.autoReuse = true; item.shoot = ProjectileID.WoodenArrowFriendly; - item.shootSpeed = 15f; + item.shootSpeed = 12f; item.useAmmo = AmmoID.Arrow; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Vector2 source = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 source = player.RotatedRelativePoint(player.MountedCenter); float piOver10 = MathHelper.Pi * 0.1f; int totalProjectiles = 5; Vector2 velocity = new Vector2(speedX, speedY); @@ -51,32 +51,34 @@ namespace CalamityMod.Items.Weapons.Ranged float offsetAmt = p - (totalProjectiles - 1f) / 2f; Vector2 offset = velocity.RotatedBy(piOver10 * offsetAmt); if (!canHit) - { offset -= velocity; - } + if (type == ProjectileID.WoodenArrowFriendly) { - if (Main.rand.NextBool(5)) - { - type = ModContent.ProjectileType(); - } - if (Main.rand.NextBool(15)) - { - type = ModContent.ProjectileType(); - } - int arrow = Projectile.NewProjectile(source.X + offset.X, source.Y + offset.Y, speedX, speedY, type, (int)(damage * 1.1), knockBack, player.whoAmI); - if (arrow.WithinBounds(Main.maxProjectiles)) + int newType = type; + switch (p) { - Main.projectile[arrow].Calamity().forceRanged = true; - Main.projectile[arrow].noDropItem = true; - Main.projectile[arrow].arrow = true; - Main.projectile[arrow].extraUpdates += 1; + case 0: + case 1: + case 3: + case 4: + newType = ModContent.ProjectileType(); + break; + case 2: + newType = ModContent.ProjectileType(); + break; + } + int proj = Projectile.NewProjectile(source.X + offset.X, source.Y + offset.Y, speedX, speedY, newType, (int)(damage * 1.1), knockBack, player.whoAmI); + if (proj.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[proj].arrow = true; + Main.projectile[proj].extraUpdates += 1; } } else { - int arrow = Projectile.NewProjectile(source.X + offset.X, source.Y + offset.Y, speedX, speedY, type, damage, knockBack, player.whoAmI); - Main.projectile[arrow].noDropItem = true; + int proj = Projectile.NewProjectile(source.X + offset.X, source.Y + offset.Y, speedX, speedY, type, damage, knockBack, player.whoAmI); + Main.projectile[proj].noDropItem = true; } } return false; diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index dd3a04c3e6..6650d31bfe 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 1000; + item.damage = 520; item.knockBack = 15f; item.shootSpeed = 30f; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Ranged/Onyxia.cs b/Items/Weapons/Ranged/Onyxia.cs index 97f33b1ca7..68550b64c0 100644 --- a/Items/Weapons/Ranged/Onyxia.cs +++ b/Items/Weapons/Ranged/Onyxia.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 200; + item.damage = 100; item.ranged = true; item.width = 84; item.height = 34; diff --git a/Items/Weapons/Ranged/OpalStriker.cs b/Items/Weapons/Ranged/OpalStriker.cs index 3db8878392..b0424ac12e 100644 --- a/Items/Weapons/Ranged/OpalStriker.cs +++ b/Items/Weapons/Ranged/OpalStriker.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 9; item.ranged = true; - item.width = 64; - item.height = 16; + item.width = 46; + item.height = 30; item.useTime = 5; item.reuseDelay = 25; item.useAnimation = 20; diff --git a/Items/Weapons/Ranged/OpalStriker.png b/Items/Weapons/Ranged/OpalStriker.png index daa6d3fdb6..4f8e18f1cb 100644 Binary files a/Items/Weapons/Ranged/OpalStriker.png and b/Items/Weapons/Ranged/OpalStriker.png differ diff --git a/Items/Weapons/Ranged/Phangasm.cs b/Items/Weapons/Ranged/Phangasm.cs index 29bdeaf259..c410783dd3 100644 --- a/Items/Weapons/Ranged/Phangasm.cs +++ b/Items/Weapons/Ranged/Phangasm.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 120; + item.damage = 112; item.width = 20; item.height = 12; item.useTime = 12; diff --git a/Items/Weapons/Ranged/RubicoPrime.cs b/Items/Weapons/Ranged/RubicoPrime.cs index 97ba61ffd5..5e380b8f3c 100644 --- a/Items/Weapons/Ranged/RubicoPrime.cs +++ b/Items/Weapons/Ranged/RubicoPrime.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 2601; + item.damage = 1425; item.ranged = true; item.knockBack = 10f; item.useTime = 30; diff --git a/Items/Weapons/Ranged/SDFMG.cs b/Items/Weapons/Ranged/SDFMG.cs index 70b39f519c..b013a880a3 100644 --- a/Items/Weapons/Ranged/SDFMG.cs +++ b/Items/Weapons/Ranged/SDFMG.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 200; + item.damage = 112; item.ranged = true; item.width = 74; item.height = 34; @@ -46,8 +46,8 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - float SpeedX = speedX + (float)Main.rand.Next(-5, 6) * 0.05f; - float SpeedY = speedY + (float)Main.rand.Next(-5, 6) * 0.05f; + float SpeedX = speedX + Main.rand.Next(-5, 6) * 0.05f; + float SpeedY = speedY + Main.rand.Next(-5, 6) * 0.05f; if (Main.rand.NextBool(5)) { Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); diff --git a/Items/Weapons/Ranged/Scorpion.png b/Items/Weapons/Ranged/Scorpion.png index 2a1bab81e0..91088edf6e 100644 Binary files a/Items/Weapons/Ranged/Scorpion.png and b/Items/Weapons/Ranged/Scorpion.png differ diff --git a/Items/Weapons/Ranged/Skullmasher.cs b/Items/Weapons/Ranged/Skullmasher.cs index bda007d9d8..b3448abf32 100644 --- a/Items/Weapons/Ranged/Skullmasher.cs +++ b/Items/Weapons/Ranged/Skullmasher.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 2310; + item.damage = 924; item.ranged = true; item.width = 76; item.height = 30; @@ -44,13 +44,10 @@ namespace CalamityMod.Items.Weapons.Ranged { for (int index = 0; index < 5; ++index) { - float SpeedX = speedX + Main.rand.Next(-15, 16) * 0.05f; - float SpeedY = speedY + Main.rand.Next(-15, 16) * 0.05f; - if (type == ProjectileID.Bullet) Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI); else - Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); + Projectile.NewProjectile(position, new Vector2(speedX, speedY), (int)(damage * 1.3), damage, knockBack, player.whoAmI); } return false; } diff --git a/Items/Weapons/Ranged/SomaPrime.png b/Items/Weapons/Ranged/SomaPrime.png index f9728bdfc6..2c0f7cf58f 100644 Binary files a/Items/Weapons/Ranged/SomaPrime.png and b/Items/Weapons/Ranged/SomaPrime.png differ diff --git a/Items/Weapons/Ranged/StarfleetMK2.cs b/Items/Weapons/Ranged/StarfleetMK2.cs index 103940ae5c..454ea7b815 100644 --- a/Items/Weapons/Ranged/StarfleetMK2.cs +++ b/Items/Weapons/Ranged/StarfleetMK2.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 222; + item.damage = 100; item.knockBack = 15f; item.shootSpeed = 16f; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Ranged/ThePack.cs b/Items/Weapons/Ranged/ThePack.cs index 5809e39e40..d24bb763b6 100644 --- a/Items/Weapons/Ranged/ThePack.cs +++ b/Items/Weapons/Ranged/ThePack.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 2500; + item.damage = 1150; item.ranged = true; item.width = 96; item.height = 40; diff --git a/Items/Weapons/Ranged/Ultima.cs b/Items/Weapons/Ranged/Ultima.cs index 6fd7d7386a..e95360a825 100644 --- a/Items/Weapons/Ranged/Ultima.cs +++ b/Items/Weapons/Ranged/Ultima.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 119; + item.damage = 58; item.ranged = true; item.width = 44; item.height = 58; diff --git a/Items/Weapons/Rogue/CobaltKunai.png b/Items/Weapons/Rogue/CobaltKunai.png index 01aeb2d044..554ff1471f 100644 Binary files a/Items/Weapons/Rogue/CobaltKunai.png and b/Items/Weapons/Rogue/CobaltKunai.png differ diff --git a/Items/Weapons/Rogue/CursedDagger.png b/Items/Weapons/Rogue/CursedDagger.png index c63bd26a6f..d4da0bab1d 100644 Binary files a/Items/Weapons/Rogue/CursedDagger.png and b/Items/Weapons/Rogue/CursedDagger.png differ diff --git a/Items/Weapons/Rogue/EclipsesFall.cs b/Items/Weapons/Rogue/EclipsesFall.cs index 5f9cd2e011..14e29ad367 100644 --- a/Items/Weapons/Rogue/EclipsesFall.cs +++ b/Items/Weapons/Rogue/EclipsesFall.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { - item.damage = 1060; + item.damage = 424; item.knockBack = 3.5f; item.useAnimation = item.useTime = 21; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index 2f75b746f0..6d91a85a88 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 64; - item.damage = 467; + item.damage = 187; item.noMelee = true; item.noUseGraphic = true; item.useTime = 3; diff --git a/Items/Weapons/Rogue/FrostyFlare.png b/Items/Weapons/Rogue/FrostyFlare.png index 407de1a344..1d11db6d7f 100644 Binary files a/Items/Weapons/Rogue/FrostyFlare.png and b/Items/Weapons/Rogue/FrostyFlare.png differ diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index 25d65f6eba..0ef786ce65 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public class GodsParanoia : RogueWeapon { - private static int damage = 125; + private static int damage = 50; private static int knockBack = 5; public override void SetStaticDefaults() diff --git a/Items/Weapons/Rogue/Hypothermia.cs b/Items/Weapons/Rogue/Hypothermia.cs index fed388d321..cb4af3067d 100644 --- a/Items/Weapons/Rogue/Hypothermia.cs +++ b/Items/Weapons/Rogue/Hypothermia.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.value = Item.buyPrice(1, 80, 0, 0); item.rare = ItemRarityID.Red; - item.damage = 369; + item.damage = 148; item.useAnimation = 21; item.useTime = 3; item.reuseDelay = 1; diff --git a/Items/Weapons/Rogue/IceStar.cs b/Items/Weapons/Rogue/IceStar.cs index 6f47f853c4..7cc67de187 100644 --- a/Items/Weapons/Rogue/IceStar.cs +++ b/Items/Weapons/Rogue/IceStar.cs @@ -18,7 +18,6 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { - item.width = 62; item.damage = 45; item.noMelee = true; item.consumable = true; @@ -29,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.knockBack = 2.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.height = 62; + item.width = item.height = 66; item.maxStack = 999; item.value = Item.buyPrice(0, 0, 5, 0); item.rare = ItemRarityID.Pink; diff --git a/Items/Weapons/Rogue/IceStar.png b/Items/Weapons/Rogue/IceStar.png index cfeebe4f90..23f466e046 100644 Binary files a/Items/Weapons/Rogue/IceStar.png and b/Items/Weapons/Rogue/IceStar.png differ diff --git a/Items/Weapons/Rogue/Penumbra.cs b/Items/Weapons/Rogue/Penumbra.cs index c9dbd4dea0..0445786597 100644 --- a/Items/Weapons/Rogue/Penumbra.cs +++ b/Items/Weapons/Rogue/Penumbra.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.value = Item.buyPrice(1, 80, 0, 0); item.rare = ItemRarityID.Red; - item.damage = 1600; + item.damage = 640; item.useAnimation = 40; item.useTime = 40; item.knockBack = 8f; diff --git a/Items/Weapons/Rogue/TheSyringe.png b/Items/Weapons/Rogue/TheSyringe.png index 9eb9fc7d3b..00d39fd3ad 100644 Binary files a/Items/Weapons/Rogue/TheSyringe.png and b/Items/Weapons/Rogue/TheSyringe.png differ diff --git a/Items/Weapons/Rogue/ThrowingBrick.png b/Items/Weapons/Rogue/ThrowingBrick.png index 3790f358ac..0f749d88f0 100644 Binary files a/Items/Weapons/Rogue/ThrowingBrick.png and b/Items/Weapons/Rogue/ThrowingBrick.png differ diff --git a/Items/Weapons/Rogue/TitaniumShuriken.png b/Items/Weapons/Rogue/TitaniumShuriken.png index 91b3bddea8..3949871d04 100644 Binary files a/Items/Weapons/Rogue/TitaniumShuriken.png and b/Items/Weapons/Rogue/TitaniumShuriken.png differ diff --git a/Items/Weapons/Summon/BlightedEyeStaff.png b/Items/Weapons/Summon/BlightedEyeStaff.png index 7503c09f9d..4f19cd0ad8 100644 Binary files a/Items/Weapons/Summon/BlightedEyeStaff.png and b/Items/Weapons/Summon/BlightedEyeStaff.png differ diff --git a/Items/Weapons/Summon/CausticCroakerStaff.cs b/Items/Weapons/Summon/CausticCroakerStaff.cs index d353335a46..8814674728 100644 --- a/Items/Weapons/Summon/CausticCroakerStaff.cs +++ b/Items/Weapons/Summon/CausticCroakerStaff.cs @@ -19,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Summon { item.damage = 8; item.mana = 10; - item.width = 10; - item.height = 32; + item.width = 36; + item.height = 42; item.useTime = item.useAnimation = 35; item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; diff --git a/Items/Weapons/Summon/CausticCroakerStaff.png b/Items/Weapons/Summon/CausticCroakerStaff.png index 77d97c90da..0c1aa28176 100644 Binary files a/Items/Weapons/Summon/CausticCroakerStaff.png and b/Items/Weapons/Summon/CausticCroakerStaff.png differ diff --git a/Items/Weapons/Summon/CorvidHarbringerStaff.cs b/Items/Weapons/Summon/CorvidHarbringerStaff.cs index ff1e16a7d1..a12e04ce19 100644 --- a/Items/Weapons/Summon/CorvidHarbringerStaff.cs +++ b/Items/Weapons/Summon/CorvidHarbringerStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.UseSound = SoundID.DD2_BetsyFlyingCircleAttack; item.summon = true; item.mana = 11; - item.damage = 300; + item.damage = 120; item.knockBack = 2f; item.autoReuse = true; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/CosmicViperEngine.cs b/Items/Weapons/Summon/CosmicViperEngine.cs index a92f6e0380..41288d656b 100644 --- a/Items/Weapons/Summon/CosmicViperEngine.cs +++ b/Items/Weapons/Summon/CosmicViperEngine.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 295; + item.damage = 118; item.mana = 10; item.width = 46; item.height = 28; diff --git a/Items/Weapons/Summon/DeepseaStaff.png b/Items/Weapons/Summon/DeepseaStaff.png index a2eb7a5345..47da2775bb 100644 Binary files a/Items/Weapons/Summon/DeepseaStaff.png and b/Items/Weapons/Summon/DeepseaStaff.png differ diff --git a/Items/Weapons/Summon/EndoHydraStaff.cs b/Items/Weapons/Summon/EndoHydraStaff.cs index d63b60436d..ea5071e4ef 100644 --- a/Items/Weapons/Summon/EndoHydraStaff.cs +++ b/Items/Weapons/Summon/EndoHydraStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.UseSound = SoundID.Item60; item.summon = true; item.mana = 25; - item.damage = 450; + item.damage = 180; item.knockBack = 3f; item.autoReuse = true; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/SarosPossession.cs b/Items/Weapons/Summon/SarosPossession.cs index bd21345409..204798affb 100644 --- a/Items/Weapons/Summon/SarosPossession.cs +++ b/Items/Weapons/Summon/SarosPossession.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Summon item.summon = true; item.mana = 100; - item.damage = 426; + item.damage = 170; item.knockBack = 4f; item.useTime = item.useAnimation = 10; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Typeless/StarStruckWater.png b/Items/Weapons/Typeless/StarStruckWater.png index 31498f0b6e..48dd4dc502 100644 Binary files a/Items/Weapons/Typeless/StarStruckWater.png and b/Items/Weapons/Typeless/StarStruckWater.png differ diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 760f94d098..2cb13bbad4 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -616,11 +616,11 @@ namespace CalamityMod.NPCs.Astral } else if (spawnInfo.player.InAstral(1) && NPC.downedAncientCultist && !CalamityWorld.downedStarGod) { - return 0.18f; + return 0.27f; } else if (spawnInfo.player.InAstral(1)) { - return 0.06f; + return 0.09f; } return 0f; } diff --git a/NPCs/Astral/Hadarian.cs b/NPCs/Astral/Hadarian.cs index 41fe166b1d..e581f4b28e 100644 --- a/NPCs/Astral/Hadarian.cs +++ b/NPCs/Astral/Hadarian.cs @@ -202,7 +202,7 @@ namespace CalamityMod.NPCs.Astral { DropHelper.DropItem(npc, ModContent.ItemType(), 2, 3); DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedAstrageldon, 2, 1, 2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedAstrageldon, 2, 2, 3); } } } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index a75377b486..01f69db41a 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -430,7 +430,11 @@ namespace CalamityMod.NPCs NPCID.PirateCrossbower, NPCID.PirateDeadeye, NPCID.PirateCaptain, + NPCID.SnowmanGangsta, + NPCID.SnowBalla, NPCID.DrManFly, + NPCID.Eyezor, + NPCID.Nailhead, NPCID.MartianWalker, NPCID.MartianTurret, NPCID.ElfCopter, @@ -446,8 +450,161 @@ namespace CalamityMod.NPCs NPCID.CultistBoss, NPCID.GolemHeadFree, NPCID.MoonLordFreeEye, + //NPCID.BloodSquid, NPCID.PlanterasHook }; + + // Reduce contact damage by 25% + public static List HardmodeNPCNerfList = new List + { + NPCID.AnglerFish, + NPCID.AngryTrapper, + NPCID.Arapaima, + NPCID.BlackRecluse, + NPCID.BlackRecluseWall, + NPCID.BloodJelly, + NPCID.FungoFish, + NPCID.GreenJellyfish, + NPCID.Clinger, + NPCID.ArmoredSkeleton, + NPCID.ArmoredViking, + NPCID.Mummy, + NPCID.DarkMummy, + NPCID.LightMummy, + NPCID.BloodFeeder, + NPCID.DesertBeast, + NPCID.ChaosElemental, + //NPCID.BloodMummy, + NPCID.CorruptSlime, + NPCID.Slimeling, + NPCID.Corruptor, + NPCID.Crimslime, + NPCID.BigCrimslime, + NPCID.LittleCrimslime, + NPCID.CrimsonAxe, + NPCID.CursedHammer, + NPCID.Derpling, + NPCID.Herpling, + NPCID.DiggerHead, + NPCID.DiggerBody, + NPCID.DiggerTail, + NPCID.DesertGhoul, + NPCID.DesertGhoulCorruption, + NPCID.DesertGhoulCrimson, + NPCID.DesertGhoulHallow, + NPCID.DuneSplicerHead, + NPCID.DuneSplicerBody, + NPCID.DuneSplicerTail, + NPCID.EnchantedSword, + NPCID.FloatyGross, + NPCID.GiantBat, + NPCID.GiantFlyingFox, + NPCID.GiantFungiBulb, + NPCID.FungiSpore, + NPCID.GiantTortoise, + NPCID.IceTortoise, + NPCID.HoppinJack, + NPCID.Mimic, + NPCID.IchorSticker, + NPCID.IcyMerman, + NPCID.IlluminantBat, + NPCID.IlluminantSlime, + NPCID.JungleCreeper, + NPCID.JungleCreeperWall, + NPCID.DesertLamiaDark, + NPCID.DesertLamiaLight, + NPCID.BigMossHornet, + NPCID.GiantMossHornet, + NPCID.LittleMossHornet, + NPCID.MossHornet, + NPCID.TinyMossHornet, + NPCID.Moth, + NPCID.PigronCorruption, + NPCID.PigronCrimson, + NPCID.PigronHallow, + NPCID.Pixie, + NPCID.PossessedArmor, + //NPCID.RockGolem, + NPCID.DesertScorpionWalk, + NPCID.DesertScorpionWall, + NPCID.Slimer, + NPCID.Slimer2, + NPCID.ToxicSludge, + NPCID.Unicorn, + NPCID.WanderingEye, + NPCID.Werewolf, + NPCID.Wolf, + NPCID.SeekerHead, + NPCID.SeekerBody, + NPCID.SeekerTail, + NPCID.Wraith, + NPCID.ChatteringTeethBomb, + NPCID.Clown, + NPCID.AngryNimbus, + NPCID.IceGolem, + NPCID.RainbowSlime, + NPCID.SandShark, + NPCID.SandsharkCorrupt, + NPCID.SandsharkCrimson, + NPCID.SandsharkHallow, + NPCID.ShadowFlameApparition, + NPCID.Parrot, + NPCID.PirateCorsair, + NPCID.PirateDeckhand, + //NPCID.PiratesCurse, + NPCID.BlueArmoredBonesMace, + NPCID.BlueArmoredBonesSword, + NPCID.BoneLee, + NPCID.DungeonSpirit, + NPCID.FlyingSnake, + NPCID.HellArmoredBones, + NPCID.HellArmoredBonesSpikeShield, + NPCID.HellArmoredBonesSword, + NPCID.MisterStabby, + NPCID.SnowBalla, + NPCID.SnowmanGangsta, + NPCID.Butcher, + NPCID.CreatureFromTheDeep, + NPCID.DeadlySphere, + NPCID.Frankenstein, + NPCID.Fritz, + NPCID.Psycho, + NPCID.Reaper, + NPCID.SwampThing, + NPCID.ThePossessed, + NPCID.Vampire, + NPCID.VampireBat, + NPCID.HeadlessHorseman, + NPCID.Hellhound, + NPCID.Poltergeist, + NPCID.Scarecrow1, + NPCID.Scarecrow2, + NPCID.Scarecrow3, + NPCID.Scarecrow4, + NPCID.Scarecrow5, + NPCID.Scarecrow6, + NPCID.Scarecrow7, + NPCID.Scarecrow8, + NPCID.Scarecrow9, + NPCID.Scarecrow10, + NPCID.Splinterling, + NPCID.Flocko, + NPCID.GingerbreadMan, + NPCID.Krampus, + NPCID.Nutcracker, + NPCID.NutcrackerSpinning, + NPCID.PresentMimic, + NPCID.Yeti, + NPCID.ZombieElf, + NPCID.ZombieElfBeard, + NPCID.ZombieElfGirl + //NPCID.BloodEelHead, + //NPCID.BloodEelBody, + //NPCID.BloodEelTail, + //NPCID.HemogoblinShark, + //NPCID.WanderingEyeFish, + //NPCID.ZombieMerman, + }; #endregion #region Instance Per Entity @@ -1274,15 +1431,8 @@ namespace CalamityMod.NPCs // Fix Sharkron hitboxes if (npc.type == NPCID.Sharkron || npc.type == NPCID.Sharkron2) - { npc.width = npc.height = 36; - // Don't do damage for 42 frames after spawning in - npc.damage = npc.defDamage; - if (npc.alpha > 0) - npc.damage = 0; - } - // Make Core hitbox bigger if (npc.type == NPCID.MartianSaucerCore) { @@ -1320,7 +1470,7 @@ namespace CalamityMod.NPCs npc.lifeMax = (int)(npc.lifeMax * 0.1); } - if (npc.type >= NPCID.TombCrawlerHead && npc.type <= NPCID.TombCrawlerTail && !Main.hardMode) + if (npc.type >= NPCID.TombCrawlerHead && npc.type <= NPCID.TombCrawlerTail && !Main.hardMode) { npc.lifeMax = (int)(npc.lifeMax * 0.6); } @@ -1333,15 +1483,13 @@ namespace CalamityMod.NPCs npc.defDefense = npc.defense; } - if (Main.bloodMoon && NPC.downedMoonlord && !npc.boss && !npc.friendly && !npc.dontTakeDamage && npc.lifeMax <= 2000 && npc.damage > 0) - { - npc.lifeMax = (int)(npc.lifeMax * 3.5); - npc.damage += 100; - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } + if (Main.hardMode && HardmodeNPCNerfList.Contains(npc.type)) + { + npc.damage = (int)(npc.damage * 0.75); + npc.defDamage = npc.damage; + } - if (CalamityWorld.downedDoG) + if (CalamityWorld.downedDoG) { if (CalamityLists.pumpkinMoonBuffList.Contains(npc.type)) { @@ -1371,7 +1519,7 @@ namespace CalamityMod.NPCs if (CalamityLists.dungeonEnemyBuffList.Contains(npc.type)) { npc.lifeMax = (int)(npc.lifeMax * 2.5); - npc.damage += 90; + npc.damage += 30; npc.life = npc.lifeMax; npc.defDamage = npc.damage; } @@ -1817,12 +1965,13 @@ namespace CalamityMod.NPCs AITimer++; // Separate timer for aggression to avoid entering later phases too quickly - if (AIIncreasedAggressionTimer < (int)(KillTime * 1.25)) + int aggressionTimerCap = (int)(KillTime * 1.35); + if (AIIncreasedAggressionTimer < aggressionTimerCap) AIIncreasedAggressionTimer++; - } - // Increases aggression over time if the fight is taking too long - killTimeRatio_IncreasedAggression = 1f - (AIIncreasedAggressionTimer / (float)KillTime); + // Increases aggression over time if the fight is taking too long + killTimeRatio_IncreasedAggression = 1f - (AIIncreasedAggressionTimer / (float)aggressionTimerCap); + } if (npc.type == NPCID.TargetDummy || npc.type == NPCType()) { @@ -1834,7 +1983,11 @@ namespace CalamityMod.NPCs if (ZeroContactDamageNPCList.Contains(npc.type)) npc.damage = npc.defDamage = 0; - if (DestroyerIDs.Contains(npc.type) || EaterofWorldsIDs.Contains(npc.type)) + // Don't do damage for 42 frames after spawning in + if (npc.type == NPCID.Sharkron || npc.type == NPCID.Sharkron2) + npc.damage = npc.alpha > 0 ? 0 : npc.defDamage; + + if (DestroyerIDs.Contains(npc.type) || EaterofWorldsIDs.Contains(npc.type)) npc.buffImmune[BuffType()] = false; if (BossRushEvent.BossRushActive && !npc.friendly && !npc.townNPC) @@ -3000,19 +3153,6 @@ namespace CalamityMod.NPCs #region AI public override void AI(NPC npc) { - if (!CalamityWorld.spawnedHardBoss) - { - if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer || npc.type == NPCID.SkeletronPrime || - npc.type == NPCID.Plantera || npc.type == NPCType() || npc.type == NPCType() || - npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || - npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || - npc.type == NPCType() || npc.type == NPCID.DukeFishron || npc.type == NPCID.CultistBoss || npc.type == NPCID.Golem) - { - CalamityWorld.spawnedHardBoss = true; - CalamityNetcode.SyncWorld(); - } - } - if (CalamityWorld.revenge || BossRushEvent.BossRushActive) { bool configBossRushBoost = CalamityConfig.Instance.BossRushXerocCurse && BossRushEvent.BossRushActive; diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 4755452b7d..e96817c40d 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -500,8 +500,37 @@ namespace CalamityMod.NPCs CalamityUtils.DisplayLocalizedText(key5, messageColor5); } } + else if (npc.type == NPCID.RedDevil) + { + DropHelper.DropItemChance(npc, ItemID.FireFeather, 0.1f); + } + else if (npc.type == NPCID.Vampire || npc.type == NPCID.VampireBat) + { + DropHelper.DropItemChance(npc, ItemID.MoonStone, 0.15f); + } + else if (npc.type == NPCID.Werewolf) + { + DropHelper.DropItemChance(npc, ItemID.MoonCharm, 0.05f); + } + else if (npc.type == NPCID.Mimic) + { + float w = DropHelper.BagWeaponDropRateFloat; + DropHelper.DropEntireWeightedSet(npc, + DropHelper.WeightStack(ItemID.StarCloak, w), + DropHelper.WeightStack(ItemID.CrossNecklace, w), + DropHelper.WeightStack(ItemID.TitanGlove, w), + DropHelper.WeightStack(ItemID.DualHook, w), + DropHelper.WeightStack(ItemID.MagicDagger, w), + DropHelper.WeightStack(ItemID.Compass, w), + DropHelper.WeightStack(ItemID.PhilosophersStone, w) + ); + } + else if (npc.type == NPCID.Moth) + { + DropHelper.DropItem(npc, ItemID.ButterflyDust); + } - return true; + return true; } #endregion @@ -1095,7 +1124,7 @@ namespace CalamityMod.NPCs break; case NPCID.AngryTrapper: - DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.MotherSlime: @@ -1103,16 +1132,16 @@ namespace CalamityMod.NPCs case NPCID.Crimslime: case NPCID.BigCrimslime: case NPCID.LittleCrimslime: - DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 3 : 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.Derpling: - DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 3 : 4); break; case NPCID.SpikedJungleSlime: case NPCID.Arapaima: - DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 3 : 4); break; case NPCID.Reaper: @@ -1185,13 +1214,6 @@ namespace CalamityMod.NPCs #region Event Loot private void EventLoot(NPC npc, bool pumpkin, bool frost, bool eclipse) { - // Not really loot code, but NPCLoot is the only death hook - if (npc.boss && !CalamityWorld.downedBossAny) - { - CalamityWorld.downedBossAny = true; - CalamityNetcode.SyncWorld(); - } - // Nightmare Fuel, Endothermic Energy and Darksun Fragments if (!CalamityWorld.downedDoG) { diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 52e487609c..e0031ee9c4 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1202,6 +1202,7 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemID.Boomstick, NPC.downedQueenBee, price: Item.buyPrice(0, 20, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemID.TacticalShotgun, NPC.downedGolemBoss, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.SniperRifle, NPC.downedGolemBoss, Item.buyPrice(0, 25)); + SetShopItem(ref shop, ref nextSlot, ItemID.RifleScope, NPC.downedGolemBoss, Item.buyPrice(0, 25)); } if (type == NPCID.Stylist) @@ -1255,7 +1256,7 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); - SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(1)); + SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); SetShopItem(ref shop, ref nextSlot, ItemID.GoblinBattleStandard, price: Item.buyPrice(0, 1)); } diff --git a/NPCs/Crags/CultistAssassin.cs b/NPCs/Crags/CultistAssassin.cs index c2e7822ef8..517778560e 100644 --- a/NPCs/Crags/CultistAssassin.cs +++ b/NPCs/Crags/CultistAssassin.cs @@ -56,6 +56,9 @@ namespace CalamityMod.NPCs.Crags for (int k = 0; k < 20; k++) { Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CultistAssassinGores/CultistAssassin"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CultistAssassinGores/CultistAssassin2"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CultistAssassinGores/CultistAssassin3"), npc.scale); } } } diff --git a/NPCs/Crags/DespairStone.cs b/NPCs/Crags/DespairStone.cs index f0395882c6..aa43a3ece5 100644 --- a/NPCs/Crags/DespairStone.cs +++ b/NPCs/Crags/DespairStone.cs @@ -69,6 +69,8 @@ namespace CalamityMod.NPCs.Crags { Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, hitDirection, -1f, 0, default, 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DespairStoneGores/DespairStone"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DespairStoneGores/DespairStone2"), npc.scale); } } } diff --git a/NPCs/Crags/Scryllar.cs b/NPCs/Crags/Scryllar.cs index ac67aa64e9..1e809a08f7 100644 --- a/NPCs/Crags/Scryllar.cs +++ b/NPCs/Crags/Scryllar.cs @@ -271,6 +271,7 @@ namespace CalamityMod.NPCs.Crags { Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, hitDirection, -1f, 0, default, 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScryllarGores/Scryllar"), npc.scale); } } } diff --git a/NPCs/Crags/ScryllarRage.cs b/NPCs/Crags/ScryllarRage.cs index 6cdee7c669..5238c38d9c 100644 --- a/NPCs/Crags/ScryllarRage.cs +++ b/NPCs/Crags/ScryllarRage.cs @@ -271,6 +271,8 @@ namespace CalamityMod.NPCs.Crags { Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, hitDirection, -1f, 0, default, 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScryllarGores/ScryllarRage"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScryllarGores/ScryllarRage2"), npc.scale); } } } diff --git a/NPCs/Crags/SoulSlurper.cs b/NPCs/Crags/SoulSlurper.cs index 9f91939c72..24606d3903 100644 --- a/NPCs/Crags/SoulSlurper.cs +++ b/NPCs/Crags/SoulSlurper.cs @@ -288,10 +288,9 @@ namespace CalamityMod.NPCs.Crags } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper2"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper3"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SoulSlurperGores/SoulSlurper"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SoulSlurperGores/SoulSlurper2"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SoulSlurperGores/SoulSlurper3"), npc.scale); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 50; diff --git a/NPCs/NormalNPCs/ArmoredDiggerBody.png b/NPCs/NormalNPCs/ArmoredDiggerBody.png index 2b14139f8a..6f582bdb3e 100644 Binary files a/NPCs/NormalNPCs/ArmoredDiggerBody.png and b/NPCs/NormalNPCs/ArmoredDiggerBody.png differ diff --git a/NPCs/NormalNPCs/ArmoredDiggerHead.png b/NPCs/NormalNPCs/ArmoredDiggerHead.png index 8d80b2503d..ee6a1bdf46 100644 Binary files a/NPCs/NormalNPCs/ArmoredDiggerHead.png and b/NPCs/NormalNPCs/ArmoredDiggerHead.png differ diff --git a/NPCs/NormalNPCs/ArmoredDiggerTail.png b/NPCs/NormalNPCs/ArmoredDiggerTail.png index e73630eeab..ce25bd2ffe 100644 Binary files a/NPCs/NormalNPCs/ArmoredDiggerTail.png and b/NPCs/NormalNPCs/ArmoredDiggerTail.png differ diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index 7335cb94cd..907b26f985 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -290,6 +290,10 @@ namespace CalamityMod.NPCs.NormalNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 4, hitDirection, -1f, 0, default, 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EidiolistGores/Eidolist"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EidiolistGores/Eidolist2"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EidiolistGores/Eidolist3"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EidiolistGores/Eidolist4"), npc.scale); } } diff --git a/NPCs/NormalNPCs/StormlionCharger.cs b/NPCs/NormalNPCs/StormlionCharger.cs index 4e3b793486..25890ef067 100644 --- a/NPCs/NormalNPCs/StormlionCharger.cs +++ b/NPCs/NormalNPCs/StormlionCharger.cs @@ -44,6 +44,10 @@ namespace CalamityMod.NPCs.NormalNPCs { Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/StormlionGores/Stormlion"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/StormlionGores/Stormlion2"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/StormlionGores/Stormlion3"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/StormlionGores/Stormlion4"), npc.scale); } } diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.png b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.png index 3d288c7cdf..97db383bdf 100644 Binary files a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.png and b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.png differ diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index a118253085..2b5517ccbb 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -15,6 +15,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void SetStaticDefaults() { DisplayName.SetDefault("Plague Mine"); + Main.npcFrameCount[npc.type] = 4; } public override void SetDefaults() @@ -122,7 +123,17 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } } - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + public override void FindFrame(int frameHeight) + { + npc.frameCounter++; + if (npc.frameCounter % 6 == 5) + npc.frame.Y += frameHeight; + + if (npc.frame.Y / frameHeight >= Main.npcFrameCount[npc.type]) + npc.frame.Y = 0; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { SpriteEffects spriteEffects = SpriteEffects.None; if (npc.spriteDirection == 1) diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.png b/NPCs/PlaguebringerGoliath/PlagueMine.png index 722fb1b01b..8174e5ae94 100644 Binary files a/NPCs/PlaguebringerGoliath/PlagueMine.png and b/NPCs/PlaguebringerGoliath/PlagueMine.png differ diff --git a/NPCs/SupremeCalamitas/SCalWormHead.cs b/NPCs/SupremeCalamitas/SCalWormHead.cs index 12b5e043ec..0b9dfc8633 100644 --- a/NPCs/SupremeCalamitas/SCalWormHead.cs +++ b/NPCs/SupremeCalamitas/SCalWormHead.cs @@ -77,9 +77,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas { CalamityGlobalNPC.SCalWorm = npc.whoAmI; - // Target - if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) - npc.TargetClosest(true); + // Get a target + if (npc.target < 0 || npc.target == Main.maxPlayers || Main.player[npc.target].dead || !Main.player[npc.target].active) + npc.TargetClosest(); + + // Despawn safety, make sure to target another player if the current player target is too far away + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + npc.TargetClosest(); Player player = Main.player[npc.target]; diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index b5c7040ebe..c89054a12f 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -18,7 +18,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void SetStaticDefaults() { DisplayName.SetDefault("Soul Seeker"); - NPCID.Sets.TrailingMode[npc.type] = 1; + Main.npcFrameCount[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; } public override void SetDefaults() @@ -48,6 +49,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas timer = reader.ReadInt32(); } + public override void FindFrame(int frameHeight) + { + npc.frameCounter++; + if (npc.frameCounter % 5 == 4) + npc.frame.Y += frameHeight; + if (npc.frame.Y / frameHeight >= Main.npcFrameCount[npc.type]) + npc.frame.Y = 0; + } + public override bool PreAI() { NPC parent = Main.npc[CalamityGlobalNPC.SCal]; @@ -61,8 +71,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[1] = npc.ai[0]; start = false; } - npc.TargetClosest(true); - Vector2 direction = Main.player[npc.target].Center - npc.Center; + + // Get a target + if (npc.target < 0 || npc.target == Main.maxPlayers || Main.player[npc.target].dead || !Main.player[npc.target].active) + npc.TargetClosest(); + + // Despawn safety, make sure to target another player if the current player target is too far away + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + npc.TargetClosest(); + + Vector2 direction = Main.player[npc.target].Center - npc.Center; direction.Normalize(); direction *= 9f; npc.rotation = direction.ToRotation(); @@ -143,6 +161,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SoulSeekerSupremeGores/SupremeSoulSeeker"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SoulSeekerSupremeGores/SupremeSoulSeeker2"), npc.scale); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SoulSeekerSupremeGores/SupremeSoulSeeker3"), npc.scale); } } diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.png b/NPCs/SupremeCalamitas/SoulSeekerSupreme.png index 6de0d63977..d0ae0b4980 100644 Binary files a/NPCs/SupremeCalamitas/SoulSeekerSupreme.png and b/NPCs/SupremeCalamitas/SoulSeekerSupreme.png differ diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 4654032d99..e380298fe6 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -240,8 +240,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas Vector2 vectorCenter = npc.Center; // Get a target - if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) - npc.TargetClosest(true); + if (npc.target < 0 || npc.target == Main.maxPlayers || Main.player[npc.target].dead || !Main.player[npc.target].active) + npc.TargetClosest(); + + // Despawn safety, make sure to target another player if the current player target is too far away + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + npc.TargetClosest(); Player player = Main.player[npc.target]; @@ -1151,7 +1155,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.ai[2] >= 300f) { npc.ai[1] = -1f; - npc.TargetClosest(true); + npc.TargetClosest(); npc.netUpdate = true; } @@ -1279,7 +1283,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { npc.ai[3] += 1f; npc.ai[2] = 0f; - npc.target = 255; + npc.TargetClosest(); npc.rotation = num803; if (npc.ai[3] >= 2f) @@ -1344,9 +1348,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[2] += 1f; if (npc.ai[2] >= 480f) { - npc.TargetClosest(true); npc.ai[1] = -1f; - npc.target = 255; + npc.TargetClosest(); npc.netUpdate = true; } else @@ -1458,7 +1461,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.ai[2] >= 300f) { npc.ai[1] = -1f; - npc.TargetClosest(true); + npc.TargetClosest(); npc.netUpdate = true; } } @@ -1470,6 +1473,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; + npc.TargetClosest(); npc.netUpdate = true; } } @@ -1699,7 +1703,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.ai[2] >= 240f) { npc.ai[1] = -1f; - npc.TargetClosest(true); + npc.TargetClosest(); npc.netUpdate = true; } @@ -1822,7 +1826,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { npc.ai[3] += 1f; npc.ai[2] = 0f; - npc.target = 255; + npc.TargetClosest(); npc.rotation = num803; if (npc.ai[3] >= 1f) @@ -1887,9 +1891,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[2] += 1f; if (npc.ai[2] >= 300f) { - npc.TargetClosest(true); npc.ai[1] = -1f; - npc.target = 255; + npc.TargetClosest(); npc.netUpdate = true; } else @@ -2001,7 +2004,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.ai[2] >= 240f) { npc.ai[1] = -1f; - npc.TargetClosest(true); + npc.TargetClosest(); npc.netUpdate = true; } } diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index 28e8ad6502..a68d96fa7a 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -74,8 +74,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.netUpdate = true; return; } - npc.TargetClosest(true); - float num676 = 60f; + + // Get a target + if (npc.target < 0 || npc.target == Main.maxPlayers || Main.player[npc.target].dead || !Main.player[npc.target].active) + npc.TargetClosest(); + + // Despawn safety, make sure to target another player if the current player target is too far away + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + npc.TargetClosest(); + + float num676 = 60f; float num677 = 1.5f; // Reduce acceleration if target is holding a true melee weapon diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index d7192445e9..e85986887e 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -74,8 +74,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.netUpdate = true; return; } - npc.TargetClosest(true); - float num676 = 60f; + + // Get a target + if (npc.target < 0 || npc.target == Main.maxPlayers || Main.player[npc.target].dead || !Main.player[npc.target].active) + npc.TargetClosest(); + + // Despawn safety, make sure to target another player if the current player target is too far away + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + npc.TargetClosest(); + + float num676 = 60f; float num677 = 1.5f; // Reduce acceleration if target is holding a true melee weapon diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index cf54fc81e8..d43675d8bc 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -2024,7 +2024,7 @@ namespace CalamityMod.NPCs.Yharon } case 7: //fast charge { - Vector2 vector = secondPhasePhase == 4 ? Vector2.Normalize(targetData.Center + targetData.velocity * 20f - vectorCenter) : npc.DirectionTo(targetData.Center); + Vector2 vector = npc.DirectionTo(targetData.Center); npc.spriteDirection = (vector.X > 0f) ? 1 : -1; npc.rotation = vector.ToRotation(); diff --git a/Projectiles/Boss/BrimstoneWave.png b/Projectiles/Boss/BrimstoneWave.png index 27b1111121..cac79d9d96 100644 Binary files a/Projectiles/Boss/BrimstoneWave.png and b/Projectiles/Boss/BrimstoneWave.png differ diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 076120603d..504cb8398a 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -965,8 +965,17 @@ namespace CalamityMod.Projectiles Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - if (defDamage == 0) + if (defDamage == 0 && projectile.hostile) { + // Reduce Nail damage from Nailheads because they're stupid + if (projectile.type == ProjectileID.Nail && Main.expertMode) + projectile.damage /= 2; + + if ((CalamityLists.hardModeNerfList.Contains(projectile.type) && Main.hardMode && !CalamityPlayer.areThereAnyDamnBosses && !Main.snowMoon) || projectile.type == ProjectileID.JavelinHostile) + { + projectile.damage = (int)(projectile.damage * 0.65); + } + // Reduce mech boss projectile damage depending on the new ore progression changes if (!NPC.downedMechBossAny) { diff --git a/Projectiles/Magic/ArcticBearPawProj.cs b/Projectiles/Magic/ArcticBearPawProj.cs index 06f1f6b190..74d002bafa 100644 --- a/Projectiles/Magic/ArcticBearPawProj.cs +++ b/Projectiles/Magic/ArcticBearPawProj.cs @@ -10,8 +10,7 @@ namespace CalamityMod.Projectiles.Magic { public override void SetDefaults() { - projectile.width = 44; - projectile.height = 44; + projectile.width = projectile.height = 40; projectile.aiStyle = 1; aiType = ProjectileID.Bullet; projectile.friendly = true; diff --git a/Projectiles/Magic/ArcticBearPawProj.png b/Projectiles/Magic/ArcticBearPawProj.png index d2c9c04e1c..9214ad4c8e 100644 Binary files a/Projectiles/Magic/ArcticBearPawProj.png and b/Projectiles/Magic/ArcticBearPawProj.png differ diff --git a/Projectiles/Magic/Climax2.cs b/Projectiles/Magic/Climax2.cs index 1eedb8acfa..daa7fba67b 100644 --- a/Projectiles/Magic/Climax2.cs +++ b/Projectiles/Magic/Climax2.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Magic } } - CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 8f, 4f, 2, ModContent.ProjectileType(), 1D, true); + CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 8f, 8f, 2, ModContent.ProjectileType(), 1D, true); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Magic/ClimaxProj.cs b/Projectiles/Magic/ClimaxProj.cs index fc81a69681..c97f29aa78 100644 --- a/Projectiles/Magic/ClimaxProj.cs +++ b/Projectiles/Magic/ClimaxProj.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Magic } } - if (projectile.timeLeft % 2 == projectile.ai[0]) + if (projectile.timeLeft % 4 == projectile.ai[0]) CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 400f, 8f, 4f, 2, ModContent.ProjectileType(), 1D, true); } diff --git a/Projectiles/Magic/FlameBeamTip.png b/Projectiles/Magic/FlameBeamTip.png index d5a672aac7..129d223259 100644 Binary files a/Projectiles/Magic/FlameBeamTip.png and b/Projectiles/Magic/FlameBeamTip.png differ diff --git a/Projectiles/Magic/FlameBeamTip2.cs b/Projectiles/Magic/FlameBeamTip2.cs index 5c67f54258..06476ad3d5 100644 --- a/Projectiles/Magic/FlameBeamTip2.cs +++ b/Projectiles/Magic/FlameBeamTip2.cs @@ -13,8 +13,7 @@ namespace CalamityMod.Projectiles.Magic public override void SetDefaults() { - projectile.width = 32; - projectile.height = 32; + projectile.width = projectile.height = 40; projectile.aiStyle = 4; projectile.friendly = true; projectile.alpha = 255; diff --git a/Projectiles/Magic/FlameBeamTip2.png b/Projectiles/Magic/FlameBeamTip2.png index d5a672aac7..fa52bec9ea 100644 Binary files a/Projectiles/Magic/FlameBeamTip2.png and b/Projectiles/Magic/FlameBeamTip2.png differ diff --git a/Projectiles/Magic/PurgeProj.cs b/Projectiles/Magic/PurgeProj.cs index 1e268cd050..f6357b097f 100644 --- a/Projectiles/Magic/PurgeProj.cs +++ b/Projectiles/Magic/PurgeProj.cs @@ -8,11 +8,10 @@ namespace CalamityMod.Projectiles.Magic { public class PurgeProj : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Magic/Purge"; - public override void SetStaticDefaults() { DisplayName.SetDefault("Purge"); + Main.projFrames[projectile.type] = 4; } public override void SetDefaults() @@ -62,6 +61,7 @@ namespace CalamityMod.Projectiles.Magic { Main.PlaySound(SoundID.Item91, projectile.position); } + projectile.frame = (projectile.frame + 1) % Main.projFrames[projectile.type]; } if (projectile.ai[1] == 1f && projectile.ai[0] != 1f) { @@ -121,11 +121,8 @@ namespace CalamityMod.Projectiles.Magic } } } - projectile.rotation = projectile.velocity.ToRotation(); - Vector2 displayOffset = new Vector2(12f, 0f).RotatedBy(projectile.rotation); - projectile.Center = player.RotatedRelativePoint(player.MountedCenter, true) + displayOffset; - if (projectile.spriteDirection == -1) - projectile.rotation += MathHelper.Pi; + projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; + projectile.Center = player.RotatedRelativePoint(player.MountedCenter, true) + Vector2.UnitX * 8f; projectile.spriteDirection = projectile.direction; projectile.timeLeft = 2; player.ChangeDir(projectile.direction); diff --git a/Projectiles/Magic/PurgeProj.png b/Projectiles/Magic/PurgeProj.png new file mode 100644 index 0000000000..6d8a7333c5 Binary files /dev/null and b/Projectiles/Magic/PurgeProj.png differ diff --git a/Projectiles/Magic/T1000Proj.cs b/Projectiles/Magic/T1000Proj.cs index b8c4f6c819..aec9a410c4 100644 --- a/Projectiles/Magic/T1000Proj.cs +++ b/Projectiles/Magic/T1000Proj.cs @@ -8,11 +8,10 @@ namespace CalamityMod.Projectiles.Magic { public class T1000Proj : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Magic/T1000"; - public override void SetStaticDefaults() { DisplayName.SetDefault("T1000"); + Main.projFrames[projectile.type] = 8; } public override void SetDefaults() @@ -62,6 +61,7 @@ namespace CalamityMod.Projectiles.Magic { Main.PlaySound(SoundID.Item91, projectile.position); } + projectile.frame = (projectile.frame + 1) % Main.projFrames[projectile.type]; } if (projectile.ai[1] == 1f && projectile.ai[0] != 1f) { @@ -83,26 +83,17 @@ namespace CalamityMod.Projectiles.Magic if (flag2) { float speed = player.ActiveItem().shootSpeed * projectile.scale; - Vector2 spawnPos = playerPos; - Vector2 direction = Main.screenPosition + new Vector2((float)Main.mouseX, (float)Main.mouseY) - spawnPos; - if (player.gravDir == -1f) - { - direction.Y = (float)(Main.screenHeight - Main.mouseY) + Main.screenPosition.Y - spawnPos.Y; - } - Vector2 velocity = Vector2.Normalize(direction); - if (float.IsNaN(velocity.X) || float.IsNaN(velocity.Y)) - { - velocity = -Vector2.UnitY; - } - velocity *= speed; + Vector2 spawnPos = playerPos + projectile.velocity * 0.75f; + Vector2 velocity = (Main.MouseWorld - projectile.Center).SafeNormalize(-Vector2.UnitY) * speed; + if (projectile.WithinRange(Main.MouseWorld, 50f)) + velocity = projectile.velocity; if (velocity.X != projectile.velocity.X || velocity.Y != projectile.velocity.Y) - { projectile.netUpdate = true; - } + projectile.velocity = velocity; int projType = ModContent.ProjectileType(); float velocityMult = 14f; - float randNum = 7f; + float randNum = 4f; for (int j = 0; j < 4; j++) { spawnPos += new Vector2(Main.rand.NextFloat(-randNum, randNum), Main.rand.NextFloat(-randNum, randNum)); @@ -121,18 +112,15 @@ namespace CalamityMod.Projectiles.Magic } } } - projectile.rotation = projectile.velocity.ToRotation(); - Vector2 displayOffset = new Vector2(15f, -3f * projectile.direction).RotatedBy(projectile.rotation); - projectile.Center = player.RotatedRelativePoint(player.MountedCenter, true) + displayOffset; - if (projectile.spriteDirection == -1) - projectile.rotation += MathHelper.Pi; + projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; + projectile.Center = player.RotatedRelativePoint(player.MountedCenter, true) + projectile.velocity.SafeNormalize(Vector2.UnitX * player.direction) * 6f; projectile.spriteDirection = projectile.direction; projectile.timeLeft = 2; player.ChangeDir(projectile.direction); player.heldProj = projectile.whoAmI; player.itemTime = 2; player.itemAnimation = 2; - player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); + player.itemRotation = (projectile.velocity * projectile.direction).ToRotation(); } public override bool CanDamage() => false; diff --git a/Projectiles/Magic/T1000Proj.png b/Projectiles/Magic/T1000Proj.png new file mode 100644 index 0000000000..eab34e41f5 Binary files /dev/null and b/Projectiles/Magic/T1000Proj.png differ diff --git a/Projectiles/Melee/BurningMeteor.cs b/Projectiles/Melee/BurningMeteor.cs index 409f95b045..2a355713cb 100644 --- a/Projectiles/Melee/BurningMeteor.cs +++ b/Projectiles/Melee/BurningMeteor.cs @@ -26,6 +26,7 @@ namespace CalamityMod.Projectiles.Melee projectile.melee = true; projectile.tileCollide = false; projectile.penetrate = 1; + projectile.extraUpdates = 2; projectile.timeLeft = 180; projectile.ignoreWater = true; } @@ -74,32 +75,11 @@ namespace CalamityMod.Projectiles.Melee projectile.alpha = num58; } projectile.rotation = projectile.velocity.ToRotation() - 1.57079637f; - if (Main.rand.NextBool(36)) - { - Vector2 value3 = Vector2.UnitX.RotatedByRandom(1.5707963705062866).RotatedBy((double)projectile.velocity.ToRotation(), default); - int num59 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); - Main.dust[num59].velocity = value3 * 0.66f; - Main.dust[num59].position = projectile.Center + value3 * 12f; - } - if (projectile.ai[1] == 1f) - { - projectile.light = 0.9f; - if (Main.rand.NextBool(30)) - { - Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); - } - if (Main.rand.NextBool(60)) - { - Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, projectile.velocity.X * 1.5f, projectile.velocity.Y * 1.5f, 150, default, 2f); - } - } - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0f / 255f); } public override void Kill(int timeLeft) { - Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); - for (int k = 0; k < 10; k++) + for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, 0f, 0f); } diff --git a/Projectiles/Melee/JudgementBlah.cs b/Projectiles/Melee/JudgementBlah.cs index ee36a00ec2..635a399bfe 100644 --- a/Projectiles/Melee/JudgementBlah.cs +++ b/Projectiles/Melee/JudgementBlah.cs @@ -76,12 +76,8 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 1; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 6f), (float)(Math.Cos(offsetAngle) * 6f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 6f), (float)(-Math.Cos(offsetAngle) * 6f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[projectile1].velocity.X *= 0.1f; - Main.projectile[projectile1].velocity.Y *= 0.1f; - Main.projectile[projectile2].velocity.X *= 0.1f; - Main.projectile[projectile2].velocity.Y *= 0.1f; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 0.6f), (float)(Math.Cos(offsetAngle) * 0.6f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 0.6f), (float)(-Math.Cos(offsetAngle) * 0.6f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); } } whiteLightTimer = 5; diff --git a/Projectiles/Melee/ScourgeoftheCosmosProj.cs b/Projectiles/Melee/ScourgeoftheCosmosProj.cs index b2962cd7e1..c691f9968c 100644 --- a/Projectiles/Melee/ScourgeoftheCosmosProj.cs +++ b/Projectiles/Melee/ScourgeoftheCosmosProj.cs @@ -20,8 +20,7 @@ namespace CalamityMod.Projectiles.Melee public override void SetDefaults() { - projectile.width = 14; - projectile.height = 14; + projectile.width = projectile.height = 36; projectile.alpha = 255; projectile.friendly = true; projectile.melee = true; diff --git a/Projectiles/Melee/ScourgeoftheCosmosProj.png b/Projectiles/Melee/ScourgeoftheCosmosProj.png index 2bfdfe1cbf..64425c7f0f 100644 Binary files a/Projectiles/Melee/ScourgeoftheCosmosProj.png and b/Projectiles/Melee/ScourgeoftheCosmosProj.png differ diff --git a/Projectiles/Melee/WhiteBoltAura.cs b/Projectiles/Melee/WhiteBoltAura.cs index 1229205248..9425aa48c1 100644 --- a/Projectiles/Melee/WhiteBoltAura.cs +++ b/Projectiles/Melee/WhiteBoltAura.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee else { projectile.ai[0] += 1f; - if (projectile.ai[0] > 6f) + if (projectile.ai[0] > 12f) { projectile.ai[0] = 0f; if (projectile.owner == Main.myPlayer) diff --git a/Projectiles/Melee/WhiteBoltAuraBlah.cs b/Projectiles/Melee/WhiteBoltAuraBlah.cs index 415b7dc5da..0185ccf490 100644 --- a/Projectiles/Melee/WhiteBoltAuraBlah.cs +++ b/Projectiles/Melee/WhiteBoltAuraBlah.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee else { projectile.ai[0] += 1f; - if (projectile.ai[0] > 6f) + if (projectile.ai[0] > 12f) { projectile.ai[0] = 0f; if (projectile.owner == Main.myPlayer) diff --git a/Projectiles/Ranged/BeeRPG.png b/Projectiles/Ranged/BeeRPG.png index 4a173a9e96..8caad050aa 100644 Binary files a/Projectiles/Ranged/BeeRPG.png and b/Projectiles/Ranged/BeeRPG.png differ diff --git a/Projectiles/Ranged/BigNuke.cs b/Projectiles/Ranged/BigNuke.cs index 9b21be1cf3..f94b3310c8 100644 --- a/Projectiles/Ranged/BigNuke.cs +++ b/Projectiles/Ranged/BigNuke.cs @@ -1,5 +1,4 @@ using Microsoft.Xna.Framework; -using System; using Terraria; using Terraria.ModLoader; using Terraria.ID; @@ -16,8 +15,7 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 14; - projectile.height = 14; + projectile.width = projectile.height = 16; projectile.friendly = true; projectile.penetrate = 1; projectile.timeLeft = 95; diff --git a/Projectiles/Ranged/BigNuke.png b/Projectiles/Ranged/BigNuke.png index 640914a5c4..0d505af3d7 100644 Binary files a/Projectiles/Ranged/BigNuke.png and b/Projectiles/Ranged/BigNuke.png differ diff --git a/Projectiles/Ranged/Chicken.cs b/Projectiles/Ranged/Chicken.cs index c5d4f7e83f..6c2ece7e7f 100644 --- a/Projectiles/Ranged/Chicken.cs +++ b/Projectiles/Ranged/Chicken.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); } Main.PlaySound(SoundID.Item14, (int)projectile.Center.X, (int)projectile.Center.Y); for (int num621 = 0; num621 < 40; num621++) diff --git a/Projectiles/Ranged/EssenceFire.cs b/Projectiles/Ranged/EssenceFire.cs index 2a3803f775..b8ec097d7b 100644 --- a/Projectiles/Ranged/EssenceFire.cs +++ b/Projectiles/Ranged/EssenceFire.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.ranged = true; projectile.penetrate = -1; projectile.extraUpdates = 3; - projectile.timeLeft = 50; + projectile.timeLeft = 65; } public override void AI() @@ -33,10 +33,9 @@ namespace CalamityMod.Projectiles.Ranged projectile.scale *= 1.01f; } Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.35f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.45f / 255f); - if (projectile.timeLeft > 50) - { - projectile.timeLeft = 50; - } + if (projectile.timeLeft > 65) + projectile.timeLeft = 65; + if (projectile.ai[0] > 5f) { float num296 = 1f; @@ -86,7 +85,7 @@ namespace CalamityMod.Projectiles.Ranged { projectile.ai[0] += 1f; } - projectile.rotation += 0.3f * (float)projectile.direction; + projectile.rotation += 0.3f * projectile.direction; } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) diff --git a/Projectiles/Ranged/GoliathRocket.png b/Projectiles/Ranged/GoliathRocket.png index 61874e912e..ff29869435 100644 Binary files a/Projectiles/Ranged/GoliathRocket.png and b/Projectiles/Ranged/GoliathRocket.png differ diff --git a/Projectiles/Ranged/HiveBomb.png b/Projectiles/Ranged/HiveBomb.png index 88c8031a84..49bbe2abdd 100644 Binary files a/Projectiles/Ranged/HiveBomb.png and b/Projectiles/Ranged/HiveBomb.png differ diff --git a/Projectiles/Ranged/HiveMissile.png b/Projectiles/Ranged/HiveMissile.png index eccb2b98dc..7ee7ecf5a7 100644 Binary files a/Projectiles/Ranged/HiveMissile.png and b/Projectiles/Ranged/HiveMissile.png differ diff --git a/Projectiles/Ranged/LeafArrow.png b/Projectiles/Ranged/LeafArrow.png index 13e97ea9b7..b8a4061769 100644 Binary files a/Projectiles/Ranged/LeafArrow.png and b/Projectiles/Ranged/LeafArrow.png differ diff --git a/Projectiles/Ranged/MagnaStrike.png b/Projectiles/Ranged/MagnaStrike.png index 4a8591fafa..31e2a916a5 100644 Binary files a/Projectiles/Ranged/MagnaStrike.png and b/Projectiles/Ranged/MagnaStrike.png differ diff --git a/Projectiles/Ranged/MiniRocket.png b/Projectiles/Ranged/MiniRocket.png index 640914a5c4..7c7d563a3c 100644 Binary files a/Projectiles/Ranged/MiniRocket.png and b/Projectiles/Ranged/MiniRocket.png differ diff --git a/Projectiles/Ranged/OpalStrike.cs b/Projectiles/Ranged/OpalStrike.cs index 5c8b0efd96..9ee6f6dac3 100644 --- a/Projectiles/Ranged/OpalStrike.cs +++ b/Projectiles/Ranged/OpalStrike.cs @@ -1,6 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged @@ -16,8 +17,7 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 26; - projectile.height = 26; + projectile.width = projectile.height = 20; projectile.friendly = true; projectile.scale = 0.5f; projectile.alpha = 200; @@ -29,15 +29,11 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { if (projectile.scale <= 1.5f) - { projectile.scale *= 1.01f; - } projectile.alpha -= 2; if (projectile.alpha == 0) - { projectile.alpha = 200; - } - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/OpalStrike.png b/Projectiles/Ranged/OpalStrike.png index 7b8bbf5551..e2e53c497a 100644 Binary files a/Projectiles/Ranged/OpalStrike.png and b/Projectiles/Ranged/OpalStrike.png differ diff --git a/Projectiles/Ranged/SporeBomb.png b/Projectiles/Ranged/SporeBomb.png index 2c89e060cf..bd6fe298a4 100644 Binary files a/Projectiles/Ranged/SporeBomb.png and b/Projectiles/Ranged/SporeBomb.png differ diff --git a/Projectiles/Ranged/Voidragon.png b/Projectiles/Ranged/Voidragon.png index 719cdc50c4..fb550a3cd6 100644 Binary files a/Projectiles/Ranged/Voidragon.png and b/Projectiles/Ranged/Voidragon.png differ diff --git a/Projectiles/Rogue/BrickFragment.png b/Projectiles/Rogue/BrickFragment.png index 8f15bd9a4c..36e20cc3a8 100644 Binary files a/Projectiles/Rogue/BrickFragment.png and b/Projectiles/Rogue/BrickFragment.png differ diff --git a/Projectiles/Rogue/SupernovaBoom.cs b/Projectiles/Rogue/SupernovaBoom.cs index 1045d2940b..0472537ec2 100644 --- a/Projectiles/Rogue/SupernovaBoom.cs +++ b/Projectiles/Rogue/SupernovaBoom.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Projectiles.Rogue { projectile.width = 408; projectile.height = 410; + projectile.scale = 2f; projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; diff --git a/Projectiles/Summon/AquaticStarMinion.cs b/Projectiles/Summon/AquaticStarMinion.cs index d2b77255e5..9febfeb7b3 100644 --- a/Projectiles/Summon/AquaticStarMinion.cs +++ b/Projectiles/Summon/AquaticStarMinion.cs @@ -1,7 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; -using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -19,8 +18,7 @@ namespace CalamityMod.Projectiles.Summon public override void SetDefaults() { - projectile.width = 30; - projectile.height = 30; + projectile.width = projectile.height = 32; projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; diff --git a/Projectiles/Summon/AquaticStarMinion.png b/Projectiles/Summon/AquaticStarMinion.png index aa1ec4c4c2..56606a7a18 100644 Binary files a/Projectiles/Summon/AquaticStarMinion.png and b/Projectiles/Summon/AquaticStarMinion.png differ diff --git a/Projectiles/Summon/Calamitamini.cs b/Projectiles/Summon/Calamitamini.cs index 9355116a00..d0db982c7f 100644 --- a/Projectiles/Summon/Calamitamini.cs +++ b/Projectiles/Summon/Calamitamini.cs @@ -3,10 +3,10 @@ using CalamityMod.Dusts; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.Projectiles.Summon { public class Calamitamini : ModProjectile @@ -26,8 +26,7 @@ namespace CalamityMod.Projectiles.Summon public override void SetDefaults() { - projectile.width = 30; - projectile.height = 30; + projectile.width = projectile.height = 36; projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; diff --git a/Projectiles/Summon/Calamitamini.png b/Projectiles/Summon/Calamitamini.png index b498a82ddf..35dd3f7fdc 100644 Binary files a/Projectiles/Summon/Calamitamini.png and b/Projectiles/Summon/Calamitamini.png differ diff --git a/Projectiles/Summon/Cataclymini.cs b/Projectiles/Summon/Cataclymini.cs index 8e44adf61a..377443b82f 100644 --- a/Projectiles/Summon/Cataclymini.cs +++ b/Projectiles/Summon/Cataclymini.cs @@ -21,8 +21,7 @@ namespace CalamityMod.Projectiles.Summon public override void SetDefaults() { - projectile.width = 40; - projectile.height = 20; + projectile.width = projectile.height = 32; projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; diff --git a/Projectiles/Summon/Cataclymini.png b/Projectiles/Summon/Cataclymini.png index dcc35d190b..925e50ce23 100644 Binary files a/Projectiles/Summon/Cataclymini.png and b/Projectiles/Summon/Cataclymini.png differ diff --git a/Projectiles/Summon/Catastromini.cs b/Projectiles/Summon/Catastromini.cs index 3fdb8ed79b..0eeec16ac4 100644 --- a/Projectiles/Summon/Catastromini.cs +++ b/Projectiles/Summon/Catastromini.cs @@ -21,8 +21,7 @@ namespace CalamityMod.Projectiles.Summon public override void SetDefaults() { - projectile.width = 30; - projectile.height = 30; + projectile.width = projectile.height = 36; projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; diff --git a/Projectiles/Summon/Catastromini.png b/Projectiles/Summon/Catastromini.png index 54b5691802..e10ed795f9 100644 Binary files a/Projectiles/Summon/Catastromini.png and b/Projectiles/Summon/Catastromini.png differ diff --git a/Projectiles/Typeless/BloodBomb.cs b/Projectiles/Typeless/BloodBomb.cs index f486b2b187..529ca96f00 100644 --- a/Projectiles/Typeless/BloodBomb.cs +++ b/Projectiles/Typeless/BloodBomb.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Typeless { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Typeless/GladiatorSword.cs b/Projectiles/Typeless/GladiatorSword.cs index 41ffcaa170..a52c2159c6 100644 --- a/Projectiles/Typeless/GladiatorSword.cs +++ b/Projectiles/Typeless/GladiatorSword.cs @@ -19,8 +19,7 @@ namespace CalamityMod.Projectiles.Typeless public override void SetDefaults() { - projectile.width = 22; - projectile.height = 22; + projectile.width = projectile.height = 22; projectile.ignoreWater = true; projectile.timeLeft = 18000; projectile.tileCollide = false; diff --git a/Projectiles/Typeless/GladiatorSword.png b/Projectiles/Typeless/GladiatorSword.png index c4f7aae317..a9f7f7f16f 100644 Binary files a/Projectiles/Typeless/GladiatorSword.png and b/Projectiles/Typeless/GladiatorSword.png differ diff --git a/Sounds/Custom/DemonshadeEnrage.cs b/Sounds/Custom/DemonshadeEnrage.cs new file mode 100644 index 0000000000..1880e41480 --- /dev/null +++ b/Sounds/Custom/DemonshadeEnrage.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Custom +{ + public class DemonshadeEnrage : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Custom/DemonshadeEnrage.ogg b/Sounds/Custom/DemonshadeEnrage.ogg new file mode 100644 index 0000000000..94ac80dfcb Binary files /dev/null and b/Sounds/Custom/DemonshadeEnrage.ogg differ diff --git a/Sounds/NPCHit/ProvidenceHurt.ogg b/Sounds/NPCHit/ProvidenceHurt.ogg index 167d3fbdf8..52299a9876 100644 Binary files a/Sounds/NPCHit/ProvidenceHurt.ogg and b/Sounds/NPCHit/ProvidenceHurt.ogg differ diff --git a/Tiles/Furniture/CraftingStations/VoidCondenser.png b/Tiles/Furniture/CraftingStations/VoidCondenser.png index e8cadda56d..d3c0bf9005 100644 Binary files a/Tiles/Furniture/CraftingStations/VoidCondenser.png and b/Tiles/Furniture/CraftingStations/VoidCondenser.png differ diff --git a/Tiles/FurnitureStratus/StratusBathtub.png b/Tiles/FurnitureStratus/StratusBathtub.png index 3080c1f29d..d609433d54 100644 Binary files a/Tiles/FurnitureStratus/StratusBathtub.png and b/Tiles/FurnitureStratus/StratusBathtub.png differ diff --git a/Tiles/FurnitureStratus/StratusBed.png b/Tiles/FurnitureStratus/StratusBed.png index d6bd407bd8..95c63f3e68 100644 Binary files a/Tiles/FurnitureStratus/StratusBed.png and b/Tiles/FurnitureStratus/StratusBed.png differ diff --git a/Tiles/FurnitureStratus/StratusBed_Highlight.png b/Tiles/FurnitureStratus/StratusBed_Highlight.png index f308584d1a..c321e91212 100644 Binary files a/Tiles/FurnitureStratus/StratusBed_Highlight.png and b/Tiles/FurnitureStratus/StratusBed_Highlight.png differ diff --git a/Tiles/FurnitureStratus/StratusBookcase.png b/Tiles/FurnitureStratus/StratusBookcase.png index b56cb0c050..416889540b 100644 Binary files a/Tiles/FurnitureStratus/StratusBookcase.png and b/Tiles/FurnitureStratus/StratusBookcase.png differ diff --git a/Tiles/FurnitureStratus/StratusBricks.png b/Tiles/FurnitureStratus/StratusBricks.png index eb240d4d74..e07358f81a 100644 Binary files a/Tiles/FurnitureStratus/StratusBricks.png and b/Tiles/FurnitureStratus/StratusBricks.png differ diff --git a/Tiles/FurnitureStratus/StratusBricksGlow.png b/Tiles/FurnitureStratus/StratusBricksGlow.png index 78f0155d0a..407f5588ff 100644 Binary files a/Tiles/FurnitureStratus/StratusBricksGlow.png and b/Tiles/FurnitureStratus/StratusBricksGlow.png differ diff --git a/Tiles/FurnitureStratus/StratusCandelabra.png b/Tiles/FurnitureStratus/StratusCandelabra.png index 4eef54ec35..90c9321e42 100644 Binary files a/Tiles/FurnitureStratus/StratusCandelabra.png and b/Tiles/FurnitureStratus/StratusCandelabra.png differ diff --git a/Tiles/FurnitureStratus/StratusCandle.cs b/Tiles/FurnitureStratus/StratusCandle.cs index 198416465c..8c379b99c0 100644 --- a/Tiles/FurnitureStratus/StratusCandle.cs +++ b/Tiles/FurnitureStratus/StratusCandle.cs @@ -1,4 +1,5 @@ using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -64,5 +65,10 @@ namespace CalamityMod.Tiles.FurnitureStratus CalamityUtils.RightClickBreak(i, j); return true; } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + CalamityUtils.DrawFlameEffect(ModContent.GetTexture("CalamityMod/Tiles/FurnitureStratus/StratusCandleFlame"), i, j, 0, -7); + } } } diff --git a/Tiles/FurnitureStratus/StratusCandle.png b/Tiles/FurnitureStratus/StratusCandle.png index 016be3600a..298249ba53 100644 Binary files a/Tiles/FurnitureStratus/StratusCandle.png and b/Tiles/FurnitureStratus/StratusCandle.png differ diff --git a/Tiles/FurnitureStratus/StratusCandleFlame.png b/Tiles/FurnitureStratus/StratusCandleFlame.png new file mode 100644 index 0000000000..ce7ffefb87 Binary files /dev/null and b/Tiles/FurnitureStratus/StratusCandleFlame.png differ diff --git a/Tiles/FurnitureStratus/StratusChair.png b/Tiles/FurnitureStratus/StratusChair.png index daab0b45b7..7d6ab412b2 100644 Binary files a/Tiles/FurnitureStratus/StratusChair.png and b/Tiles/FurnitureStratus/StratusChair.png differ diff --git a/Tiles/FurnitureStratus/StratusChandelier.png b/Tiles/FurnitureStratus/StratusChandelier.png index 8e8c42e889..bd9179cb7e 100644 Binary files a/Tiles/FurnitureStratus/StratusChandelier.png and b/Tiles/FurnitureStratus/StratusChandelier.png differ diff --git a/Tiles/FurnitureStratus/StratusChest.png b/Tiles/FurnitureStratus/StratusChest.png index c043568d65..4fc1586413 100644 Binary files a/Tiles/FurnitureStratus/StratusChest.png and b/Tiles/FurnitureStratus/StratusChest.png differ diff --git a/Tiles/FurnitureStratus/StratusChest_Highlight.png b/Tiles/FurnitureStratus/StratusChest_Highlight.png index 79a3f2c787..9ad1803341 100644 Binary files a/Tiles/FurnitureStratus/StratusChest_Highlight.png and b/Tiles/FurnitureStratus/StratusChest_Highlight.png differ diff --git a/Tiles/FurnitureStratus/StratusDoorClosed.png b/Tiles/FurnitureStratus/StratusDoorClosed.png index 18da6811a2..fe120ef595 100644 Binary files a/Tiles/FurnitureStratus/StratusDoorClosed.png and b/Tiles/FurnitureStratus/StratusDoorClosed.png differ diff --git a/Tiles/FurnitureStratus/StratusDoorClosed_Highlight.png b/Tiles/FurnitureStratus/StratusDoorClosed_Highlight.png index 68038eabfe..ee8db9686f 100644 Binary files a/Tiles/FurnitureStratus/StratusDoorClosed_Highlight.png and b/Tiles/FurnitureStratus/StratusDoorClosed_Highlight.png differ diff --git a/Tiles/FurnitureStratus/StratusDoorOpen.png b/Tiles/FurnitureStratus/StratusDoorOpen.png index e597cf3901..dba691dcfe 100644 Binary files a/Tiles/FurnitureStratus/StratusDoorOpen.png and b/Tiles/FurnitureStratus/StratusDoorOpen.png differ diff --git a/Tiles/FurnitureStratus/StratusDoorOpen_Highlight.png b/Tiles/FurnitureStratus/StratusDoorOpen_Highlight.png index 9a3cdf851f..77bc6c4310 100644 Binary files a/Tiles/FurnitureStratus/StratusDoorOpen_Highlight.png and b/Tiles/FurnitureStratus/StratusDoorOpen_Highlight.png differ diff --git a/Tiles/FurnitureStratus/StratusDresser.png b/Tiles/FurnitureStratus/StratusDresser.png index af7e828ab2..76fad9a27d 100644 Binary files a/Tiles/FurnitureStratus/StratusDresser.png and b/Tiles/FurnitureStratus/StratusDresser.png differ diff --git a/Tiles/FurnitureStratus/StratusDresser_Highlight.png b/Tiles/FurnitureStratus/StratusDresser_Highlight.png index b2628bf7e7..e68696703f 100644 Binary files a/Tiles/FurnitureStratus/StratusDresser_Highlight.png and b/Tiles/FurnitureStratus/StratusDresser_Highlight.png differ diff --git a/Tiles/FurnitureStratus/StratusLamp.png b/Tiles/FurnitureStratus/StratusLamp.png index 8a55ceaddb..1470268dd6 100644 Binary files a/Tiles/FurnitureStratus/StratusLamp.png and b/Tiles/FurnitureStratus/StratusLamp.png differ diff --git a/Tiles/FurnitureStratus/StratusLantern.png b/Tiles/FurnitureStratus/StratusLantern.png index efe32a2ab4..4874c0e6a8 100644 Binary files a/Tiles/FurnitureStratus/StratusLantern.png and b/Tiles/FurnitureStratus/StratusLantern.png differ diff --git a/Tiles/FurnitureStratus/StratusPiano.png b/Tiles/FurnitureStratus/StratusPiano.png index ba4bad7898..4568847188 100644 Binary files a/Tiles/FurnitureStratus/StratusPiano.png and b/Tiles/FurnitureStratus/StratusPiano.png differ diff --git a/Tiles/FurnitureStratus/StratusPlatform.png b/Tiles/FurnitureStratus/StratusPlatform.png index 0626ac8520..f29f30fbe1 100644 Binary files a/Tiles/FurnitureStratus/StratusPlatform.png and b/Tiles/FurnitureStratus/StratusPlatform.png differ diff --git a/Tiles/FurnitureStratus/StratusSink.png b/Tiles/FurnitureStratus/StratusSink.png index daefa6306d..3e146080e0 100644 Binary files a/Tiles/FurnitureStratus/StratusSink.png and b/Tiles/FurnitureStratus/StratusSink.png differ diff --git a/Tiles/FurnitureStratus/StratusSofa.png b/Tiles/FurnitureStratus/StratusSofa.png index 5c1faa7695..15039f29a6 100644 Binary files a/Tiles/FurnitureStratus/StratusSofa.png and b/Tiles/FurnitureStratus/StratusSofa.png differ diff --git a/Tiles/FurnitureStratus/StratusStarPlatform.cs b/Tiles/FurnitureStratus/StratusStarPlatform.cs new file mode 100644 index 0000000000..88229ac1bd --- /dev/null +++ b/Tiles/FurnitureStratus/StratusStarPlatform.cs @@ -0,0 +1,37 @@ +using CalamityMod.Items.Placeables.FurnitureStratus; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureStratus +{ + public class StratusStarPlatform : ModTile + { + public override void SetDefaults() + { + this.SetUpPlatform(true); + AddMapEntry(new Color(191, 142, 111)); + drop = ModContent.ItemType(); + disableSmartCursor = true; + adjTiles = new int[] { TileID.Platforms }; + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 130, 150), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 132, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void PostSetDefaults() + { + Main.tileNoSunLight[Type] = false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/FurnitureStratus/StratusStarPlatform.png b/Tiles/FurnitureStratus/StratusStarPlatform.png new file mode 100644 index 0000000000..e02c001581 Binary files /dev/null and b/Tiles/FurnitureStratus/StratusStarPlatform.png differ diff --git a/Tiles/FurnitureStratus/StratusTable.png b/Tiles/FurnitureStratus/StratusTable.png index d235023b2f..7037b54345 100644 Binary files a/Tiles/FurnitureStratus/StratusTable.png and b/Tiles/FurnitureStratus/StratusTable.png differ diff --git a/Tiles/FurnitureStratus/StratusWorkbench.png b/Tiles/FurnitureStratus/StratusWorkbench.png index fb4fa6dfdc..55a8708c8e 100644 Binary files a/Tiles/FurnitureStratus/StratusWorkbench.png and b/Tiles/FurnitureStratus/StratusWorkbench.png differ diff --git a/Tiles/FurnitureVoid/SmoothVoidstonePlatform.png b/Tiles/FurnitureVoid/SmoothVoidstonePlatform.png index ef16a3b01d..4c458166ac 100644 Binary files a/Tiles/FurnitureVoid/SmoothVoidstonePlatform.png and b/Tiles/FurnitureVoid/SmoothVoidstonePlatform.png differ diff --git a/Tiles/FurnitureVoid/VoidBath.png b/Tiles/FurnitureVoid/VoidBath.png index 8b89dcde75..3db3a88a2c 100644 Binary files a/Tiles/FurnitureVoid/VoidBath.png and b/Tiles/FurnitureVoid/VoidBath.png differ diff --git a/Tiles/FurnitureVoid/VoidBed.png b/Tiles/FurnitureVoid/VoidBed.png index 478a548d49..36a5bcbbfb 100644 Binary files a/Tiles/FurnitureVoid/VoidBed.png and b/Tiles/FurnitureVoid/VoidBed.png differ diff --git a/Tiles/FurnitureVoid/VoidBed_Highlight.png b/Tiles/FurnitureVoid/VoidBed_Highlight.png index eedaccbc59..fe54af2044 100644 Binary files a/Tiles/FurnitureVoid/VoidBed_Highlight.png and b/Tiles/FurnitureVoid/VoidBed_Highlight.png differ diff --git a/Tiles/FurnitureVoid/VoidBookcase.png b/Tiles/FurnitureVoid/VoidBookcase.png index fb64da53ee..583e659251 100644 Binary files a/Tiles/FurnitureVoid/VoidBookcase.png and b/Tiles/FurnitureVoid/VoidBookcase.png differ diff --git a/Tiles/FurnitureVoid/VoidCandelabra.png b/Tiles/FurnitureVoid/VoidCandelabra.png index a0adab10e7..adb9441ac9 100644 Binary files a/Tiles/FurnitureVoid/VoidCandelabra.png and b/Tiles/FurnitureVoid/VoidCandelabra.png differ diff --git a/Tiles/FurnitureVoid/VoidCandle.png b/Tiles/FurnitureVoid/VoidCandle.png index 3febb02854..32b109fca2 100644 Binary files a/Tiles/FurnitureVoid/VoidCandle.png and b/Tiles/FurnitureVoid/VoidCandle.png differ diff --git a/Tiles/FurnitureVoid/VoidChair.png b/Tiles/FurnitureVoid/VoidChair.png index 3ff7115400..3db9215362 100644 Binary files a/Tiles/FurnitureVoid/VoidChair.png and b/Tiles/FurnitureVoid/VoidChair.png differ diff --git a/Tiles/FurnitureVoid/VoidChandelier.png b/Tiles/FurnitureVoid/VoidChandelier.png index 6c64eac4e7..d10126bc38 100644 Binary files a/Tiles/FurnitureVoid/VoidChandelier.png and b/Tiles/FurnitureVoid/VoidChandelier.png differ diff --git a/Tiles/FurnitureVoid/VoidChest.png b/Tiles/FurnitureVoid/VoidChest.png index d1977498b7..9f0813f231 100644 Binary files a/Tiles/FurnitureVoid/VoidChest.png and b/Tiles/FurnitureVoid/VoidChest.png differ diff --git a/Tiles/FurnitureVoid/VoidChest_Highlight.png b/Tiles/FurnitureVoid/VoidChest_Highlight.png index 88b1a6264c..263deacc31 100644 Binary files a/Tiles/FurnitureVoid/VoidChest_Highlight.png and b/Tiles/FurnitureVoid/VoidChest_Highlight.png differ diff --git a/Tiles/FurnitureVoid/VoidClock.png b/Tiles/FurnitureVoid/VoidClock.png index 35ca8cdfdf..80483130b5 100644 Binary files a/Tiles/FurnitureVoid/VoidClock.png and b/Tiles/FurnitureVoid/VoidClock.png differ diff --git a/Tiles/FurnitureVoid/VoidClock_Highlight.png b/Tiles/FurnitureVoid/VoidClock_Highlight.png index 70251f1435..906dd98af6 100644 Binary files a/Tiles/FurnitureVoid/VoidClock_Highlight.png and b/Tiles/FurnitureVoid/VoidClock_Highlight.png differ diff --git a/Tiles/FurnitureVoid/VoidDoorClosed.png b/Tiles/FurnitureVoid/VoidDoorClosed.png index 67e4f6925d..ecb38a0280 100644 Binary files a/Tiles/FurnitureVoid/VoidDoorClosed.png and b/Tiles/FurnitureVoid/VoidDoorClosed.png differ diff --git a/Tiles/FurnitureVoid/VoidDoorClosed_Highlight.png b/Tiles/FurnitureVoid/VoidDoorClosed_Highlight.png index e392bbe097..207be55947 100644 Binary files a/Tiles/FurnitureVoid/VoidDoorClosed_Highlight.png and b/Tiles/FurnitureVoid/VoidDoorClosed_Highlight.png differ diff --git a/Tiles/FurnitureVoid/VoidDoorOpen.png b/Tiles/FurnitureVoid/VoidDoorOpen.png index b4598f2bfd..6e345688ea 100644 Binary files a/Tiles/FurnitureVoid/VoidDoorOpen.png and b/Tiles/FurnitureVoid/VoidDoorOpen.png differ diff --git a/Tiles/FurnitureVoid/VoidDoorOpen_Highlight.png b/Tiles/FurnitureVoid/VoidDoorOpen_Highlight.png index a1adcf98c1..0d39ed88cb 100644 Binary files a/Tiles/FurnitureVoid/VoidDoorOpen_Highlight.png and b/Tiles/FurnitureVoid/VoidDoorOpen_Highlight.png differ diff --git a/Tiles/FurnitureVoid/VoidDresser.png b/Tiles/FurnitureVoid/VoidDresser.png index 2b42cf3f14..a3ab988098 100644 Binary files a/Tiles/FurnitureVoid/VoidDresser.png and b/Tiles/FurnitureVoid/VoidDresser.png differ diff --git a/Tiles/FurnitureVoid/VoidDresser_Highlight.png b/Tiles/FurnitureVoid/VoidDresser_Highlight.png index e365224338..4cd60b6540 100644 Binary files a/Tiles/FurnitureVoid/VoidDresser_Highlight.png and b/Tiles/FurnitureVoid/VoidDresser_Highlight.png differ diff --git a/Tiles/FurnitureVoid/VoidLamp.png b/Tiles/FurnitureVoid/VoidLamp.png index c5e0cfa480..bef9097dfa 100644 Binary files a/Tiles/FurnitureVoid/VoidLamp.png and b/Tiles/FurnitureVoid/VoidLamp.png differ diff --git a/Tiles/FurnitureVoid/VoidLantern.png b/Tiles/FurnitureVoid/VoidLantern.png index 088769ea22..1f3a99faf9 100644 Binary files a/Tiles/FurnitureVoid/VoidLantern.png and b/Tiles/FurnitureVoid/VoidLantern.png differ diff --git a/Tiles/FurnitureVoid/VoidPiano.png b/Tiles/FurnitureVoid/VoidPiano.png index a4723c3804..ab83458354 100644 Binary files a/Tiles/FurnitureVoid/VoidPiano.png and b/Tiles/FurnitureVoid/VoidPiano.png differ diff --git a/Tiles/FurnitureVoid/VoidSink.png b/Tiles/FurnitureVoid/VoidSink.png index 2ebdae0850..6fa1881be5 100644 Binary files a/Tiles/FurnitureVoid/VoidSink.png and b/Tiles/FurnitureVoid/VoidSink.png differ diff --git a/Tiles/FurnitureVoid/VoidSofa.png b/Tiles/FurnitureVoid/VoidSofa.png index f352a378ff..c96ac58c62 100644 Binary files a/Tiles/FurnitureVoid/VoidSofa.png and b/Tiles/FurnitureVoid/VoidSofa.png differ diff --git a/Tiles/FurnitureVoid/VoidTable.png b/Tiles/FurnitureVoid/VoidTable.png index c7f028fc6c..220ca1f1c3 100644 Binary files a/Tiles/FurnitureVoid/VoidTable.png and b/Tiles/FurnitureVoid/VoidTable.png differ diff --git a/Tiles/FurnitureVoid/VoidWorkbench.png b/Tiles/FurnitureVoid/VoidWorkbench.png index 6f4b146096..01902e9b8f 100644 Binary files a/Tiles/FurnitureVoid/VoidWorkbench.png and b/Tiles/FurnitureVoid/VoidWorkbench.png differ diff --git a/Tiles/Ores/PerennialOre.png b/Tiles/Ores/PerennialOre.png index 6e61b27a38..9e8f6cd3e5 100644 Binary files a/Tiles/Ores/PerennialOre.png and b/Tiles/Ores/PerennialOre.png differ diff --git a/Tiles/PerennialBrick.png b/Tiles/PerennialBrick.png index 3cba54993c..e98f0d83c7 100644 Binary files a/Tiles/PerennialBrick.png and b/Tiles/PerennialBrick.png differ diff --git a/Utilities/NPCUtils.cs b/Utilities/NPCUtils.cs index 0a408daac7..a26a1f69c7 100644 --- a/Utilities/NPCUtils.cs +++ b/Utilities/NPCUtils.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.DataStructures; using CalamityMod.Events; using CalamityMod.NPCs.HiveMind; using CalamityMod.NPCs.Leviathan; @@ -455,6 +456,39 @@ namespace CalamityMod target.AddBuff(BuffID.OnFire, (int)(120 * multiplier)); } + /// + /// Summons a boss near a particular area depending on a specific spawn context. + /// + /// The relative spawn position. + /// The NPC type ID of the boss to spawn. + /// The context in which the direct spawn position is decided. + /// The optional 1st ai parameter for the boss. + /// The optional 2nd ai parameter for the boss. + /// The optional 3rd ai parameter for the boss. + /// The optional 4th ai parameter for the boss. + public static NPC SpawnBossBetter(Vector2 relativeSpawnPosition, int bossType, BaseBossSpawnContext spawnContext = null, float ai0 = 0f, float ai1 = 0f, float ai2 = 0f, float ai3 = 0f) + { + // Don't spawn entities client-side. + if (Main.netMode == NetmodeID.MultiplayerClient) + return null; + + // Fall back to an exact spawn position if nothing else is inputted. + if (spawnContext is null) + spawnContext = new ExactPositionBossSpawnContext(); + + Vector2 spawnPosition = spawnContext.DetermineSpawnPosition(relativeSpawnPosition); + int bossIndex = NPC.NewNPC((int)spawnPosition.X, (int)spawnPosition.Y, bossType, 0, ai0, ai1, ai2, ai3); + + // Broadcast a spawn message to indicate the summoning of the boss if it was successfully spawned. + if (Main.npc.IndexInRange(bossIndex)) + { + BossAwakenMessage(bossIndex); + return Main.npc[bossIndex]; + } + else + return null; + } + /// /// Spawns Old Duke on a player. Only works server side, and only works if the player owns a fishing bobber.
/// Old Duke will spawn above the fishing bobber if one is found. diff --git a/Walls/ChaoticBrickWall.png b/Walls/ChaoticBrickWall.png index 359d068c30..778942e540 100644 Binary files a/Walls/ChaoticBrickWall.png and b/Walls/ChaoticBrickWall.png differ diff --git a/Walls/PerennialBrickWall.png b/Walls/PerennialBrickWall.png index e7a9b74ad3..20ffd5394d 100644 Binary files a/Walls/PerennialBrickWall.png and b/Walls/PerennialBrickWall.png differ diff --git a/Walls/StratusWall.png b/Walls/StratusWall.png index bd1b9317f0..6445aa515b 100644 Binary files a/Walls/StratusWall.png and b/Walls/StratusWall.png differ diff --git a/World/CalamityWorld.cs b/World/CalamityWorld.cs index 7310eb4aa2..ab1f36a8d3 100644 --- a/World/CalamityWorld.cs +++ b/World/CalamityWorld.cs @@ -1,4 +1,5 @@ using CalamityMod.CalPlayer; +using CalamityMod.DataStructures; using CalamityMod.Events; using CalamityMod.NPCs; using CalamityMod.NPCs.Abyss; @@ -150,13 +151,11 @@ namespace CalamityMod.World public static bool wizardName = false; #region Downed Bools - public static bool downedBossAny = false; //Any boss public static bool downedDesertScourge = false; public static bool downedCrabulon = false; public static bool downedHiveMind = false; public static bool downedPerforator = false; public static bool downedSlimeGod = false; - public static bool spawnedHardBoss = false; //Hardmode boss spawned public static bool downedCryogen = false; public static bool downedAquaticScourge = false; public static bool downedBrimstoneElemental = false; @@ -278,8 +277,6 @@ namespace CalamityMod.World downedBumble = false; downedCrabulon = false; downedBetsy = false; - downedBossAny = false; - spawnedHardBoss = false; demonMode = false; onionMode = false; revenge = false; @@ -349,8 +346,6 @@ namespace CalamityMod.World downed.Add("betsy"); if (downedScavenger) downed.Add("scavenger"); - if (downedBossAny) - downed.Add("anyBoss"); if (demonMode) downed.Add("demonMode"); if (onionMode) @@ -361,8 +356,6 @@ namespace CalamityMod.World downed.Add("starGod"); if (downedAstrageldon) downed.Add("astrageldon"); - if (spawnedHardBoss) - downed.Add("hardBoss"); if (downedPolterghast) downed.Add("polterghast"); if (downedGSS) @@ -502,13 +495,11 @@ namespace CalamityMod.World downedCrabulon = downed.Contains("crabulon"); downedBetsy = downed.Contains("betsy"); downedScavenger = downed.Contains("scavenger"); - downedBossAny = downed.Contains("anyBoss"); demonMode = downed.Contains("demonMode"); onionMode = downed.Contains("onionMode"); revenge = downed.Contains("revenge"); downedStarGod = downed.Contains("starGod"); downedAstrageldon = downed.Contains("astrageldon"); - spawnedHardBoss = downed.Contains("hardBoss"); downedPolterghast = downed.Contains("polterghast"); downedGSS = downed.Contains("greatSandShark"); downedBoomerDuke = downed.Contains("oldDuke"); @@ -612,7 +603,7 @@ namespace CalamityMod.World _ = flags4[1]; _ = flags4[2]; _ = flags4[3]; - downedBossAny = flags4[4]; + _ = flags4[4]; demonMode = flags4[5]; onionMode = flags4[6]; revenge = flags4[7]; @@ -622,7 +613,7 @@ namespace CalamityMod.World spawnedBandit = flags5[1]; spawnedCirrus = flags5[2]; startAcidicDownpour = flags5[3]; - spawnedHardBoss = flags5[4]; + _ = flags5[4]; downedPolterghast = flags5[5]; death = flags5[6]; downedGSS = flags5[7]; @@ -723,7 +714,7 @@ namespace CalamityMod.World flags4[1] = false; flags4[2] = false; flags4[3] = false; - flags4[4] = downedBossAny; + flags4[4] = false; flags4[5] = demonMode; flags4[6] = onionMode; flags4[7] = revenge; @@ -733,7 +724,7 @@ namespace CalamityMod.World flags5[1] = spawnedBandit; flags5[2] = spawnedCirrus; flags5[3] = startAcidicDownpour; - flags5[4] = spawnedHardBoss; + flags5[4] = false; flags5[5] = downedPolterghast; flags5[6] = death; flags5[7] = downedGSS; @@ -844,7 +835,7 @@ namespace CalamityMod.World _ = flags4[1]; _ = flags4[2]; _ = flags4[3]; - downedBossAny = flags4[4]; + _ = flags4[4]; demonMode = flags4[5]; onionMode = flags4[6]; revenge = flags4[7]; @@ -854,7 +845,7 @@ namespace CalamityMod.World spawnedBandit = flags5[1]; spawnedCirrus = flags5[2]; startAcidicDownpour = flags5[3]; - spawnedHardBoss = flags5[4]; + _ = flags5[4]; downedPolterghast = flags5[5]; death = flags5[6]; downedGSS = flags5[7]; @@ -1495,17 +1486,12 @@ namespace CalamityMod.World if (Main.netMode != NetmodeID.MultiplayerClient) { if (DoGSecondStageCountdown == 21540) - { - NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); - } + CalamityUtils.SpawnBossBetter(player.Center, ModContent.NPCType(), new OffscreenBossSpawnContext()); if (DoGSecondStageCountdown == 14340) - { - NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); - } + CalamityUtils.SpawnBossBetter(player.Center, ModContent.NPCType(), new OffscreenBossSpawnContext()); if (DoGSecondStageCountdown == 7140) - { - NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); - } + CalamityUtils.SpawnBossBetter(player.Center, ModContent.NPCType(), new OffscreenBossSpawnContext()); + if (DoGSecondStageCountdown <= 60) { int freeNPCSlots = Main.maxNPCs - Main.npc.Take(Main.maxNPCs).Where(npc => npc.active).Count();