diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index e8ea10f07a..dd67d19fa2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -928,6 +928,11 @@ namespace CalamityMod.CalPlayer public bool spiritOrigin = false; public bool spiritOriginVanity = false; public int spiritOriginCritBoost = 0; +/// +/// The amount of bonus crit damage the player has. +/// At 0f, the player has regular crit damage. At 1f, the player has +100% crit damage. +/// + public float critDamage = 0; public bool darkSunRing = false; public bool crawCarapace = false; public bool baroclaw = false; @@ -2352,6 +2357,7 @@ namespace CalamityMod.CalPlayer spiritOriginCritBoost = 0; spiritOrigin = false; spiritOriginVanity = false; + critDamage = 0; astralStarRain = false; @@ -2849,6 +2855,7 @@ namespace CalamityMod.CalPlayer SulphWaterPoisoningLevel = 0f; holyInfernoFadeIntensity = 0f; spiritOriginCritBoost = 0; + critDamage = 0f; rage = 0f; adrenaline = 0f; raiderCritLifespan = 0; diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index a03b32ad2c..58ec5db97c 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -511,6 +511,7 @@ namespace CalamityMod.CalPlayer #region Modify Hit NPC public override void ModifyHitNPCWithItem(Item item, NPC target, ref NPC.HitModifiers modifiers) { + modifiers.CritDamage += critDamage; // All Calamity multipliers are added together to prevent insane exponential stacking float totalDamageMult = 1f; @@ -592,6 +593,8 @@ namespace CalamityMod.CalPlayer { if (proj.npcProj || proj.trap) return; + + modifiers.CritDamage += critDamage; // All Calamity multipliers are added together to prevent insane exponential stacking float totalDamageMult = 1f; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 36639943e5..2cd0dda0ae 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -455,6 +455,15 @@ namespace CalamityMod.CalPlayer IsFirstDashFrame = false; else IsFirstDashFrame = true; + + + //THIS MUST BE NEAR THE END OF PostUpdateMiscEffects SO ALL OTHER RUN SPEED IS DONE FIRST. DO NOT PUT ANY RUN SPEED AFTER THIS + + // Multiplies movement speed by 1.5x so that you don't feel like a snail in the early game. + // This applies to movement speed boosts as well as base speed to ensure they are actually worth their listed value compared to base speed + // Disabled while Overhaul is enabled, because Overhaul does very similar things to make movement more snappy + if (ExternalMods.overhaul is null && CalamityServerConfig.Instance.FasterBaseSpeed) + Player.moveSpeed *= BalancingConstants.DefaultMoveSpeedBoost; } #endregion @@ -3440,10 +3449,6 @@ namespace CalamityMod.CalPlayer --bloodflareCoreRemainingHealOverTime; } - // Multiplies base movement speed by 1.5x so that you don't feel like a snail in the early game - // Disabled while Overhaul is enabled, because Overhaul does very similar things to make movement more snappy - if (ExternalMods.overhaul is null && CalamityServerConfig.Instance.FasterBaseSpeed) - Player.maxRunSpeed *= BalancingConstants.DefaultMoveSpeedBoost; // Reduce how slow Chilled makes the player, because it's cancerous right now // The moveSpeed multiplier for Chilled in vanilla is 0.75, so we just multiply by 1.166667 here to make it 0.875, effectively cutting the reduction in half diff --git a/Items/Accessories/StatMeter.cs b/Items/Accessories/StatMeter.cs index 804eaeac5d..7bce076402 100644 --- a/Items/Accessories/StatMeter.cs +++ b/Items/Accessories/StatMeter.cs @@ -199,7 +199,7 @@ namespace CalamityMod.Items.Accessories } list.FindAndReplace("[ITEMS]", stats2); - float moveSpeedBoost = player.moveSpeed - 1f; + float moveSpeedBoost = CalamityServerConfig.Instance.FasterBaseSpeed ? (player.moveSpeed / BalancingConstants.DefaultMoveSpeedBoost) - 1f : player.moveSpeed - 1f; float wingFlightTime = player.wingTimeMax; // Does not use NormalizedLuck. Presents the player's luck exactly as it is used by the game engine. // NormalizedLuck is only used in one place: the Wizard's luck report. Which is entirely obsoleted by this Meter. diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 105195722a..f58dcb1ba3 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1286,10 +1286,16 @@ namespace CalamityMod.Items if (item.type == ItemID.ArcaneFlower) player.GetDamage() += 0.05f; + + if (item.type == ItemID.EyeoftheGolem) + { + player.Calamity().critDamage += 0.2f; + } if (item.type == ItemID.SniperScope) { - player.GetDamage() -= 0.03f; - player.GetCritChance() -= 3; + player.GetDamage() -= 0.1f; //Total 0% damage + player.GetCritChance() += 2; //Total 12% crit + player.Calamity().critDamage += 0.2f; } if (item.type == ItemID.MagicQuiver) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 3e7c1050ba..32dcee69c5 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -799,6 +799,11 @@ namespace CalamityMod.Items EditTooltipByNum(1, (line) => line.Text = EditedTooltip("EmpressFlightBooster2")); } + if (item.type == ItemID.EyeoftheGolem) + { + EditTooltipByNum(0, (line) => line.Text += AddedTooltip("EyeoftheGolem")); + } + // Rifle Scope visibility change if (item.type == ItemID.RifleScope) { @@ -811,6 +816,7 @@ namespace CalamityMod.Items { EditTooltipByNum(1, (line) => line.Text = EditedTooltip("SniperScope")); EditTooltipByNum(0, (line) => line.Text += AddedTooltip("RifleScope")); + EditTooltipByNum(1, (line) => line.Text += AddedTooltip("EyeoftheGolem")); } // Recon Scope visibility change diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 6def9ed011..fccabfaca5 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -93,6 +93,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Spider Prov", "StipulateVenus", "Triangle", + "TYESKI (Universe)", "Uncle Danny", "Xyk", "YuH", diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index a3751a23b3..571c8256a9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -589,9 +589,10 @@ Perdition: { DisplayName: Perdition Tooltip: ''' + {$CommonItemTooltip.Sentry} Summons a beacon at the position of the mouse When a target is manually selected via right click it releases torrents of souls from below onto the target - Requires 5 minion slots to summon and only one beacon may exist at a time + Requires one sentry slot to summon, and only one beacon may exist at a time ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson index 130ede50d9..b037db0068 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson @@ -7,6 +7,7 @@ DodgeInfo: ''' AddedTooltip: { + EyeoftheGolem: 20% increased critical strike damage TruffleWorm: ''' Summons Duke Fishron if used as bait in the Ocean @@ -199,7 +200,7 @@ EditedTooltip: { EmpressFlightBooster2: Increases movement and jump speed by 10% and acceleration by 1.25x RifleScope1: Increase view range for guns (Right click to zoom out) RifleScope2: The scope effect can be toggled with visibility - SniperScope: 7% increased ranged damage and critical strike chance + SniperScope: 12% increased ranged critical strike chance MagicQuiver: Increases arrow damage by 5% and greatly increases arrow speed MoltenQuiver1: Increases arrow damage by 7% and greatly increases arrow speed MoltenQuiver2: Lights wooden arrows ablaze and all arrows inflict Hellfire diff --git a/NPCs/SunkenSea/PrismaticGuppy.cs b/NPCs/SunkenSea/PrismaticGuppy.cs index 2834b8ab07..8858bb6811 100644 --- a/NPCs/SunkenSea/PrismaticGuppy.cs +++ b/NPCs/SunkenSea/PrismaticGuppy.cs @@ -440,7 +440,31 @@ namespace CalamityMod.NPCs.SunkenSea NPC.velocity.Y += 1; } - if (CurrentColor == (int)FishColor.Gold) + if (Main.rand.NextBool(50)) + { + int dustid = DustID.WhiteTorch; + switch (CurrentColor) + { + case 0: + dustid = DustID.IceTorch; + break; + case 1: + dustid = DustID.CoralTorch; + break; + case 2: + dustid = DustID.PinkTorch; + break; + case 4: + dustid = DustID.BoneTorch; + break; + } + Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, dustid, Scale: 1.5f); + dust.velocity = Vector2.Zero; + dust.noGravity = true; + dust.color *= 0.5f; + } + + if (CurrentColor == (int)FishColor.Gold) { NPC.rarity = 3; NPC.value = 100000; diff --git a/NPCs/SunkenSea/Sharkoon.cs b/NPCs/SunkenSea/Sharkoon.cs index 2645577fd6..eadf48f6e2 100644 --- a/NPCs/SunkenSea/Sharkoon.cs +++ b/NPCs/SunkenSea/Sharkoon.cs @@ -252,8 +252,10 @@ namespace CalamityMod.NPCs.SunkenSea if (!NPC.wet && !IsExploding) CurrentBehavior = OutsideWaterBehavior; - // Reset any squish that is done to the Sharkoon. + + // Reset any squish that is done to the Sharkoon, and clamps its upper limit to prevent it from becoming too tall if (ScaleSquish.Y > 1f) + ScaleSquish.Y = MathHelper.Clamp(ScaleSquish.Y, 1f, 1.5f); ScaleSquish.Y = Math.Max(1f, ScaleSquish.Y - 0.025f); } diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index dcab273bc2..c9d5212121 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -142,6 +142,7 @@ namespace CalamityMod.Projectiles { ProjectileID.ClusterFragmentsII, Do(IDStaticIFrames(15)) }, { ProjectileID.ClusterSnowmanRocketI, Do(LocalIFrames(15)) }, { ProjectileID.ClusterSnowmanRocketII, Do(LocalIFrames(15)) }, + { ProjectileID.DangerousSpider, Do( ExtraUpdatesExact(2), LocalIFrames(45)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. { ProjectileID.DD2SquireSonicBoom, Do(PiercingExact(3), DefaultIDStaticIFrames) }, // Flying Dragon { ProjectileID.EmeraldBolt, Do(NoPiercing) }, { ProjectileID.EmpressBlade, Do(LocalIFrames(30)) }, // Terraprisma @@ -169,6 +170,7 @@ namespace CalamityMod.Projectiles { ProjectileID.InfluxWaver, Do(ExtraUpdatesExact(1)) }, { ProjectileID.InfernoFriendlyBolt, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, { ProjectileID.InfernoFriendlyBlast, Do(ExtraUpdatesExact(2), DefaultIDStaticIFrames) }, + { ProjectileID.JumperSpider, Do( ExtraUpdatesExact(2), LocalIFrames(45)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. { ProjectileID.LaserDrill, Do(ArmorPenetrationDelta(+25), LocalIFrames(5)) }, { ProjectileID.LightDisc, Do(MaxUpdatesExact(3), DefaultIDStaticIFrames) }, { ProjectileID.LostSoulHostile, Do(TileCollide) }, // Ragged Caster @@ -215,6 +217,7 @@ namespace CalamityMod.Projectiles { ProjectileID.TrueNightsEdge, Do(PiercingExact(4)) }, { ProjectileID.VenomBullet, Do(PointBlank, ExtraUpdatesDelta(+2), DefaultIDStaticIFrames) }, { ProjectileID.VenomFang, Do(LocalIFrames(10)) }, + { ProjectileID.VenomSpider, Do( ExtraUpdatesExact(2), LocalIFrames(45)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. { ProjectileID.VortexDrill, standardDrillTweaks }, { ProjectileID.Wasp, Do(PiercingExact(2)) }, { ProjectileID.WeatherPainShot, Do(ExtraUpdatesExact(3), TimeLeftExact(1920)) }, diff --git a/Projectiles/Summon/PerditionBeacon.cs b/Projectiles/Summon/PerditionBeacon.cs index 505e9616ee..1f68488cbe 100644 --- a/Projectiles/Summon/PerditionBeacon.cs +++ b/Projectiles/Summon/PerditionBeacon.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; +using Terraria.ID; using Terraria.ModLoader; using Terraria.Utilities; @@ -15,16 +16,14 @@ namespace CalamityMod.Projectiles.Summon public override int AssociatedProjectileTypeID => ModContent.ProjectileType(); public override int AssociatedBuffTypeID => ModContent.BuffType(); public override ref bool AssociatedMinionBool => ref ModdedOwner.perditionBeacon; - public override float MinionSlots => 5f; - public ref float AttackTime => ref Projectile.ai[0]; public ref float AttackTimer => ref Projectile.ai[1]; public ref float DownwardCrossFade => ref Projectile.localAI[1]; public override void SetStaticDefaults() { - base.SetStaticDefaults(); Main.projFrames[Type] = 16; + ProjectileID.Sets.MinionTargettingFeature[Type] = true; } public override void SetDefaults() @@ -32,6 +31,10 @@ namespace CalamityMod.Projectiles.Summon base.SetDefaults(); Projectile.width = 48; Projectile.height = 90; + Projectile.minion = false; + Projectile.sentry = true; + Projectile.minionSlots = 0; + Projectile.timeLeft = Projectile.SentryLifeTime; } public override void SetOwnerTarget() @@ -111,6 +114,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnSpawn(IEntitySource source) { + Main.player[Projectile.owner].UpdateMaxTurrets(); // Release a burst of fire dust on spawn. if (Main.dedServ) return; diff --git a/Tiles/SunkenSea/Ambient/LongScarletSeagrass.cs b/Tiles/SunkenSea/Ambient/LongScarletSeagrass.cs index 22fd3f6af7..31659dbcdb 100644 --- a/Tiles/SunkenSea/Ambient/LongScarletSeagrass.cs +++ b/Tiles/SunkenSea/Ambient/LongScarletSeagrass.cs @@ -15,6 +15,7 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient { public override void SetStaticDefaults() { + AnimationFrameHeight = 50; Main.tileLighted[Type] = true; Main.tileCut[Type] = true; Main.tileSolid[Type] = false; @@ -56,5 +57,16 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient g *= brightness; b *= brightness; } + public override void AnimateTile(ref int frame, ref int frameCounter) + { + if (++frameCounter >= 12) + { + frameCounter = 0; + if (++frame >= 6) + { + frame = 0; + } + } + } } } diff --git a/Tiles/SunkenSea/Ambient/LongScarletSeagrass.png b/Tiles/SunkenSea/Ambient/LongScarletSeagrass.png index 2cef1eb725..dfbd21fca3 100644 Binary files a/Tiles/SunkenSea/Ambient/LongScarletSeagrass.png and b/Tiles/SunkenSea/Ambient/LongScarletSeagrass.png differ diff --git a/World/SunkenSea.cs b/World/SunkenSea.cs index f36f8899d5..aeccdd3c09 100644 --- a/World/SunkenSea.cs +++ b/World/SunkenSea.cs @@ -714,7 +714,7 @@ namespace CalamityMod.World float cavePerlinValueWalls = CalamityUtils.PerlinNoise2D(X / 600f, Y / 350f, 5, cavePerlinSeedWalls) + 0.5f + horizontalOffsetNoiseWalls; float cavePerlinValue2Walls = CalamityUtils.PerlinNoise2D(X / 600f, Y / 350f, 5, unchecked(cavePerlinSeedWalls - 1)) + 0.5f; float caveNoiseMapWalls = (cavePerlinValueWalls + cavePerlinValue2Walls) * 0.5f; - float caveCreationThresholdWalls = horizontalOffsetNoiseWalls * 3.5f + 0.235f; + float caveCreationThresholdWalls = horizontalOffsetNoiseWalls * 3.5f + 0.3f; if (caveNoiseMapWalls * caveNoiseMapWalls > caveCreationThresholdWalls) {