diff --git a/Backgrounds/SunkenSeaBurrowsBG.cs b/Backgrounds/SunkenSeaBurrowsBG.cs
index bff3bd212f..986d2134c2 100644
--- a/Backgrounds/SunkenSeaBurrowsBG.cs
+++ b/Backgrounds/SunkenSeaBurrowsBG.cs
@@ -5,11 +5,18 @@ using Microsoft.Xna.Framework.Graphics;
using System;
using ReLogic.Content;
using Terraria.ID;
+using CalamityMod.Graphics;
+using System.Reflection;
+using Terraria.Graphics.Shaders;
namespace CalamityMod.Backgrounds
{
public class SunkenSeaBurrowsBG : ModSystem
{
+ private static ManagedRenderTarget WaterDistortionTarget;
+
+ private static bool CurrentlyRendering { get; set; }
+
public override void Load()
{
if (Main.dedServ)
@@ -17,7 +24,10 @@ namespace CalamityMod.Backgrounds
return;
}
+ On_Main.CheckMonoliths += DrawToTarget;
On_Main.DrawBackgroundBlackFill += On_Main_DrawBackgroundBlackFill;
+
+ Main.QueueMainThreadAction(() => WaterDistortionTarget = new(true, ManagedRenderTarget.CreateScreenSizedTarget));
}
///
@@ -33,33 +43,80 @@ namespace CalamityMod.Backgrounds
{
if (!Main.dedServ && Main.LocalPlayer.InModBiome())
{
- for (int i = 0; i < Main.screenWidth / 16; i++)
+ int drawLimitX = Main.screenWidth / 16;
+ int drawLimitY = Main.screenHeight / 16;
+ Point drawPoint = (Main.screenPosition / 16).ToPoint();
+ for (int i = 0; i < drawLimitX; i++)
{
- for (int j = 0; j < Main.screenWidth / 16; j++)
+ for (int j = 0; j < drawLimitY; j++)
{
- Point pos = (Main.screenPosition / 16).ToPoint() + new Point(i, j);
-
+ Point pos = drawPoint + new Point(i, j);
if (Main.tile[pos.X, pos.Y].Slope != SlopeType.Solid)
- {
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.1f);
- }
}
}
}
}
+ private void DrawToTarget(On_Main.orig_CheckMonoliths orig)
+ {
+ if (Main.gameMenu)
+ {
+ orig();
+ return;
+ }
+
+ CurrentlyRendering = true;
+ WaterDistortionTarget.SwapTo();
+
+ // 13MAY2025: fryzahh: Note that when other Sunken Sea backgrounds are implemented they should use this same system.
+ // Leaving this here for other programmers, in case I don't get to doing this myself.
+ Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, CalamityUtils.BackgroundMatrix);
+
+ DrawBurrowsBG();
+
+ Main.spriteBatch.End();
+
+ Main.graphics.GraphicsDevice.SetRenderTarget(null);
+ CurrentlyRendering = false;
+
+ orig();
+ }
+
private void On_Main_DrawBackgroundBlackFill(On_Main.orig_DrawBackgroundBlackFill orig, Main self)
{
if (Main.gameMenu || Main.screenPosition.Y + Main.screenHeight < ((int)Main.worldSurface) * 16f)
{
orig(self);
-
return;
}
orig(self);
- DrawBurrowsBG();
+ // This won't render if the Wave Quality setting isn't turned off unfortunately, so don't bother running any of the shader
+ // rendering code if that setting is on.
+ if (Main.WaveQuality > 0 || !CalamityClientConfig.Instance.SunkenSeaBackgroundDistortion)
+ {
+ DrawBurrowsBG();
+ }
+ else
+ {
+ MiscShaderData distortionShader = GameShaders.Misc["CalamityMod:BasicTextureDistortion"];
+ Asset distortionTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Swirls");
+
+ // Apply a distortion shader to the Sunken Sea backgrounds to give them an underwater ripple-like effect.
+ Main.spriteBatch.End();
+ Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, distortionShader.Shader, CalamityUtils.BackgroundMatrix);
+
+ distortionShader.Shader.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly);
+ distortionShader.Shader.Parameters["distortionXSpeed"].SetValue(-0.012f);
+ distortionShader.Shader.Parameters["distortionYSpeed"].SetValue(0.02f);
+ distortionShader.Shader.Parameters["distortionStrength"].SetValue(0.035f);
+ distortionShader.Shader.Parameters["noiseScale"].SetValue(0.075f);
+ distortionShader.SetShaderTexture(distortionTexture);
+
+ Main.spriteBatch.Draw(WaterDistortionTarget.Target, new Rectangle(16, 16, Main.screenWidth, Main.screenHeight), Color.White);
+ }
}
public static float Transparency;
@@ -73,32 +130,29 @@ namespace CalamityMod.Backgrounds
Transparency += TransitionSpeed;
if (Transparency > 1f)
- {
Transparency = 1f;
- }
}
else
{
- //make transparency immediately go down so it doesnt look weird, since vanilla underground backgrounds dont have the fade-in effect this background has
+ // Make transparency immediately go down so it doesnt look weird, since vanilla underground backgrounds dont have the fade-in effect this background has.
Transparency -= 1f;
if (Transparency < 0f)
- {
Transparency = 0f;
- }
}
- //dont bother running any of the background drawing if the transparency is zero (meaning the background isnt actually active)
- //also do not run any of the background drawing if you have the vanilla background config option turned off
+ // Don't bother running any of the background drawing if the transparency is zero (meaning the background isnt actually active).
+ // Also do not run any of the background drawing if you have the vanilla background config option turned off.
if (Transparency > 0f && Main.BackgroundEnabled)
{
Vector2 vector = Main.screenPosition + new Vector2((Main.screenWidth >> 1), (Main.screenHeight >> 1));
float num = (Main.GameViewMatrix.Zoom.Y - 1f) * 0.5f * 200f;
float Scale = 1.5f;
+ float playerDrawPosition = ((Main.LocalPlayer.Center.Y / 16f) - 90) * 16f;
for (int Layers = 4; Layers >= 0; Layers--)
{
- //get each background texture
+ // Get each background texture.
Texture2D BGTexture = ModContent.Request("CalamityMod/Backgrounds/SunkenSeaBurrowsBG" + Layers).Value;
Vector2 vector2 = new Vector2(BGTexture.Width, BGTexture.Height) * 0.5f;
@@ -148,7 +202,7 @@ namespace CalamityMod.Backgrounds
{
for (int j = LoopX - 2; j < LoopX + 4 + (int)(Main.screenWidth / LoopWidth); j++)
{
- Vector2 drawPosition = (new Vector2(j * Scale * (rectangle.Width / vector3.X), ((Main.LocalPlayer.Center.Y / 16f) - 90) * 16f) + vector2 - vector) * vector3 + vector - Main.screenPosition - vector2 + zero;
+ Vector2 drawPosition = (new Vector2(j * Scale * (rectangle.Width / vector3.X), playerDrawPosition) + vector2 - vector) * vector3 + vector - Main.screenPosition - vector2 + zero;
var frame = rectangle;
var color = Color.White * Transparency;
diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs
index fd98916dfc..1e5a5fe8b1 100644
--- a/Balancing/BalancingChangesManager.cs
+++ b/Balancing/BalancingChangesManager.cs
@@ -158,9 +158,6 @@ namespace CalamityMod.Balancing
// See Aquatic Scourge comment.
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
- // 50% resist to Aftershock's rocks.
- NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType()))));
-
// 50% resist to Dormant Brimseeker.
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType()))));
@@ -340,9 +337,6 @@ namespace CalamityMod.Balancing
// 35% resist to Sulphuric Acid Cannon's explosions.
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType()))));
- // 35% resist to Venusian Trident.
- NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType()))));
-
// 25% resist to Corinth Prime's grenades.
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType()))));
@@ -404,9 +398,6 @@ namespace CalamityMod.Balancing
// 65% resist to true melee.
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(ResistTrueMelee(0.35f))));
- // 65% resist to The Enforcer's projectiles.
- NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType()))));
-
// 65% resist to The Final Dawn's lunge.
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType()))));
diff --git a/BiomeManagers/BrimstoneCragsBiome.cs b/BiomeManagers/BrimstoneCragsBiome.cs
index 4a621108bb..218c9c600e 100644
--- a/BiomeManagers/BrimstoneCragsBiome.cs
+++ b/BiomeManagers/BrimstoneCragsBiome.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.BiomeManagers
public override bool IsBiomeActive(Player player)
{
- return BiomeTileCounterSystem.BrimstoneCragTiles > 100 && player.ZoneUnderworldHeight;
+ return BiomeTileCounterSystem.BrimstoneCragTiles > 500 && player.ZoneUnderworldHeight;
}
}
}
diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs
index c09847564f..f2ef8dfbb5 100644
--- a/Buffs/CalamityGlobalBuff.cs
+++ b/Buffs/CalamityGlobalBuff.cs
@@ -31,10 +31,6 @@ namespace CalamityMod.Buffs
player.GetDamage() -= 0.02f;
player.GetCritChance() -= 2;
}
- else if (type == BuffID.Panic)
- {
- player.moveSpeed -= 0.6f;
- }
else if (type == BuffID.SugarRush)
{
player.moveSpeed -= 0.1f;
diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs
index 30ecff2d9f..56b57b152b 100644
--- a/CalPlayer/CalamityPlayer.cs
+++ b/CalPlayer/CalamityPlayer.cs
@@ -125,7 +125,7 @@ namespace CalamityMod.CalPlayer
public bool noLifeRegen = false;
public bool reducedDaybrokenDamage = false;
public bool reducedNightwitherDamage = false;
- public float rangedAmmoCost = 1f;
+ public float ammoCost = 1f;
public float healingPotionMultiplier = 1f;
///
/// Tracks whether or not the player is currently holding Gael's Greatsword.
@@ -727,15 +727,13 @@ namespace CalamityMod.CalPlayer
public bool theBee = false;
public bool arcFlashRing = false;
public bool arcFlashRingVisual = false;
+ public int generalBandCooldown = 0;
public bool bGlassBand = false; // Obsidian band
public bool bGlassBandVisual = false;
- public int bGlassbandCooldown = 0;
public bool batholithBangle = false; // Granite band
public bool batholithBangleVisual = false;
- public int batholithBangleCooldown = 0;
public bool protolithBangle = false; // Marble band
public bool protolithBangleVisual = false;
- public int protolithBangleCooldown = 0;
/// Used to prevent dodges from triggering The Bee's full health damage reduction cooldown.
public bool shouldTriggerBeeCooldown = false;
public int theBeeCooldown = 0;
@@ -785,6 +783,7 @@ namespace CalamityMod.CalPlayer
public int gloveLevel = 0;
public bool alreadyHasFrogLeg = false; // Unused, intended to prevent Frog Leg tinker stacking
public bool eTalisman = false;
+ public bool lastDashWasTabi = false;
public bool statisNinjaBelt = false;
/// Used to keep track of how many dashes in the same direction you make to prevent dashing away from bosses forever at max efficency.
public int statisPenaltyTimer = 0;
@@ -806,6 +805,12 @@ namespace CalamityMod.CalPlayer
public int transformerCooldown = 0;
public int transformerDelay = 0;
public int transformerStoredKills = 0;
+ public bool bloomStone = false;
+ public bool bloomStoneHookVisuals = false;
+ public int bloomStoneHealInc = 0;
+ public int bloomStoneTotalHeal = 0;
+ public int bloomStoneHealTimer = 0;
+ public int bloomStoneDR = 0;
public bool hideOfDeus = false;
public bool dAmulet = false;
public bool rampartOfDeities = false;
@@ -850,7 +855,6 @@ namespace CalamityMod.CalPlayer
public bool sGlyph = false;
public bool sRegen = false;
public bool tracersDust = false;
- public bool elysianWingsDust = false;
public bool tracersCelestial = false;
public bool tracersElysian = false;
public bool tracersSeraph = false;
@@ -927,6 +931,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;
@@ -951,6 +960,7 @@ namespace CalamityMod.CalPlayer
public bool sPauldronVisual = false;
public bool XykVisualsBlue = false;
public bool XykVisualsOrange = false;
+ public Color XykFXColor = Color.Black;
public bool manaOverloader = false;
/// Used for allowing Calamity slimes to be affected by Royal Gel.
public bool royalGel = false;
@@ -1028,8 +1038,6 @@ namespace CalamityMod.CalPlayer
/// Life regeneration is increased while between 600 and 720, with a 10 second cooldown afterwards represented by being below 600.
///
public int phantomicHeartRegen = 0;
- public bool silvaWings = false;
- public int silvaWingsLifeRegenTimer = 0;
/// General cooldown variable for spawning projectiles from wing bonus effects. Used by Soul of Cryogen, Tattered Fairy Wings, and Festive Wings.
public int wingProjectileCooldown = 0;
public bool RustyMedallionDroplets = false;
@@ -2169,6 +2177,10 @@ namespace CalamityMod.CalPlayer
arcFlashRingVisual = false;
bGlassBand = false;
bGlassBandVisual = false;
+ batholithBangle = false; // Granite band
+ batholithBangleVisual = false;
+ protolithBangle = false; // Marble band
+ protolithBangleVisual = false;
aFossil = false;
aPowder = false;
fallingBlockProtection = false;
@@ -2180,11 +2192,16 @@ namespace CalamityMod.CalPlayer
bloodyWormTooth = false;
vexation = false;
badgeOfBravery = false;
+ // Clear the Warbanner "cooldown" if not wearing Warbanner. This has absolutely zero effect for a casual player, but is useful for resetting the cooldown's duration.
+ if (!WarbanneroftheRighteous)
+ cooldowns.Remove(WarbanneroftheRighteousBuff.ID);
WarbanneroftheRighteous = false;
warbannerGlow = false;
ilSpark = false;
transformer = false;
transformerVisual = false;
+ bloomStone = false;
+ bloomStoneHookVisuals = false;
hideOfDeus = false;
dAmulet = false;
rampartOfDeities = false;
@@ -2220,8 +2237,10 @@ namespace CalamityMod.CalPlayer
eGauntlet = false;
eGauntletVisuals = true;
gloveLevel = 0;
- statisNinjaBelt = false;
- statisVoidSash = false;
+ if (Player.dashDelay != -1)
+ statisNinjaBelt = false;
+ if (Player.dashDelay != -1)
+ statisVoidSash = false;
alreadyHasFrogLeg = false;
eTalisman = false;
nucleogenesis = false;
@@ -2283,7 +2302,6 @@ namespace CalamityMod.CalPlayer
hallowedPower = false;
kamiBoost = false;
tracersDust = false;
- elysianWingsDust = false;
tracersCelestial = false;
tracersElysian = false;
tracersSeraph = false;
@@ -2299,7 +2317,6 @@ namespace CalamityMod.CalPlayer
starbusterCore = false;
starTaintedGenerator = false;
camper = false;
- silvaWings = false;
corrosiveSpine = false;
RustyMedallionDroplets = false;
rottenDogTooth = false;
@@ -2324,7 +2341,7 @@ namespace CalamityMod.CalPlayer
lunicCorpsSet = false;
lunicCorpsLegs = false;
- rangedAmmoCost = 1f;
+ ammoCost = 1f;
healingPotionMultiplier = 1f;
avertorBonus = false;
@@ -2349,6 +2366,7 @@ namespace CalamityMod.CalPlayer
spiritOriginCritBoost = 0;
spiritOrigin = false;
spiritOriginVanity = false;
+ critDamage = 0;
astralStarRain = false;
@@ -2841,11 +2859,16 @@ namespace CalamityMod.CalPlayer
auralisAurora = 0;
necroReviveCounter = -1;
hideOfDeusTimer = 0;
+ bloomStoneHealInc = 0;
+ bloomStoneTotalHeal = 0;
+ bloomStoneHealTimer = 0;
+ bloomStoneDR = 0;
murasamaHitCooldown = 0;
RustyMedallionCooldown = 0;
SulphWaterPoisoningLevel = 0f;
holyInfernoFadeIntensity = 0f;
spiritOriginCritBoost = 0;
+ critDamage = 0f;
rage = 0f;
adrenaline = 0f;
raiderCritLifespan = 0;
@@ -3061,7 +3084,7 @@ namespace CalamityMod.CalPlayer
bloodfinTimer = 0;
healCounter = 300;
danceOfLightCharge = 0;
- rangedAmmoCost = 1f;
+ ammoCost = 1f;
healingPotionMultiplier = 1f;
avertorBonus = false;
divineBless = false;
@@ -3181,7 +3204,6 @@ namespace CalamityMod.CalPlayer
fearmongerRegenFrames = 0;
xerocSet = false;
tracersDust = false;
- elysianWingsDust = false;
GemTechState.OnDeathEffects();
shieldOfTheOceanParry = 0;
shieldOfTheOceanEmpoweredParry = false;
@@ -3221,7 +3243,6 @@ namespace CalamityMod.CalPlayer
momentumCapacitorTime = 0;
momentumCapacitorBoost = 0f;
vortexBoosterStealthDelay = 0;
- silvaWingsLifeRegenTimer = 0;
LungingDown = false;
chaliceBleedoutBuffer = 0D;
@@ -4037,42 +4058,37 @@ namespace CalamityMod.CalPlayer
// Takes the movement speed bonus and uses it to increase run speed
float accRunSpeedMin = Player.accRunSpeed * 0.5f;
- Player.accRunSpeed += Player.accRunSpeed * moveSpeedBonus * 0.2f;
+ Player.accRunSpeed += Player.accRunSpeed * moveSpeedBonus * 0.16f;
if (Player.accRunSpeed < accRunSpeedMin)
Player.accRunSpeed = accRunSpeedMin;
- //Life Jelly regen aura spawn when using a healing potion
+ // Life Jelly regen aura spawn when using a healing potion
if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && lifejelly && !GrandGelatin)
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ProjectileType(), 0, 0, Player.whoAmI);
- //Cleansing Jelly cleansing aura spawn when using a healing potion
+ // Cleansing Jelly cleansing aura spawn when using a healing potion
if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && cleansingjelly && !GrandGelatin)
- {
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ProjectileType(), 0, 0, Player.whoAmI);
- }
- //Grand Gellatin regen and cleansing aura spawn when using a healing potion
+
+ // Grand Gellatin regen and cleansing aura spawn when using a healing potion
if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && GrandGelatin && !absorber)
- {
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ProjectileType(), 0, 0, Player.whoAmI);
- }
- //Absorber's regen, cleansing, and buffing aura spawn when using a healing potion
+
+ // Absorber's regen, cleansing, and buffing aura spawn when using a healing potion
if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && absorber)
- {
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ProjectileType(), 0, 0, Player.whoAmI);
- }
if (snowman)
{
if (Player.whoAmI == Main.myPlayer && !snowmanNoseless)
Player.AddBuff(BuffType(), 60, true);
}
+
if (abyssalDivingSuit)
{
Player.AddBuff(BuffType(), 60, true);
if (Player.whoAmI == Main.myPlayer && !Player.HasCooldown(DivingPlatesBroken.ID))
- {
Player.AddBuff(BuffType(), 2);
- }
if (Player.whoAmI == Main.myPlayer && Player.active && abyssalDivingSuitPlateHits < 3)
{
@@ -4090,40 +4106,36 @@ namespace CalamityMod.CalPlayer
}
if (aquaticHeart)
- {
Player.AddBuff(BuffType(), 60, true);
- }
+
if (aquaticHeart && NPC.downedBoss3)
{
if (Player.whoAmI == Main.myPlayer && !Player.HasCooldown(AquaticHeartIceShield.ID))
- {
Player.AddBuff(BuffType(), 2);
- }
}
+
if (profanedCrystal)
- {
Player.AddBuff(BuffType(), 60, true);
- }
+
if (gSabaton)
{
if (Player.whoAmI == Main.myPlayer)
{
// While holding hotkey, but before slam, bring Y velocity closer to 0
if (gSabatonHotkeyHoldTime < 30 && gSabatonHotkeyHoldTime != 0 && !gSabatonFalling)
- {
Player.velocity.Y *= (60 - (gSabatonHotkeyHoldTime / 2f)) / 60f;
- }
+
// Play sound a bit early so it goes in time with the fall
if (gSabatonHotkeyHoldTime == 15 && !gSabatonFalling)
- {
SoundEngine.PlaySound(new("CalamityMod/Sounds/Custom/GravistarCharge") { Volume = 0.3f });
- }
+
// 0.5 seconds passed, falling time
if (gSabatonHotkeyHoldTime == 30)
{
gSabatonFalling = true;
Player.velocity.Y = 0.01f;
}
+
// Cancel fall and don't give 'on ground' effects if on rope, on mount, grappled, or tongued
// Also cancel fall if the player has upwards Y velocity (Goodbye Inner Tube cheese)
if ((Player.gravDir == 1 && Player.velocity.Y < 0f) || (Player.gravDir == -1 && Player.velocity.Y > 1f) || Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
@@ -4131,6 +4143,7 @@ namespace CalamityMod.CalPlayer
gSabatonFall = 0;
gSabatonFalling = false;
}
+
if (gSabatonFalling)
{
SpawnGravistarParticle();
@@ -4141,6 +4154,7 @@ namespace CalamityMod.CalPlayer
Player.maxFallSpeed = 40f;
Player.gravity = 1.3f;
+
// If the player can fly during the fall, the physics gets a bit funky
Player.controlJump = false;
@@ -4148,13 +4162,14 @@ namespace CalamityMod.CalPlayer
if (0 == Player.velocity.Y)
{
var source = Player.GetSource_Accessory(FindAccessory(ItemType()));
- //Spawn explosion. ai[0] is used for transferring the recorded falling time
+ // Spawn explosion. ai[0] is used for transferring the recorded falling time
int damage = Player.CalcIntDamage(InterstellarStompers.SlamDamage);
Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ProjectileType(), damage, 4f, Player.whoAmI, gSabatonFall);
gSabatonFall = 0;
gSabatonFalling = false;
+
// Temporary jump speed is granted for 40 frames
gSabatonTempJumpSpeed = 40;
}
@@ -4215,7 +4230,7 @@ namespace CalamityMod.CalPlayer
if (Main.myPlayer == Player.whoAmI)
{
mouseRight = PlayerInput.Triggers.Current.MouseRight;
- mouseWorld = Main.MouseWorld;
+ mouseWorld = LockOnHelper.Enabled ? LockOnHelper.PredictedPosition : Main.MouseWorld;
if (rightClickListener && mouseRight != oldMouseRight)
{
@@ -4355,6 +4370,17 @@ namespace CalamityMod.CalPlayer
}
}
+ //Star in a Bottle gives Mana Regeneration instead of it's usual effect when you don't already have Mana Regeneration
+ if (!Player.manaRegenBuff && Player.HasBuff(BuffID.StarInBottle))
+ {
+ //Cancel out Star In A Bottle's normal effect
+ Player.manaRegenDelayBonus -= 0.5f;
+ Player.manaRegenBonus -= 10;
+ //Apply Mana Regen Potion effect
+ Player.manaRegenBuff = true;
+
+ }
+
ForceVariousEffects();
}
#endregion
@@ -4521,6 +4547,8 @@ namespace CalamityMod.CalPlayer
public override void GetHealLife(Item item, bool quickHeal, ref int healValue)
{
healValue = (int)(healValue * healingPotionMultiplier);
+ if (bloomStone)
+ healValue = 0;
}
#endregion
@@ -4837,12 +4865,7 @@ namespace CalamityMod.CalPlayer
Vector2 mouse = Player.ClampedMouseWorld();
Vector2 startingPosition = mouse - Vector2.UnitY.RotatedByRandom(0.3f) * 1250f;
Vector2 directionToMouse = (mouse - startingPosition).SafeNormalize(Vector2.UnitX);
- int drop = Projectile.NewProjectile(MedallionSource, startingPosition, directionToMouse * 15f, ProjectileType(), d, 0f, Player.whoAmI, 3);
- if (drop.WithinBounds(Main.maxProjectiles))
- {
- Main.projectile[drop].penetrate = 2;
- Main.projectile[drop].DamageType = DamageClass.Generic;
- }
+ Projectile.NewProjectile(MedallionSource, startingPosition, directionToMouse * 15f, ProjectileType(), d, 0f, Player.whoAmI, 3);
RustyMedallionCooldown = RustyMedallion.AcidCreationCooldown;
}
}
diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs
index 11c960eb68..b5470a17e4 100644
--- a/CalPlayer/CalamityPlayerDrawEffects.cs
+++ b/CalPlayer/CalamityPlayerDrawEffects.cs
@@ -4,6 +4,7 @@ using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.CalPlayer.DrawLayers;
+using CalamityMod.Dusts;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Particles;
@@ -140,21 +141,6 @@ namespace CalamityMod.CalPlayer
}
}
}
-
- // Elysian Wings, Elysian TRACERS?! and SERAPH TRACERS?!
- if (calamityPlayer.elysianWingsDust && drawInfo.shadow == 0f)
- {
- if (!Player.StandingStill() && !Player.mount.Active)
- {
- if (Main.rand.NextBool())
- {
- Dust dust = Dust.NewDustDirect(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, DustID.GoldCoin, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1f);
- dust.noGravity = true;
- dust.velocity *= 0.5f;
- drawInfo.DustCache.Add(dust.dustIndex);
- }
- }
- }
#endregion
#region Armor Visuals
@@ -342,6 +328,20 @@ namespace CalamityMod.CalPlayer
GeneralParticleHandler.SpawnParticle(Plus);
}
}
+ if (calamityPlayer.bloomStoneDR > 0 && drawInfo.shadow == 0f)
+ {
+ if (Main.rand.NextBool(10))
+ {
+ MediumMistParticle pollenCloud = new(Player.Center, Main.rand.NextVector2Circular(1f, 1f), Color.Yellow, Color.Gold, 0.85f, 100f);
+ GeneralParticleHandler.SpawnParticle(pollenCloud);
+ }
+ if (Main.rand.NextBool(4))
+ {
+ Dust pollenDust = Dust.NewDustDirect(Player.position, Player.width, Player.height, ModContent.DustType(), newColor: Color.Gold, Scale: 0.4f);
+ pollenDust.noLightEmittence = true;
+ pollenDust.noGravity = true;
+ }
+ }
if (calamityPlayer.bloodfinBoost && drawInfo.shadow == 0f)
{
if (Main.rand.NextBool(3))
diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs
index f5c572ea7e..58ec5db97c 100644
--- a/CalPlayer/CalamityPlayerHitHurt.cs
+++ b/CalPlayer/CalamityPlayerHitHurt.cs
@@ -32,6 +32,7 @@ using CalamityMod.NPCs.ProfanedGuardians;
using CalamityMod.NPCs.Providence;
using CalamityMod.NPCs.SupremeCalamitas;
using CalamityMod.Particles;
+using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Typeless;
@@ -510,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;
@@ -591,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;
@@ -2605,7 +2609,8 @@ namespace CalamityMod.CalPlayer
Player.immuneTime += iFramesToAdd;
// Similar handle to 1.4 Star Cloak: these hits ie. spikes or lava cannot activate hit effects
- if (hurtInfo.CooldownCounter != -1 && hurtInfo.CooldownCounter != 1)
+ bool canTriggerHitEffects = hurtInfo.CooldownCounter == -1 || hurtInfo.CooldownCounter == 1;
+ if (!canTriggerHitEffects)
return;
if (aeroSet && hurtInfo.Damage > 25)
@@ -2634,20 +2639,25 @@ namespace CalamityMod.CalPlayer
}
}
// TODO -- Make Deific Amulet and Rampart of Deities' retaliation effects way cooler
+ // In the meantime, gave them homing astral bombers instead of the lame falling stars
if (dAmulet)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType()));
- for (int n = 0; n < 3; n++)
+ int projAmount = (rampartOfDeities ? 12 : 6);
+ for (int n = 0; n < projAmount; n++)
{
int baseDamage = 130 * (Main.masterMode ? 3 : Main.expertMode ? 2 : 1);
- int deificStarDamage = (int)Player.GetBestClassDamage().ApplyTo(baseDamage);
+ int deificProjDamage = (int)Player.GetBestClassDamage().ApplyTo(baseDamage);
- Projectile star = CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileID.StarVeilStar, deificStarDamage, 4f, Player.whoAmI);
- if (star.whoAmI.WithinBounds(Main.maxProjectiles))
+ Projectile onHitProj = Main.projectile[Projectile.NewProjectile(source, Player.Center, new Vector2(0,-15).RotatedBy(MathHelper.TwoPi/projAmount*n), ModContent.ProjectileType(), deificProjDamage, 4f, Player.whoAmI)];
+ if (onHitProj.whoAmI.WithinBounds(Main.maxProjectiles))
{
- star.DamageType = DamageClass.Generic;
- star.usesLocalNPCImmunity = true;
- star.localNPCHitCooldown = 5;
+ onHitProj.DamageType = DamageClass.Generic;
+ onHitProj.usesLocalNPCImmunity = true;
+ onHitProj.localNPCHitCooldown = 5;
+ onHitProj.tileCollide = false;
+ onHitProj.extraUpdates = 1;
+ onHitProj.Calamity().conditionalHomingRange = 500f;
}
}
}
diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs
index ed7e3ac147..3432974a04 100644
--- a/CalPlayer/CalamityPlayerLifeRegen.cs
+++ b/CalPlayer/CalamityPlayerLifeRegen.cs
@@ -685,24 +685,6 @@ namespace CalamityMod.CalPlayer
Player.lifeRegenTime += 4;
}
- if (silvaWings)
- {
- if (Player.velocity.Y == 0f || Player.wingTime == Player.wingTimeMax)
- silvaWingsLifeRegenTimer = 0;
- else
- {
- silvaWingsLifeRegenTimer++;
- if (silvaWingsLifeRegenTimer > SilvaWings.LifeRegenTimerMax)
- silvaWingsLifeRegenTimer = SilvaWings.LifeRegenTimerMax;
- }
-
- // Life regen boost scales up to 8 HP/s based on how long you stay in the air without resetting flight time
- int lifeRegenBoost = (int)MathHelper.Lerp(0f, 16f, silvaWingsLifeRegenTimer / (float)SilvaWings.LifeRegenTimerMax);
- Player.lifeRegen += lifeRegenBoost;
- }
- else
- silvaWingsLifeRegenTimer = 0;
-
if (pinkCandle && !noLifeRegen)
{
// Every frame, add up 1/60th of the healing value (0.4% max HP per second)
diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs
index a5bec51499..e8dde18907 100644
--- a/CalPlayer/CalamityPlayerMiscEffects.cs
+++ b/CalPlayer/CalamityPlayerMiscEffects.cs
@@ -78,6 +78,7 @@ using Terraria.GameContent.Events;
using Terraria.GameInput;
using Terraria.Graphics.Shaders;
using Terraria.ID;
+using Terraria.Localization;
using Terraria.ModLoader;
using ProvidenceBoss = CalamityMod.NPCs.Providence.Providence;
@@ -142,9 +143,6 @@ namespace CalamityMod.CalPlayer
// Limits
Limits();
- // This is used to increase horizontal velocity based on the player's movement speed stat.
- moveSpeedBonus = Player.moveSpeed - 1f;
-
// Potions (Quick Buff && Potion Sickness)
HandlePotions();
@@ -228,25 +226,82 @@ namespace CalamityMod.CalPlayer
if (WulfrumHat.PowerModeEngaged(Player, out _))
Player.moveSpeed *= 0.8f;
+ if ((XykVisualsBlue || XykVisualsOrange))
+ {
+ bool Orange = XykVisualsOrange;
+ Color effectColor = Orange ? Color.Gold : Color.DodgerBlue;
+
+ float rate = Main.GlobalTimeWrappedHourly * 12;
+ List eColors = new List()
+ {
+ Orange ? new Color(248, 117, 52) : Color.DodgerBlue,
+ Orange ? Color.Gold : Color.Cyan,
+ Orange ? Color.Orange : Color.RoyalBlue
+ };
+ int colorIndex = (int)(rate / 2 % eColors.Count);
+ Color currentColor = eColors[colorIndex];
+ Color nextColor = eColors[(colorIndex + 1) % eColors.Count];
+ effectColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f);
+
+ bool rageOrAdren = (Player.Calamity().rageModeActive || Player.Calamity().adrenalineModeActive);
+ bool rageAndAdren = (Player.Calamity().rageModeActive && Player.Calamity().adrenalineModeActive);
+ Color attemptColor = (rageAndAdren ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Player.Calamity().adrenalineModeActive ? Color.MediumSpringGreen : Player.Calamity().rageModeActive ? Color.Crimson : effectColor);
+ XykFXColor = Color.Lerp(XykFXColor, attemptColor, rageOrAdren ? 0.05f : 0.25f);
+
+
+ int maxWingPieces = 7;
+ int numOfActiveWings = 0;
+ foreach (Projectile p in Main.ActiveProjectiles)
+ if (p.type == ModContent.ProjectileType() && p.owner == Player.whoAmI && p.ai[1] == 0)
+ numOfActiveWings++;
+ bool spawnWings = numOfActiveWings < maxWingPieces && !Player.dead && Player.wingsLogic > 0 && !(Player.wingTime == Player.wingTimeMax && Player.velocity.Y == 0) && Player.wingTime > 0;
+ if (spawnWings)
+ {
+ int wingCount = numOfActiveWings;
+ Projectile wings = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, Player.whoAmI, wingCount);
+ }
+ }
+
// First Frame dash effects
bool dashStart = (Player.dashDelay == -1 && IsFirstDashFrame);
int dir = MathF.Sign(Player.velocity.X);
+ if (dashStart)
+ {
+ lastDashWasTabi = false;
+ }
+
if (((gShell && giantShellPostHit == 0) || (tortShell && tortShellPostHit == 0)) && dashStart)
{
Player.velocity.X *= 0.9f;
}
// Tabi/Master Ninja Gear dash change
- if (Player.dashType == 1)
+ if (lastDashWasTabi)
+ {
+ Player.dashType = 1;
+ }
+ if (Player.dashType == 1 && !Player.Calamity().statisNinjaBelt && !Player.Calamity().statisVoidSash)
{
if (dashStart)
+ {
Player.velocity.X *= 3.5f;
+ lastDashWasTabi = true;
+ }
if (Player.dashDelay == -1)
{
Player.velocity.X *= 0.9f;
}
}
+
+ if (Player.Calamity().statisNinjaBelt)
+ {
+ Player.Calamity().DashID = StatisNinjaBeltDash.ID;
+ }
+ if (Player.Calamity().statisVoidSash)
+ {
+ Player.Calamity().DashID = StatisVoidSashDash.ID;
+ }
if ((devilsDevastationKillMode || exaltedKillMode) && !Player.mount.Active)
{
@@ -338,27 +393,16 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center + Player.velocity * 1.5f, Vector2.Zero, ModContent.ProjectileType(), damage, 0, Player.whoAmI);
}
if (Player.dashDelay == -1)
+ {
Player.endurance += 0.1f;
+ Player.noKnockback = true;
+ }
}
if (XykVisualsBlue || XykVisualsOrange)
{
bool Orange = XykVisualsOrange;
- Color effectColor = Orange ? Color.Gold : Color.DodgerBlue;
-
- float rate = Main.GlobalTimeWrappedHourly * 22;
- List eColors = new List()
- {
- Orange ? Color.OrangeRed : Color.DodgerBlue,
- Orange ? Color.Gold : Color.Cyan,
- Orange ? Color.Orange : Color.RoyalBlue
- };
-
- int colorIndex = (int)(rate / 2 % eColors.Count);
- Color currentColor = eColors[colorIndex];
- Color nextColor = eColors[(colorIndex + 1) % eColors.Count];
- effectColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f);
if (dashStart)
{
@@ -366,18 +410,18 @@ namespace CalamityMod.CalPlayer
SoundEngine.PlaySound(dash with { Volume = 0.7f, Pitch = Main.rand.NextFloat(0f, 0.2f) + (Orange ? 0 : 0.2f) }, Player.Center);
if (Orange)
{
- Particle spark1 = new CustomPulse(Player.Center, Vector2.Zero, effectColor, "CalamityMod/Particles/GlowSquareParticleBig", Vector2.One, MathHelper.PiOver4, 0.45f, 0.25f, 47);
+ Particle spark1 = new CustomPulse(Player.Center, Vector2.Zero, XykFXColor, "CalamityMod/Particles/GlowSquareParticleBig", Vector2.One, MathHelper.PiOver4, 0.45f, 0.25f, 47);
GeneralParticleHandler.SpawnParticle(spark1);
- Particle spark2 = new CustomPulse(Player.Center, Vector2.Zero, effectColor, "CalamityMod/Particles/GlowSquareParticleBig", Vector2.One, MathHelper.PiOver4, 0, 0.8f, 17);
+ Particle spark2 = new CustomPulse(Player.Center, Vector2.Zero, XykFXColor, "CalamityMod/Particles/GlowSquareParticleBig", Vector2.One, MathHelper.PiOver4, 0, 0.8f, 17);
GeneralParticleHandler.SpawnParticle(spark2);
}
else
{
- Particle spark1 = new CustomPulse(Player.Center, Player.velocity * 0.3f, effectColor, "CalamityMod/Particles/BloomRing", new Vector2(0.4f, 1f), Player.velocity.ToRotation(), 0, 1f, 24);
+ Particle spark1 = new CustomPulse(Player.Center, Player.velocity * 0.3f, XykFXColor, "CalamityMod/Particles/BloomRing", new Vector2(0.4f, 1f), Player.velocity.ToRotation(), 0, 1f, 24);
GeneralParticleHandler.SpawnParticle(spark1);
- Particle spark2 = new CustomPulse(Player.Center, Player.velocity * 0.5f, effectColor, "CalamityMod/Particles/BloomRing", new Vector2(0.5f, 1f), Player.velocity.ToRotation(), 0, 0.75f, 17);
+ Particle spark2 = new CustomPulse(Player.Center, Player.velocity * 0.5f, XykFXColor, "CalamityMod/Particles/BloomRing", new Vector2(0.5f, 1f), Player.velocity.ToRotation(), 0, 0.75f, 17);
GeneralParticleHandler.SpawnParticle(spark2);
}
}
@@ -389,33 +433,35 @@ namespace CalamityMod.CalPlayer
if (!Orange)
{
float sine = (float)Math.Sin(Player.miscCounter * 0.875f / MathHelper.Pi);
+ for (int i = -1; i <= 1; i += 2)
+ {
+ Vector2 offset = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedBy(MathHelper.PiOver2) * sine * 18f * i;
- Vector2 offset = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedBy(MathHelper.PiOver2) * sine * 17f;
-
- Particle spark1 = new GlowSparkParticle(Player.Center + offset + SparkVelocity1, SparkVelocity1 * 2 * sparkscale1, false, 25, 0.04f * sparkscale1, effectColor * 0.9f, new Vector2(0.8f, 0.3f), true, false, 0.4f);
- GeneralParticleHandler.SpawnParticle(spark1);
- Particle spark2 = new GlowSparkParticle(Player.Center - offset + SparkVelocity1, SparkVelocity1 * 2 * sparkscale1, false, 25, 0.04f * sparkscale1, effectColor * 0.9f, new Vector2(1, 0.3f), true, false, 0.4f);
- GeneralParticleHandler.SpawnParticle(spark2);
+ Particle spark1 = new CustomSpark(Player.Center + offset + SparkVelocity1, SparkVelocity1 * 2 * sparkscale1, "CalamityMod/Particles/BloomCircle", false, 15, 0.3f * sparkscale1, XykFXColor * 0.85f, new Vector2(0.9f, 1.4f), true, true, 0, shrinkSpeed: 0.2f, glowOpacity: 0.85f);
+ GeneralParticleHandler.SpawnParticle(spark1);
+ }
}
else
{
float sparkscale2 = MathF.Min(Player.velocity.X * dir * 0.07f, 1.1f);
- Vector2 SparkVelocity2 = Player.velocity.RotatedBy(dir * 2.5f, default) * 0.1f - Player.velocity / 2f;
- Particle spark = new LineParticle(Player.Center + (Player.velocity.SafeNormalize(Vector2.UnitX) * 15).RotatedBy(2f * dir) * 1.5f, SparkVelocity2, false, 10, sparkscale2, effectColor);
- GeneralParticleHandler.SpawnParticle(spark);
- Vector2 SparkVelocity3 = Player.velocity.RotatedBy(dir * -2.5f, default) * 0.1f - Player.velocity / 2f;
- Particle spark2 = new LineParticle(Player.Center + (Player.velocity.SafeNormalize(Vector2.UnitX) * 15).RotatedBy(-2f * dir) * 1.5f, SparkVelocity3, false, 10, sparkscale2, effectColor);
- GeneralParticleHandler.SpawnParticle(spark2);
+ for (int i = -1; i <= 1; i += 2)
+ {
+ Vector2 offset = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedBy(MathHelper.PiOver2) * 17f * i;
+
+ Particle spark1 = new CustomSpark(Player.Center + offset + SparkVelocity1, SparkVelocity1 * 2 * sparkscale1, "CalamityMod/Particles/BloomCircle", false, 20, 0.4f * sparkscale1, XykFXColor * 0.95f, new Vector2(0.3f, 1.2f), true, true, 0, shrinkSpeed: 0.2f, glowOpacity: 0.95f);
+ GeneralParticleHandler.SpawnParticle(spark1);
+ }
}
for (int i = 0; i < 2; i++)
{
- Dust dust = Dust.NewDustPerfect(Player.Center + Main.rand.NextVector2Circular(20, 30) + SparkVelocity1, 267, SparkVelocity1 * Main.rand.NextFloat(0.5f, 3f) * sparkscale1, 0, default, Main.rand.NextFloat(0.7f, 1.1f) * sparkscale1);
+ bool altDust = Main.rand.NextBool(3);
+ Dust dust = Dust.NewDustPerfect(Player.Center + Main.rand.NextVector2Circular(20, 30) + SparkVelocity1, altDust ? (Orange ? ModContent.DustType() : ModContent.DustType()) : ModContent.DustType(), SparkVelocity1 * Main.rand.NextFloat(0.5f, 3f) * sparkscale1, 0, default, Main.rand.NextFloat(1.5f, 1.9f) * sparkscale1);
dust.noGravity = true;
- dust.color = effectColor;
-
- Dust dust2 = Dust.NewDustPerfect(Player.Center + Main.rand.NextVector2Circular(20, 30) + SparkVelocity1, 10, SparkVelocity1 * Main.rand.NextFloat(0.5f, 3f) * sparkscale1, 0, default, Main.rand.NextFloat(0.9f, 1.4f) * sparkscale1);
- dust2.noGravity = true;
+ dust.color = XykFXColor;
+ dust.fadeIn = altDust ? 0 : 2;
+ if (altDust)
+ dust.scale *= 0.5f;
}
}
}
@@ -434,6 +480,17 @@ 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;
+
+ // This is used to increase horizontal velocity based on the player's movement speed stat.
+ moveSpeedBonus = Player.moveSpeed - 1f;
}
#endregion
@@ -737,10 +794,10 @@ namespace CalamityMod.CalPlayer
if (Player.velocity.Length() == 0f)
return;
- Dust dust = Dust.NewDustDirect(Player.Center, 16, 16, DustID.Firefly, 0.23255825f, 10f, 0, new Color(117, 55, 15), 1.5116279f);
+ Dust dust = Dust.NewDustDirect(Player.Center, 16, 16, DustID.Firefly, 0.2f, 0f, 0, new Color(117, 55, 15), Main.rand.NextFloat(1f, 2f));
dust.noGravity = true;
dust.noLight = true;
- dust.fadeIn = 2.5813954f;
+ dust.fadeIn = 2.5f;
}
// Ores below here
@@ -1247,7 +1304,7 @@ namespace CalamityMod.CalPlayer
Player.maxFallSpeed = 20f;
}
- if (Player.controlDown && ironBoots)
+ if (Player.controlDown && !Player.controlJump && ironBoots)
{
Player.maxFallSpeed = 23f; // This is slightly faster than slimy saddle (so it can be viable)
if (Player.gravDir == 1 ? Player.velocity.Y <= 0 : Player.velocity.Y >= 0)
@@ -1285,10 +1342,16 @@ namespace CalamityMod.CalPlayer
}
else
{
- if (Player.mount.Type == MountID.Slime || Player.mount.Type == MountID.PogoStick)
+ if (Player.mount.Type == MountID.Slime)
Player.velocity.X *= 0.91f;
else if (Player.mount.Type == MountID.QueenSlime)
Player.velocity.X *= 0.95f;
+ else if (Player.mount.Type == MountID.PogoStick)
+ {
+ if (Player.velocity.X > 10 || Player.velocity.X < -10)
+ Player.velocity.X *= 0.99f; //Stops infinite high-speed movement, but allows fun pogo movement tech still
+ Player.maxFallSpeed *= 0.75f; // 1.5x fall speed instead of 2x to counterbalance
+ }
}
// Increase Rope climb velocities, if enabled
@@ -1704,7 +1767,7 @@ namespace CalamityMod.CalPlayer
if (ironBoots)
{
- if (Player.controlDown)
+ if (Player.controlDown && !Player.controlJump)
{
if (Player.gravDir == 1 ? Player.velocity.Y > 0 : Player.velocity.Y < 0)
fallingBootVelCheckTimer++;
@@ -1999,12 +2062,8 @@ namespace CalamityMod.CalPlayer
VoidCooldown--;
if (ursaSergeantCooldown > 0)
ursaSergeantCooldown--;
- if (bGlassbandCooldown > 0)
- bGlassbandCooldown--;
- if (batholithBangleCooldown > 0)
- batholithBangleCooldown--;
- if (protolithBangleCooldown > 0)
- protolithBangleCooldown--;
+ if (generalBandCooldown > 0)
+ generalBandCooldown--;
if (AlchFlaskCooldown > 0)
AlchFlaskCooldown--;
if (tarraRangedCooldown > 0)
@@ -2023,6 +2082,43 @@ namespace CalamityMod.CalPlayer
jetPackDash--;
if (theBeeCooldown > 0)
theBeeCooldown--;
+
+ if (bloomStoneHealTimer > 0)
+ {
+ if (bloomStone && bloomStoneHealTimer % 40 == 0)
+ {
+ Player.HealPlayer(Math.Min(bloomStoneHealInc, bloomStoneTotalHeal));
+ // Special specifically programmed interaction with Chalice of the Blood God: Healing over time clears bits of the bleedout buffer.
+ if (chaliceOfTheBloodGod && chaliceBleedoutBuffer > 0D)
+ {
+ float amountOfBleedToClear = ChaliceOfTheBloodGod.HealingPotionRatioForBufferClear * bloomStoneHealInc;
+ chaliceBleedoutBuffer -= amountOfBleedToClear;
+ // Display text indicating that healing was applied to the bleedout buffer.
+ if (!Main.dedServ)
+ {
+ string text = $"(+{amountOfBleedToClear})";
+ Rectangle location = new Rectangle((int)Player.position.X + 4, (int)Player.position.Y - 3, Player.width - 4, Player.height - 4);
+ CombatText.NewText(location, ChaliceOfTheBloodGod.BleedoutBufferDamageTextColor, Language.GetTextValue(text), dot: true);
+ }
+ }
+
+ bloomStoneTotalHeal -= bloomStoneHealInc;
+ if (bloomStoneTotalHeal < 0)
+ bloomStoneTotalHeal = 0;
+ }
+ bloomStoneHealTimer--;
+ }
+ else
+ {
+ bloomStoneTotalHeal = 0;
+ bloomStoneHealInc = 0;
+ }
+ if (bloomStoneDR > 0)
+ {
+ Player.endurance += bloomStoneHealTimer > 0 ? 0.12f : 0.06f;
+ bloomStoneDR--;
+ }
+
if (summonProjCooldown > 0f)
summonProjCooldown -= 1f;
if (ataxiaDmg > 0f)
@@ -3419,10 +3515,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/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs
index 8a6a023475..f91dcf823d 100644
--- a/CalPlayer/CalamityPlayerOnHit.cs
+++ b/CalPlayer/CalamityPlayerOnHit.cs
@@ -10,7 +10,6 @@ using CalamityMod.Dusts;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Armor.Reaver;
using CalamityMod.Items.Fishing.AstralCatches;
-using CalamityMod.Items.Potions.Alcohol;
using CalamityMod.Items.VanillaArmorChanges;
using CalamityMod.NPCs;
using CalamityMod.NPCs.NormalNPCs;
@@ -26,12 +25,10 @@ using CalamityMod.Projectiles.Typeless;
using CalamityMod.Systems;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
-using Mono.Cecil;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
-using static System.Net.Mime.MediaTypeNames;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.CalPlayer
@@ -72,7 +69,6 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType(), VulnerabilityHex.AflameDuration);
target.Calamity().IncreasedColdEffects_EskimoSet = eskimoSet;
- target.Calamity().IncreasedColdEffects_FrozenWings = frozenWingsCold;
target.Calamity().IncreasedColdEffects_CryoStone = CryoStone;
target.Calamity().IncreasedElectricityEffects_Unused = false;
@@ -80,7 +76,6 @@ namespace CalamityMod.CalPlayer
target.Calamity().IncreasedHeatEffects_Fireball = fireball;
target.Calamity().IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
target.Calamity().IncreasedHeatEffects_FireBoots = bootLevel;
- target.Calamity().IncreasedHeatEffects_FlameWings = flameWingsHeat;
target.Calamity().IncreasedSicknessEffects_ToxicHeart = toxicHeart;
@@ -148,14 +143,46 @@ namespace CalamityMod.CalPlayer
// Ursa Sergeant slash cooldown is reset on kill
if (ursaSergeant && target.life <= 0 && target.realLife == -1)
ursaSergeantCooldown = (int)MathHelper.Clamp(ursaSergeantCooldown - 180, 0, 300);
- if (bGlassBand && bGlassbandCooldown == 0)
+
+
+ if (generalBandCooldown == 0)
{
- var source = item.GetSource_FromThis();
- int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
- Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
- Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
- bGlassbandCooldown = BlackGlassBand.cooldown;
+ int cooldown = 0;
+ if (bGlassBand)
+ {
+ var source = item.GetSource_FromThis();
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
+ Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
+ Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
+ if (cooldown < BlackGlassBand.cooldown)
+ cooldown = BlackGlassBand.cooldown;
+ }
+ if (protolithBangle && item.DamageType == DamageClass.Ranged)
+ {
+ var source = item.GetSource_FromThis();
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(ProtolithBangle.damage);
+ Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI);
+ band.DamageType = DamageClass.Ranged;
+ if (cooldown < ProtolithBangle.cooldown)
+ cooldown = ProtolithBangle.cooldown;
+ }
+ if (batholithBangle && item.DamageType == DamageClass.Magic)
+ {
+ var source = item.GetSource_FromThis();
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(BatholithBangle.damage);
+ Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI);
+ band.DamageType = DamageClass.Magic;
+ if (cooldown < BatholithBangle.cooldown)
+ cooldown = BatholithBangle.cooldown;
+ }
+
+ if (cooldown > 0) // Check if a band effect went off, and apply the highest cooldown
+ {
+ generalBandCooldown = cooldown;
+ Player.AddCooldown(Cooldowns.GenericBandCooldown.ID, cooldown);
+ }
}
+
if (luxorsGift)
luxorHit = true;
@@ -209,7 +236,6 @@ namespace CalamityMod.CalPlayer
witheringDamageDone += (int)(damageDone * (hit.Crit ? 2D : 1D));
cgn.IncreasedColdEffects_EskimoSet = eskimoSet;
- cgn.IncreasedColdEffects_FrozenWings = frozenWingsCold;
cgn.IncreasedColdEffects_CryoStone = CryoStone;
cgn.IncreasedElectricityEffects_Unused = false;
@@ -217,7 +243,6 @@ namespace CalamityMod.CalPlayer
cgn.IncreasedHeatEffects_Fireball = fireball;
cgn.IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
cgn.IncreasedHeatEffects_FireBoots = bootLevel;
- cgn.IncreasedHeatEffects_FlameWings = flameWingsHeat;
cgn.IncreasedSicknessEffects_ToxicHeart = toxicHeart;
@@ -320,14 +345,47 @@ namespace CalamityMod.CalPlayer
// Ursa Sergeant slash cooldown is reset on kill
if (ursaSergeant && target.life <= 0 && target.realLife == -1)
ursaSergeantCooldown = (int)MathHelper.Clamp(ursaSergeantCooldown - UrsaSergeant.CooldownReducedPerKill, 0, UrsaSergeant.MaxCooldown);
- if (bGlassBand && bGlassbandCooldown == 0)
+
+ if (generalBandCooldown == 0)
{
- var source = proj.GetSource_FromThis();
- int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
- Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
- Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
- bGlassbandCooldown = BlackGlassBand.cooldown;
+ int cooldown = 0;
+ // NOTE: Apparently Pulse Pistol/Pulse Rifle projectiles will set spawned projectiles here to inherit the proj ID???
+ // No clue why this happens or how to fix it, but it just breaks using multiple band types together on these two weapons
+ if (bGlassBand)
+ {
+ var source = proj.GetSource_FromThis();
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
+ Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
+ Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
+ if (cooldown < BlackGlassBand.cooldown)
+ cooldown = BlackGlassBand.cooldown;
+ }
+ if (protolithBangle && proj.DamageType == DamageClass.Ranged)
+ {
+ var source = proj.GetSource_FromThis();
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(ProtolithBangle.damage);
+ Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI);
+ band.DamageType = DamageClass.Ranged;
+ if (cooldown < ProtolithBangle.cooldown)
+ cooldown = ProtolithBangle.cooldown;
+ }
+ if (batholithBangle && proj.DamageType == DamageClass.Magic)
+ {
+ var source = proj.GetSource_FromThis();
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(BatholithBangle.damage);
+ Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType(), damage, -1, Player.whoAmI, target.whoAmI);
+ band.DamageType = DamageClass.Magic;
+ if (cooldown < BatholithBangle.cooldown)
+ cooldown = BatholithBangle.cooldown;
+ }
+
+ if (cooldown > 0) // Check if a band effect went off, and apply the highest cooldown
+ {
+ generalBandCooldown = cooldown;
+ Player.AddCooldown(Cooldowns.GenericBandCooldown.ID, cooldown);
+ }
}
+
if (luxorsGift && proj.type != ModContent.ProjectileType() && proj.type != ModContent.ProjectileType() && proj.type != ModContent.ProjectileType() && proj.type != ModContent.ProjectileType() && proj.type != ModContent.ProjectileType() && proj.type != ModContent.ProjectileType())
luxorHit = true;
diff --git a/CalPlayer/Dashes/StatisVoidSashDash.cs b/CalPlayer/Dashes/StatisVoidSashDash.cs
index fa4d3f04a2..35de1b7772 100644
--- a/CalPlayer/Dashes/StatisVoidSashDash.cs
+++ b/CalPlayer/Dashes/StatisVoidSashDash.cs
@@ -3,6 +3,7 @@ using System.Security.Policy;
using CalamityMod.Dusts;
using CalamityMod.Enums;
using CalamityMod.Graphics.Metaballs;
+using CalamityMod.Items.Accessories;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
@@ -47,7 +48,7 @@ namespace CalamityMod.CalPlayer.Dashes
if (strongVisuals)
{
- SoundStyle sound = new("CalamityMod/Sounds/Item/VoidDash");
+ SoundStyle sound = StatisVoidSash.VoidDash;
SoundEngine.PlaySound(sound with { Volume = 0.7f, Pitch = Main.rand.NextFloat(-0.15f, 0.15f) }, player.Center);
for (int i = 0; i < 40; i++)
{
diff --git a/CalPlayer/DrawLayers/AdrenalineTrailLayer.cs b/CalPlayer/DrawLayers/AdrenalineTrailLayer.cs
deleted file mode 100644
index 8524e8de6a..0000000000
--- a/CalPlayer/DrawLayers/AdrenalineTrailLayer.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System.Collections.Generic;
-using CalamityMod.Items.VanillaArmorChanges;
-using Microsoft.Xna.Framework;
-using Terraria;
-using Terraria.DataStructures;
-using Terraria.ModLoader;
-
-namespace CalamityMod.CalPlayer.DrawLayers
-{
- public class AdrenalineTrailLayer : PlayerDrawLayer
- {
- public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.LastVanillaLayer);
- public int Time = 0;
- public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- if (drawInfo.shadow != 0f || drawPlayer.dead)
- return false;
-
- return drawPlayer.Calamity().AdrenalineTrail;
- }
-
- protected override void Draw(ref PlayerDrawSet drawInfo)
- {
- Time++;
- Player drawPlayer = drawInfo.drawPlayer;
- List existingDrawData = drawInfo.DrawDataCache;
- float movementSpeedInterpolant = CobaltArmorSetChange.CalculateMovementSpeedInterpolant(drawPlayer);
- for (float i = 0; i < drawPlayer.Calamity().OldPositions.Length; i += 0.9f)
- {
- float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
- float scale = MathHelper.Lerp(1.1f, 0.1f, completionRatio);
- float opacity = MathHelper.Lerp(0.5f, 0.3f, completionRatio) * movementSpeedInterpolant;
- List afterimages = new List();
- for (int j = 0; j < existingDrawData.Count; j++)
- {
- var drawData = existingDrawData[j];
- Vector2 extraPosition = (Time % 6 == 0 ? new Vector2(Main.rand.NextFloat(-10f, 10f), Main.rand.NextFloat(-10f, 10f)) : Vector2.Zero);
- drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition + extraPosition;
- drawData.color = new Color(0, 255, 201) * opacity;
- drawData.scale = new Vector2(scale);
- afterimages.Add(drawData);
- }
- drawInfo.DrawDataCache.InsertRange(0, afterimages);
- }
- }
- }
-}
diff --git a/CalPlayer/DrawLayers/AscendedTrailLayer.cs b/CalPlayer/DrawLayers/AscendedTrailLayer.cs
deleted file mode 100644
index 3ec0408121..0000000000
--- a/CalPlayer/DrawLayers/AscendedTrailLayer.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.Collections.Generic;
-using CalamityMod.Items.VanillaArmorChanges;
-using Microsoft.Xna.Framework;
-using Terraria;
-using Terraria.DataStructures;
-using Terraria.ModLoader;
-
-namespace CalamityMod.CalPlayer.DrawLayers
-{
- public class AscendantTrailLayer : PlayerDrawLayer
- {
- public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.LastVanillaLayer);
-
- public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- if (drawInfo.shadow != 0f || drawPlayer.dead || drawPlayer.Calamity().AdrenalineTrail)
- return false;
-
- return drawPlayer.Calamity().ascendantTrail;
- }
-
- protected override void Draw(ref PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- List existingDrawData = drawInfo.DrawDataCache;
- float movementSpeedInterpolant = CobaltArmorSetChange.CalculateMovementSpeedInterpolant(drawPlayer);
- for (float i = 0f; i < drawPlayer.Calamity().OldPositions.Length; i += 1.2f)
- {
- float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
- float scale = MathHelper.Lerp(1f, 0.7f, completionRatio);
- float opacity = MathHelper.Lerp(0.18f, 0.06f, completionRatio) * movementSpeedInterpolant;
- List afterimages = new List();
- for (int j = 0; j < existingDrawData.Count; j++)
- {
- var drawData = existingDrawData[j];
- drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
- drawData.color = Color.Khaki * opacity;
- drawData.scale = new Vector2(scale);
- afterimages.Add(drawData);
- }
- drawInfo.DrawDataCache.InsertRange(0, afterimages);
- }
- }
- }
-}
diff --git a/CalPlayer/DrawLayers/AuricSetTrailLayer.cs b/CalPlayer/DrawLayers/AuricSetTrailLayer.cs
deleted file mode 100644
index 985f590c07..0000000000
--- a/CalPlayer/DrawLayers/AuricSetTrailLayer.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.Collections.Generic;
-using CalamityMod.Items.VanillaArmorChanges;
-using Microsoft.Xna.Framework;
-using Terraria;
-using Terraria.DataStructures;
-using Terraria.ModLoader;
-
-namespace CalamityMod.CalPlayer.DrawLayers
-{
- public class AuricSetTrailLayer : PlayerDrawLayer
- {
- public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.LastVanillaLayer);
-
- public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- if (drawInfo.shadow != 0f || drawPlayer.dead || drawPlayer.Calamity().AdrenalineTrail || drawPlayer.Calamity().ascendantTrail)
- return false;
-
- return drawPlayer.Calamity().auricSet;
- }
-
- protected override void Draw(ref PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- List existingDrawData = drawInfo.DrawDataCache;
- float movementSpeedInterpolant = CobaltArmorSetChange.CalculateMovementSpeedInterpolant(drawPlayer);
- for (float i = 0f; i < drawPlayer.Calamity().OldPositions.Length; i += 1.7f)
- {
- float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
- float scale = MathHelper.Lerp(1f, 0.6f, completionRatio);
- float opacity = MathHelper.Lerp(0.12f, 0.03f, completionRatio) * movementSpeedInterpolant;
- List afterimages = new List();
- for (int j = 0; j < existingDrawData.Count; j++)
- {
- var drawData = existingDrawData[j];
- drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
- drawData.color = new Color(105, 209, 248) * opacity;
- drawData.scale = new Vector2(scale);
- afterimages.Add(drawData);
- }
- drawInfo.DrawDataCache.InsertRange(0, afterimages);
- }
- }
- }
-}
diff --git a/CalPlayer/DrawLayers/CobaltSetTrailLayer.cs b/CalPlayer/DrawLayers/CobaltSetTrailLayer.cs
deleted file mode 100644
index 6c348fd81c..0000000000
--- a/CalPlayer/DrawLayers/CobaltSetTrailLayer.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System.Collections.Generic;
-using CalamityMod.Items.VanillaArmorChanges;
-using Microsoft.Xna.Framework;
-using Terraria;
-using Terraria.DataStructures;
-using Terraria.ModLoader;
-
-namespace CalamityMod.CalPlayer.DrawLayers
-{
- public class CobaltSetTrailLayer : PlayerDrawLayer
- {
- public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.LastVanillaLayer);
-
- public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- if (drawInfo.shadow != 0f || drawPlayer.dead || drawPlayer.Calamity().AdrenalineTrail || drawPlayer.Calamity().ascendantTrail)
- return false;
-
- return drawPlayer.Calamity().CobaltSet;
- }
-
- protected override void Draw(ref PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- List existingDrawData = drawInfo.DrawDataCache;
- float movementSpeedInterpolant = CobaltArmorSetChange.CalculateMovementSpeedInterpolant(drawPlayer);
- for (int i = 0; i < drawPlayer.Calamity().OldPositions.Length; i++)
- {
- float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
- float scale = MathHelper.Lerp(1f, 0.5f, completionRatio);
- float opacity = MathHelper.Lerp(0.23f, 0.07f, completionRatio) * movementSpeedInterpolant;
- List afterimages = new List();
- for (int j = 0; j < existingDrawData.Count; j++)
- {
- var drawData = existingDrawData[j];
- drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
- drawData.color = new Color(100, 164, 219) * opacity;
- drawData.color.B = (byte)(drawData.color.B * 1.4);
- drawData.scale = new Vector2(scale);
- afterimages.Add(drawData);
- }
- drawInfo.DrawDataCache.InsertRange(0, afterimages);
- }
- }
- }
-}
diff --git a/CalPlayer/DrawLayers/HatExtensionLayer.cs b/CalPlayer/DrawLayers/HatExtensionLayer.cs
index 7b512ea262..2a194db088 100644
--- a/CalPlayer/DrawLayers/HatExtensionLayer.cs
+++ b/CalPlayer/DrawLayers/HatExtensionLayer.cs
@@ -16,16 +16,19 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
- //Todo : Make this work even for accessories by somehow checking for the players.head equipslot's item instead of the head item.
Player drawPlayer = drawInfo.drawPlayer;
- Item headItem = drawPlayer.armor[0];
- if (drawPlayer.armor[10].type > ItemID.None)
- headItem = drawPlayer.armor[10];
+ if (drawPlayer.head == -1)
+ return;
- if (ModContent.GetModItem(headItem.type) is IExtendedHat extendedHatDrawer)
+ if (EquipLoader.GetEquipTexture(EquipType.Head, drawPlayer.head) == null)
+ return;
+
+ ModItem headItem = EquipLoader.GetEquipTexture(EquipType.Head, drawPlayer.head).Item;
+
+ if (headItem is IExtendedHat extendedHatDrawer)
{
- string equipSlotName = extendedHatDrawer.EquipSlotName(drawPlayer) != "" ? extendedHatDrawer.EquipSlotName(drawPlayer) : headItem.ModItem.Name;
+ string equipSlotName = extendedHatDrawer.EquipSlotName(drawPlayer) != "" ? extendedHatDrawer.EquipSlotName(drawPlayer) : headItem.Name;
int equipSlot = EquipLoader.GetEquipSlot(Mod, equipSlotName, EquipType.Head);
if (extendedHatDrawer.PreDrawExtension(drawInfo) && !drawInfo.drawPlayer.dead && equipSlot == drawPlayer.head)
diff --git a/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs b/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs
index 029b50fe1b..d5a92f8bfc 100644
--- a/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs
+++ b/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs
@@ -92,8 +92,6 @@ namespace CalamityMod.CalPlayer.DrawLayers
glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/SubsumingVortexSmallGlow").Value;
else if (itemType == ModContent.ItemType())
glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value;
- else if (itemType == ModContent.ItemType())
- glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value;
else if (itemType == ModContent.ItemType())
glowMask = ModContent.Request("CalamityMod/Items/Weapons/Ranged/VernalBolterGlow").Value;
else if (itemType == ModContent.ItemType())
diff --git a/CalPlayer/DrawLayers/YanmeiKnifeTrailLayer.cs b/CalPlayer/DrawLayers/YanmeiKnifeTrailLayer.cs
deleted file mode 100644
index 0b1ed520c6..0000000000
--- a/CalPlayer/DrawLayers/YanmeiKnifeTrailLayer.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.Collections.Generic;
-using Microsoft.Xna.Framework;
-using Terraria;
-using Terraria.DataStructures;
-using Terraria.ModLoader;
-
-namespace CalamityMod.CalPlayer.DrawLayers
-{
- public class YanmeiKnifeTrail : PlayerDrawLayer
- {
- public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.BackAcc);
-
- public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- if (drawInfo.shadow != 0f || drawPlayer.dead)
- return false;
-
- return drawPlayer.Calamity().kamiBoost;
- }
-
- protected override void Draw(ref PlayerDrawSet drawInfo)
- {
- Player drawPlayer = drawInfo.drawPlayer;
- List existingDrawData = drawInfo.DrawDataCache;
- for (int i = 0; i < drawPlayer.Calamity().OldPositions.Length; i++)
- {
- float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
- float scale = MathHelper.Lerp(1f, 0.5f, completionRatio);
- float opacity = MathHelper.Lerp(0.25f, 0.08f, completionRatio);
- List afterimages = new List();
- for (int j = 0; j < existingDrawData.Count; j++)
- {
- var drawData = existingDrawData[j];
- drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
- drawData.color = Color.Cyan * opacity;
- drawData.color.G = (byte)(drawData.color.G * 1.6);
- drawData.color.B = (byte)(drawData.color.B * 1.2);
- drawData.scale = new Vector2(scale);
- afterimages.Add(drawData);
- }
- drawInfo.DrawDataCache.InsertRange(0, afterimages);
- }
- }
- }
-}
diff --git a/CalamityConditions.cs b/CalamityConditions.cs
index 7d7f2705c8..13b295e844 100644
--- a/CalamityConditions.cs
+++ b/CalamityConditions.cs
@@ -42,7 +42,7 @@ namespace CalamityMod
//
public static readonly Condition DownedDesertScourge = Create("Drops.DownedDS", () => DownedBossSystem.downedDesertScourge);
- public static readonly Condition DownedCrabulon = Create("Drops.DownedCrabulon", () => DownedBossSystem.downedDesertScourge);
+ public static readonly Condition DownedCrabulon = Create("Drops.DownedCrabulon", () => DownedBossSystem.downedCrabulon);
public static readonly Condition DownedHiveMind = Create("Drops.DownedHM", () => DownedBossSystem.downedHiveMind);
public static readonly Condition DownedPerforator = Create("Drops.DownedPerfs", () => DownedBossSystem.downedPerforator);
public static readonly Condition DownedSlimeGod = Create("Drops.DownedSG", () => DownedBossSystem.downedSlimeGod);
diff --git a/CalamityConfig.cs b/CalamityConfig.cs
index 7db9709350..82b26299a2 100644
--- a/CalamityConfig.cs
+++ b/CalamityConfig.cs
@@ -76,6 +76,10 @@ namespace CalamityMod
[DefaultValue(true)]
public bool EnableVanillaTextureEdits { get; set; }
+ [BackgroundColor(192, 54, 64, 192)]
+ [DefaultValue(true)]
+ public bool SunkenSeaBackgroundDistortion { get; set; }
+
private const int MinParticleLimit = 500;
private const int MaxParticleLimit = 10000;
diff --git a/Cooldowns/GenericBandCooldown.cs b/Cooldowns/GenericBandCooldown.cs
new file mode 100644
index 0000000000..eccf24955e
--- /dev/null
+++ b/Cooldowns/GenericBandCooldown.cs
@@ -0,0 +1,19 @@
+using Microsoft.Xna.Framework;
+using Terraria;
+using Terraria.Audio;
+using Terraria.Localization;
+using static CalamityMod.CalamityUtils;
+
+namespace CalamityMod.Cooldowns
+{
+ public class GenericBandCooldown : CooldownHandler
+ {
+ public static new string ID => "BandCooldown";
+ public override bool ShouldDisplay => true;
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
+ public override string Texture => "CalamityMod/Cooldowns/GenericBandCooldown";
+ public override Color OutlineColor => Color.White;
+ public override Color CooldownStartColor => Color.SlateGray;
+ public override Color CooldownEndColor => Color.Gray;
+ }
+}
diff --git a/Cooldowns/GenericBandCooldown.png b/Cooldowns/GenericBandCooldown.png
new file mode 100644
index 0000000000..afdfd5d97a
Binary files /dev/null and b/Cooldowns/GenericBandCooldown.png differ
diff --git a/Cooldowns/GenericBandCooldownOutline.png b/Cooldowns/GenericBandCooldownOutline.png
new file mode 100644
index 0000000000..ece251f504
Binary files /dev/null and b/Cooldowns/GenericBandCooldownOutline.png differ
diff --git a/Cooldowns/GenericBandCooldownOverlay.png b/Cooldowns/GenericBandCooldownOverlay.png
new file mode 100644
index 0000000000..f89301304d
Binary files /dev/null and b/Cooldowns/GenericBandCooldownOverlay.png differ
diff --git a/Cooldowns/WarbanneroftheRighteousBuff.cs b/Cooldowns/WarbanneroftheRighteousBuff.cs
index 78ddea9b66..17b7d3769c 100644
--- a/Cooldowns/WarbanneroftheRighteousBuff.cs
+++ b/Cooldowns/WarbanneroftheRighteousBuff.cs
@@ -16,9 +16,9 @@ namespace CalamityMod.Cooldowns
{
public class WarbanneroftheRighteousBuff : CooldownHandler
{
- public float CompletionPercentage => Utils.GetLerpValue(80, 0, instance.timeLeft);
+ public float CompletionPercentage => Utils.GetLerpValue(70, 0, instance.timeLeft);
private bool IsEmpty => CompletionPercentage == 0;
- private float TextXOffset => (instance.timeLeft <= 20 ? -11 : -18f);
+ private float TextXOffset => instance.timeLeft <= 20 ? -11f : -18f;
private Vector2 TextPosition => new(TextXOffset, 15);
private Color TextColor => Color.White;
private Color TextBorderColor => Color.Black;
diff --git a/Effects/BasicTextureDistortionShader.fx b/Effects/BasicTextureDistortionShader.fx
new file mode 100644
index 0000000000..084d452391
--- /dev/null
+++ b/Effects/BasicTextureDistortionShader.fx
@@ -0,0 +1,26 @@
+sampler baseTexture : register(s0);
+sampler distortionTexture : register(s1);
+
+float time;
+float distortionXSpeed;
+float distortionYSpeed;
+float distortionStrength;
+float noiseScale;
+
+float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
+{
+ float2 distortedCoords = coords + float2(time * distortionXSpeed, time * distortionYSpeed);
+ distortedCoords *= noiseScale;
+ float distortion = tex2D(distortionTexture, distortedCoords).r;
+
+ float4 returnColor = tex2D(baseTexture, coords + distortion * distortionStrength);
+ return returnColor * sampleColor.a;
+}
+
+technique Technique1
+{
+ pass DistortionPass
+ {
+ PixelShader = compile ps_2_0 PixelShaderFunction();
+ }
+}
diff --git a/Effects/BasicTextureDistortionShader.xnb b/Effects/BasicTextureDistortionShader.xnb
new file mode 100644
index 0000000000..7d0177e650
Binary files /dev/null and b/Effects/BasicTextureDistortionShader.xnb differ
diff --git a/Effects/CalamityShaders.cs b/Effects/CalamityShaders.cs
index 5d9a73271a..1b283d531c 100644
--- a/Effects/CalamityShaders.cs
+++ b/Effects/CalamityShaders.cs
@@ -210,6 +210,14 @@ namespace CalamityMod.Effects
internal static Effect FlipScreenShader;
#endregion
+ //
+ // All below shaders were created by fryzahh
+ //
+ #region fryzahh's Shaders
+ // A simple shader which distorts an image using a provided texture of choice.
+ internal static Effect BasicTextureDistortionShader;
+ #endregion
+
public override void PostSetupContent()
{
AssetRepository calAss = CalamityMod.Instance.Assets;
@@ -417,6 +425,11 @@ namespace CalamityMod.Effects
FlipScreenShader = LoadShader("ScreenShaders/FlipScreen");
RegisterScreenShader(FlipScreenShader, "FlipTheScreen", "FlipScreen",EffectPriority.VeryHigh);
#endregion
+
+ #region Loading fryzahh's Shaders
+ BasicTextureDistortionShader = LoadShader("BasicTextureDistortionShader");
+ RegisterMiscShader(BasicTextureDistortionShader, "DistortionPass", "BasicTextureDistortion");
+ #endregion
}
// Shorthand to register a loaded shader in Terraria's graphics engine
diff --git a/Enums/HerbType.cs b/Enums/HerbType.cs
new file mode 100644
index 0000000000..42e672407e
--- /dev/null
+++ b/Enums/HerbType.cs
@@ -0,0 +1,13 @@
+namespace CalamityMod
+{
+ public enum HerbType
+ {
+ Daybloom,
+ Moonglow,
+ Blinkroot,
+ Deathweed,
+ Waterleaf,
+ Fireblossom,
+ Shiverthorn
+ }
+}
diff --git a/Enums/PlanterBoxType.cs b/Enums/PlanterBoxType.cs
new file mode 100644
index 0000000000..60447d4ac5
--- /dev/null
+++ b/Enums/PlanterBoxType.cs
@@ -0,0 +1,14 @@
+namespace CalamityMod
+{
+ public enum PlanterBoxType
+ {
+ Daybloom,
+ Moonglow,
+ Deathweed,
+ DeathweedCrimson,
+ Blinkroot,
+ Waterleaf,
+ Shiverthorn,
+ Fireblossom
+ }
+}
diff --git a/Enums/VanillaWingID.cs b/Enums/VanillaWingID.cs
index 1604736eea..5e050247a1 100644
--- a/Enums/VanillaWingID.cs
+++ b/Enums/VanillaWingID.cs
@@ -12,7 +12,7 @@
BoneWings = 8,
FlameWings = 9,
FrozenWings = 10,
- SpectreWings = 11,
+ GhostWings = 11, // Spectre Wings
SteampunkWings = 12,
LeafWings = 13,
BatWings = 14,
diff --git a/Events/AcidRainEvent.cs b/Events/AcidRainEvent.cs
index d408942aa2..5963ba605b 100644
--- a/Events/AcidRainEvent.cs
+++ b/Events/AcidRainEvent.cs
@@ -181,7 +181,7 @@ namespace CalamityMod.Events
///
public static void TryStartEvent(bool forceRain = false)
{
- if (AcidRainEventIsOngoing || (!NPC.downedBoss1 && !Main.hardMode && !DownedBossSystem.downedAquaticScourge) || BossRushEvent.BossRushActive)
+ if (AcidRainEventIsOngoing || (!NPC.downedBoss1 && !Main.hardMode && !DownedBossSystem.downedAquaticScourge && !DownedBossSystem.downedPolterghast) || BossRushEvent.BossRushActive || Terraria.GameContent.Creative.CreativePowerManager.Instance.GetPower().Enabled)
return;
int playerCount = Main.CurrentFrameFlags.ActivePlayersCount;
diff --git a/ExtraJumps/StatigelJump.cs b/ExtraJumps/StatigelJump.cs
index a933dc82ef..e3fd591e74 100644
--- a/ExtraJumps/StatigelJump.cs
+++ b/ExtraJumps/StatigelJump.cs
@@ -7,7 +7,7 @@ namespace CalamityMod.ExtraJumps
{
public class StatigelJump : ExtraJump
{
- public override Position GetDefaultPosition() => BeforeBottleJumps;
+ public override Position GetDefaultPosition() => new Before(BlizzardInABottle);
public override float GetDurationMultiplier(Player player) => 1.25f;
// Values equivalent to the Fart in a Jar
diff --git a/ExtraTextures/GreyscaleGradients/Pebbles.png b/ExtraTextures/GreyscaleGradients/Pebbles.png
new file mode 100644
index 0000000000..5f05401249
Binary files /dev/null and b/ExtraTextures/GreyscaleGradients/Pebbles.png differ
diff --git a/ExtraTextures/GreyscaleGradients/Smudges2.png b/ExtraTextures/GreyscaleGradients/Smudges2.png
new file mode 100644
index 0000000000..fcdefedba1
Binary files /dev/null and b/ExtraTextures/GreyscaleGradients/Smudges2.png differ
diff --git a/ExtraTextures/GreyscaleGradients/Swirls.png b/ExtraTextures/GreyscaleGradients/Swirls.png
new file mode 100644
index 0000000000..da2c4380b0
Binary files /dev/null and b/ExtraTextures/GreyscaleGradients/Swirls.png differ
diff --git a/ExtraTextures/Miscellaneous/NuclearTorrent.png b/ExtraTextures/Miscellaneous/NuclearTorrent.png
new file mode 100644
index 0000000000..14d160d3d5
Binary files /dev/null and b/ExtraTextures/Miscellaneous/NuclearTorrent.png differ
diff --git a/ForegroundDrawing/LoopingTextures/LoopingTextureForeground.cs b/ForegroundDrawing/LoopingTextures/LoopingTextureForeground.cs
new file mode 100644
index 0000000000..441b8de6c0
--- /dev/null
+++ b/ForegroundDrawing/LoopingTextures/LoopingTextureForeground.cs
@@ -0,0 +1,123 @@
+using CalamityMod.NPCs.OldDuke;
+using Microsoft.Xna.Framework;
+using Microsoft.Xna.Framework.Graphics;
+using ReLogic.Content;
+using Terraria;
+using Terraria.ModLoader;
+
+namespace CalamityMod.ForegroundDrawing.LoopingTextures
+{
+ public abstract class LoopingTextureForeground : ModSystem
+ {
+ public virtual string Texture => "CalamityMod/ExtraTextures/Miscellaneous/NuclearTorrent";
+
+ ///
+ /// How much the effect has moved. Increments by Speed.
+ ///
+ float Progress = 0f;
+
+ ///
+ /// The speed at which Progress is incremented every frame.
+ ///
+ public virtual float Speed => 60f;
+
+ ///
+ /// How opaque the visual is. Caps out at IntensityMaximum.
+ ///
+ public float Intensity = 0f;
+
+ ///
+ /// How opaque the visual can become before capping out.
+ ///
+ public virtual float IntensityMaximum => 0.15f;
+
+ ///
+ /// Current parallax.
+ ///
+ Vector2 Parallax = Vector2.Zero;
+
+ ///
+ /// Current parallax depth.
+ ///
+ public virtual Vector2 ParallaxDepth => Vector2.Zero;
+
+ ///
+ /// When true, the Intensity will increase until it caps out. If false it will decrease until it hits 0.
+ ///
+ /// Whether or not the visual is active.
+ public virtual bool DoesThisShow()
+ {
+ return false;
+ }
+
+ public override void PostDrawTiles()
+ {
+ if (DoesThisShow())
+ {
+ Intensity = MathHelper.Lerp(Intensity, IntensityMaximum, 0.1f);
+ }
+ else
+ {
+ Intensity = MathHelper.Lerp(Intensity, 0, 0.1f);
+ }
+
+ Intensity = MathHelper.Clamp(Intensity, 0f, 1f);
+
+ Parallax += Main.LocalPlayer.velocity * ParallaxDepth;
+
+ Progress += Speed;
+
+ Main.spriteBatch.Begin();
+ Draw();
+ PostDraw();
+ Main.spriteBatch.End();
+
+ Update();
+ }
+
+ public override void PostUpdateEverything()
+ {
+ Update();
+ }
+
+ ///
+ /// Extra drawing logic can be placed here.
+ ///
+ public virtual void PostDraw()
+ {
+
+ }
+
+ ///
+ /// Called every frame. Run behavior such as particle effects here.
+ ///
+ public virtual void Update()
+ {
+
+ }
+
+ ///
+ /// Override this to replace existing drawing logic. Only recommended if you know what you're doing.
+ ///
+ public virtual void Draw()
+ {
+ var tex = ModContent.Request(Texture);
+
+ for (var i = -4; i < 14; i++)
+ {
+ float wid = tex.Width();
+ float hei = tex.Height();
+
+ var rect = new Rectangle(0, 0, (int)wid, (int)hei);
+
+ var rot = -Main.WindForVisuals;
+
+ var col = new Color(Intensity, Intensity, Intensity, 0f);
+
+ Main.EntitySpriteDraw(tex.Value, new Vector2(Parallax.X % wid, 0).RotatedBy(rot) + new Vector2(tex.Width() * i, 0).RotatedBy(rot), rect, col, rot, new Vector2(0, (hei - Progress) % hei), 1, SpriteEffects.None);
+ Main.EntitySpriteDraw(tex.Value, new Vector2(Parallax.X % wid, 0).RotatedBy(rot) + new Vector2(tex.Width() * i, -hei).RotatedBy(rot), rect, col, rot, new Vector2(0, (hei - Progress) % hei), 1, SpriteEffects.None);
+ Main.EntitySpriteDraw(tex.Value, new Vector2(Parallax.X % wid, 0).RotatedBy(rot) + new Vector2(tex.Width() * i, -hei * 2).RotatedBy(rot), rect, col, rot, new Vector2(0, (hei - Progress) % hei), 1, SpriteEffects.None);
+ }
+ }
+ }
+}
diff --git a/ForegroundDrawing/LoopingTextures/NuclearTorrentForeground.cs b/ForegroundDrawing/LoopingTextures/NuclearTorrentForeground.cs
new file mode 100644
index 0000000000..59631603b2
--- /dev/null
+++ b/ForegroundDrawing/LoopingTextures/NuclearTorrentForeground.cs
@@ -0,0 +1,101 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using CalamityMod.NPCs.OldDuke;
+using Microsoft.Xna.Framework;
+using Microsoft.Xna.Framework.Graphics;
+using ReLogic.Content;
+using Terraria;
+using Terraria.ModLoader;
+
+namespace CalamityMod.ForegroundDrawing.LoopingTextures
+{
+ public class NuclearTorrentForeground : LoopingTextureForeground
+ {
+ public override Vector2 ParallaxDepth => new Vector2(1f, 1f);
+
+ public override float IntensityMaximum => 0.045f;
+
+ public static List Raindrops = new List();
+
+ public class NuclearRaindrop
+ {
+ public Vector2 Position;
+ public Vector2 Velocity;
+
+ public NuclearRaindrop(Vector2 pos, Vector2 vel)
+ {
+ Position = pos;
+ Velocity = vel;
+ }
+
+ public void Update(NuclearRaindrop drop, NuclearTorrentForeground foreground)
+ {
+ drop.Position += drop.Velocity;
+ drop.Position -= Main.LocalPlayer.velocity;
+
+ drop.Velocity = new Vector2(0, 20).RotatedBy(-Main.windSpeedCurrent);
+
+ if (drop.Position.Y > Main.screenHeight + 200)
+ {
+ RemoveDrop(drop);
+ }
+ }
+
+ public void Draw(NuclearRaindrop drop, NuclearTorrentForeground foreground)
+ {
+ Asset tex = ModContent.Request("CalamityMod/ForegroundDrawing/LoopingTextures/NuclearTorrentRaindrop");
+
+ float intensity = foreground.Intensity / foreground.IntensityMaximum / 4f;
+
+ Main.EntitySpriteDraw(tex.Value, drop.Position, tex.Frame(), Color.White.MultiplyRGBA(new Color(intensity, intensity, intensity, intensity)), Vector2.Zero.AngleTo(drop.Velocity) - MathHelper.ToRadians(90f), tex.Size() / 2, new Vector2(1f, 4f), SpriteEffects.None);
+ }
+ }
+
+ public static void RemoveDrop(NuclearRaindrop drop)
+ {
+ Raindrops.Remove(drop);
+ }
+
+ public override bool DoesThisShow() => NPC.CountNPCS(ModContent.NPCType()) > 0 && Main.LocalPlayer.Calamity().ZoneSulphur && !CalamityServerConfig.Instance.BossesStopWeather;
+
+ public override void Update()
+ {
+ if (NPC.CountNPCS(ModContent.NPCType()) > 0)
+ {
+ int duke = NPC.FindFirstNPC(ModContent.NPCType());
+
+ Main.windSpeedCurrent = MathHelper.Lerp(Main.windSpeedCurrent, MathHelper.ToRadians(50f), 0.005f);
+
+ foreach (Rain rain in Main.rain)
+ {
+ rain.velocity = new Vector2(0, 15).RotatedBy(-Main.windSpeedCurrent);
+ rain.rotation = Vector2.Zero.AngleTo(rain.velocity) + MathHelper.PiOver2;
+ }
+ }
+
+ NuclearRaindrop dr = new NuclearRaindrop(new Vector2(Main.screenWidth / 2f, -100) + new Vector2(Main.rand.NextFloat(-Main.screenWidth, Main.screenWidth), -Main.screenWidth * 0.65f).RotatedBy(-Main.windSpeedCurrent),
+ new Vector2(0, 20).RotatedBy(-Main.windSpeedCurrent));
+ Raindrops.Add(dr);
+
+ for (int i = 0; i < Raindrops.Count; i++)
+ {
+ NuclearRaindrop drop = Raindrops[i];
+
+ drop.Update(drop, this);
+ }
+ }
+
+ public override void PostDraw()
+ {
+ for (int i = 0; i < Raindrops.Count; i++)
+ {
+ NuclearRaindrop drop = Raindrops[i];
+
+ drop.Draw(drop, this);
+ }
+ }
+ }
+}
diff --git a/ForegroundDrawing/LoopingTextures/NuclearTorrentRaindrop.png b/ForegroundDrawing/LoopingTextures/NuclearTorrentRaindrop.png
new file mode 100644
index 0000000000..428091be12
Binary files /dev/null and b/ForegroundDrawing/LoopingTextures/NuclearTorrentRaindrop.png differ
diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs
index d9b9212975..70666e8415 100644
--- a/ILEditing/MechanicILChanges.cs
+++ b/ILEditing/MechanicILChanges.cs
@@ -652,7 +652,8 @@ namespace CalamityMod.ILEditing
if (modPlayer is null)
return;
- if (modPlayer.chaliceOfTheBloodGod && modPlayer.chaliceBleedoutBuffer > 0D)
+ // CIT 17MAY2025: Bleedout clear has a special interaction with Bloom Stone handled elsewhere; do not run this if wearing Bloom Stone
+ if (modPlayer.chaliceOfTheBloodGod && modPlayer.chaliceBleedoutBuffer > 0D && !modPlayer.bloomStone)
{
// 20FEB2024: Ozzatron: to prevent abuse, buffer clearing is now 50% of the potion instead of 50% of your buffer
float amountOfBleedToClear = ChaliceOfTheBloodGod.HealingPotionRatioForBufferClear * player.GetHealLife(potion, true);
diff --git a/Items/Accessories/AbyssalDivingSuit.cs b/Items/Accessories/AbyssalDivingSuit.cs
index 8fa999b765..17b15c0aba 100644
--- a/Items/Accessories/AbyssalDivingSuit.cs
+++ b/Items/Accessories/AbyssalDivingSuit.cs
@@ -67,7 +67,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient().
AddIngredient(ItemID.LunarBar, 5).
AddIngredient(15).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/AscendantInsignia.cs b/Items/Accessories/AscendantInsignia.cs
index 307cc2620b..d1d22d9a12 100644
--- a/Items/Accessories/AscendantInsignia.cs
+++ b/Items/Accessories/AscendantInsignia.cs
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(5).
AddIngredient(5).
AddIngredient(ItemID.SoulofFlight, 10).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/AsgardsValor_Shield.png b/Items/Accessories/AsgardsValor_Shield.png
index ea83064192..320b309ddd 100644
Binary files a/Items/Accessories/AsgardsValor_Shield.png and b/Items/Accessories/AsgardsValor_Shield.png differ
diff --git a/Items/Accessories/AuricSoulArtifact.cs b/Items/Accessories/AuricSoulArtifact.cs
index f20364b034..794f987a70 100644
--- a/Items/Accessories/AuricSoulArtifact.cs
+++ b/Items/Accessories/AuricSoulArtifact.cs
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Items.Placeables.Plates;
using CalamityMod.Rarities;
+using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -34,7 +35,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(5).
AddIngredient(25).
AddIngredient(25).
- AddTile(TileID.DemonAltar).
+ AddTile().
Register();
}
}
diff --git a/Items/Accessories/BadgeofBravery.cs b/Items/Accessories/BadgeofBravery.cs
index 8f68dd37c7..14d252e5f0 100644
--- a/Items/Accessories/BadgeofBravery.cs
+++ b/Items/Accessories/BadgeofBravery.cs
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient(ItemID.WarriorEmblem).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/BatholithBangle.cs b/Items/Accessories/BatholithBangle.cs
new file mode 100644
index 0000000000..ef0d8c630f
--- /dev/null
+++ b/Items/Accessories/BatholithBangle.cs
@@ -0,0 +1,39 @@
+using CalamityMod.CalPlayer;
+using Terraria;
+using Terraria.ID;
+using Terraria.ModLoader;
+
+namespace CalamityMod.Items.Accessories
+{
+ public class BatholithBangle : ModItem, ILocalizedModType
+ {
+ public new string LocalizationCategory => "Items.Accessories";
+ public static int cooldown = 600;
+ public static int damage = 225;
+ public override void SetDefaults()
+ {
+ Item.width = 36;
+ Item.height = 28;
+ Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
+ Item.rare = ItemRarityID.Green;
+ Item.accessory = true;
+ }
+ public override void UpdateAccessory(Player player, bool hideVisual)
+ {
+ CalamityPlayer modPlayer = player.Calamity();
+ modPlayer.batholithBangle = true;
+ modPlayer.batholithBangleVisual = !hideVisual;
+ }
+ public override void AddRecipes()
+ {
+ CreateRecipe().
+ AddIngredient().
+ AddRecipeGroup("Boss2Material", 15).
+ AddIngredient(ItemID.Granite, 45).
+ AddIngredient(ItemID.Amber, 3).
+ AddIngredient(ItemID.FallenStar, 5).
+ AddTile(TileID.Anvils).
+ Register();
+ }
+ }
+}
diff --git a/Items/Accessories/BatholithBangle.png b/Items/Accessories/BatholithBangle.png
new file mode 100644
index 0000000000..bd19ef3e43
Binary files /dev/null and b/Items/Accessories/BatholithBangle.png differ
diff --git a/Items/Accessories/BlackGlassBand.cs b/Items/Accessories/BlackGlassBand.cs
index e5bd9dc238..ff767add74 100644
--- a/Items/Accessories/BlackGlassBand.cs
+++ b/Items/Accessories/BlackGlassBand.cs
@@ -8,8 +8,8 @@ namespace CalamityMod.Items.Accessories
public class BlackGlassBand : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
- public static int cooldown = 420;
- public static int damage = 40;
+ public static int cooldown = 300;
+ public static int damage = 32;
public override void SetDefaults()
{
Item.width = 30;
@@ -27,9 +27,9 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
- AddRecipeGroup("AnyGoldBar", 5).
- AddIngredient(ItemID.Diamond, 2).
- AddIngredient(ItemID.Obsidian, 25).
+ AddRecipeGroup("AnyGoldBar", 8).
+ AddIngredient(ItemID.Diamond, 3).
+ AddIngredient(ItemID.Obsidian, 35).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs
index c7e084615f..d77f390a86 100644
--- a/Items/Accessories/BlazingCore.cs
+++ b/Items/Accessories/BlazingCore.cs
@@ -40,6 +40,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().blazingCore = true;
+ player.noKnockback = true;
}
public static void HandleStars(Player player)
diff --git a/Items/Accessories/BloodflareCore.cs b/Items/Accessories/BloodflareCore.cs
index 0cc9b6c92a..d045c257a9 100644
--- a/Items/Accessories/BloodflareCore.cs
+++ b/Items/Accessories/BloodflareCore.cs
@@ -23,6 +23,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.bloodflareCore = true;
+ player.noKnockback = true;
}
}
}
diff --git a/Items/Accessories/BloomStone.cs b/Items/Accessories/BloomStone.cs
index 6858aaff91..bd36d30f54 100644
--- a/Items/Accessories/BloomStone.cs
+++ b/Items/Accessories/BloomStone.cs
@@ -22,101 +22,10 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.25f, 0.4f, 0.2f);
- // Provide life benefits if the player is standing on ground and has typical gravity.
- int x = (int)player.Center.X / 16;
- int y = (int)(player.Bottom.Y - 1f) / 16;
- Tile groundTile = CalamityUtils.ParanoidTileRetrieval(x, y + 1);
- bool groundTileIsSolid = groundTile.HasUnactuatedTile && (Main.tileSolid[groundTile.TileType] || Main.tileSolidTop[groundTile.TileType]);
- if (groundTileIsSolid && player.gravDir == 1f)
- modPlayer.BloomStoneRegen = true;
-
- // Flower boots effects.
- if (player.whoAmI == Main.myPlayer && player.velocity.Y == 0f && player.grappling[0] == -1)
- {
- Tile walkTile = CalamityUtils.ParanoidTileRetrieval(x, y);
- if (!walkTile.HasTile && walkTile.LiquidAmount == 0 && groundTile != null && WorldGen.SolidTile(groundTile))
- {
- walkTile.TileFrameY = 0;
- walkTile.Get().Slope = SlopeType.Solid;
- walkTile.Get().IsHalfBlock = false;
- // On dirt blocks, there's a small chance to grow a dye plant.
- if (groundTile.TileType == TileID.Dirt)
- {
- if (Main.rand.NextBool(1000))
- {
- walkTile.Get().HasTile = true;
- walkTile.TileType = TileID.DyePlants;
- walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
- while (walkTile.TileFrameX == 144)
- walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
- }
-
- if (Main.netMode == NetmodeID.MultiplayerClient)
- NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
- }
-
- // On grass, grow flowers.
- if (groundTile.TileType == TileID.Grass)
- {
- if (Main.rand.NextBool())
- {
- walkTile.Get().HasTile = true;
- walkTile.TileType = TileID.Plants;
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 11));
-
- while (walkTile.TileFrameX == 144)
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 11));
- }
- else
- {
- walkTile.Get().HasTile = true;
- walkTile.TileType = TileID.Plants2;
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 21));
-
- while (walkTile.TileFrameX == 144)
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 21));
- }
-
- if (Main.netMode == NetmodeID.MultiplayerClient)
- NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
- }
-
- // On hallowed grass, grow hallowed flowers.
- else if (groundTile.TileType == TileID.HallowedGrass)
- {
- if (Main.rand.NextBool())
- {
- walkTile.Get().HasTile = true;
- walkTile.TileType = TileID.HallowedPlants;
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(4, 7));
- while (walkTile.TileFrameX == 90)
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(4, 7));
- }
- else
- {
- walkTile.Get().HasTile = true;
- walkTile.TileType = TileID.HallowedPlants2;
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(2, 8));
- while (walkTile.TileFrameX == 90)
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(2, 8));
- }
-
- if (Main.netMode == NetmodeID.MultiplayerClient)
- NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
- }
-
- // On jungle grass, grow jungle flowers.
- else if (groundTile.TileType == TileID.JungleGrass)
- {
- walkTile.Get().HasTile = true;
- walkTile.TileType = TileID.JunglePlants2;
- walkTile.TileFrameX = (short)(18 * Main.rand.Next(9, 17));
-
- if (Main.netMode == NetmodeID.MultiplayerClient)
- NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
- }
- }
- }
+ modPlayer.healingPotionMultiplier += 0.5f;
+ modPlayer.bloomStone = true;
+ modPlayer.bloomStoneHookVisuals = true;
}
+ public override void UpdateVanity(Player player) => player.Calamity().bloomStoneHookVisuals = true;
}
}
diff --git a/Items/Accessories/BlunderBooster.cs b/Items/Accessories/BlunderBooster.cs
index f702b21117..1a1b2bac13 100644
--- a/Items/Accessories/BlunderBooster.cs
+++ b/Items/Accessories/BlunderBooster.cs
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient().
AddIngredient(8).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/DaawnlightSpiritOrigin.cs b/Items/Accessories/DaawnlightSpiritOrigin.cs
index 41291522ae..58ac8d754c 100644
--- a/Items/Accessories/DaawnlightSpiritOrigin.cs
+++ b/Items/Accessories/DaawnlightSpiritOrigin.cs
@@ -152,7 +152,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(15).
AddIngredient(ItemID.LunarBar, 10).
AddIngredient(4).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs
index 030506fa76..ab510a8525 100644
--- a/Items/Accessories/DarkSunRing.cs
+++ b/Items/Accessories/DarkSunRing.cs
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.darkSunRing = true;
+ player.noKnockback = true;
}
public override void AddRecipes()
diff --git a/Items/Accessories/DeadshotBrooch.cs b/Items/Accessories/DeadshotBrooch.cs
index d017624cdf..16e3459913 100644
--- a/Items/Accessories/DeadshotBrooch.cs
+++ b/Items/Accessories/DeadshotBrooch.cs
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().deadshotBrooch = true;
- player.Calamity().rangedAmmoCost *= 0.8f;
+ player.Calamity().ammoCost *= 0.8f;
player.GetDamage() += 0.12f;
player.GetCritChance() += 7;
}
diff --git a/Items/Accessories/DimensionalSoulArtifact.cs b/Items/Accessories/DimensionalSoulArtifact.cs
index e449c12a33..434063f4be 100644
--- a/Items/Accessories/DimensionalSoulArtifact.cs
+++ b/Items/Accessories/DimensionalSoulArtifact.cs
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Items.Placeables.Plates;
using CalamityMod.Rarities;
+using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -33,7 +34,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(5).
AddIngredient(25).
AddIngredient(25).
- AddTile(TileID.DemonAltar).
+ AddTile().
Register();
}
}
diff --git a/Items/Accessories/DraedonsHeart.cs b/Items/Accessories/DraedonsHeart.cs
index abbe1e35a3..356c9384cb 100644
--- a/Items/Accessories/DraedonsHeart.cs
+++ b/Items/Accessories/DraedonsHeart.cs
@@ -57,6 +57,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.adrenaline = 0f;
modPlayer.draedonsHeart = true;
+ player.noKnockback = true;
modPlayer.hadNanomachinesLastFrame = true;
modPlayer.AdrenalineDuration = NanomachinesDuration;
modPlayer.contactDamageReduction += ContactDamageReduction;
diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs
index 5bb6405a7c..0e1299f0ed 100644
--- a/Items/Accessories/EldritchSoulArtifact.cs
+++ b/Items/Accessories/EldritchSoulArtifact.cs
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(5).
AddIngredient(25).
AddIngredient(25).
- AddTile(TileID.DemonAltar).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/EnchantedPearl.png b/Items/Accessories/EnchantedPearl.png
index db3018d0fe..1dcc3798c7 100644
Binary files a/Items/Accessories/EnchantedPearl.png and b/Items/Accessories/EnchantedPearl.png differ
diff --git a/Items/Accessories/FlameLickedShell.cs b/Items/Accessories/FlameLickedShell.cs
index 4637cba6cc..4cf105a720 100644
--- a/Items/Accessories/FlameLickedShell.cs
+++ b/Items/Accessories/FlameLickedShell.cs
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.flameLickedShell = true;
+ player.noKnockback = true;
}
public static void handleParry(Player player)
diff --git a/Items/Accessories/GladiatorsLocket.cs b/Items/Accessories/GladiatorsLocket.cs
index c7b583cea5..104e8933bc 100644
--- a/Items/Accessories/GladiatorsLocket.cs
+++ b/Items/Accessories/GladiatorsLocket.cs
@@ -1,8 +1,4 @@
using System;
-using CalamityMod.Buffs.Summon;
-using CalamityMod.CalPlayer;
-using CalamityMod.Projectiles.Typeless;
-using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -14,8 +10,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
- Item.width = 42;
- Item.height = 36;
+ Item.width = 48;
+ Item.height = 54;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
diff --git a/Items/Accessories/GladiatorsLocket.png b/Items/Accessories/GladiatorsLocket.png
index d2e1c67d65..372792ae48 100644
Binary files a/Items/Accessories/GladiatorsLocket.png and b/Items/Accessories/GladiatorsLocket.png differ
diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs
index 8ea3582908..223d3dc0c0 100644
--- a/Items/Accessories/HeartoftheElements.cs
+++ b/Items/Accessories/HeartoftheElements.cs
@@ -183,6 +183,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient().
AddIngredient().
AddIngredient().
+ AddIngredient(ItemID.FragmentStardust, 6).
AddTile(TileID.LunarCraftingStation).
Register();
}
diff --git a/Items/Accessories/OccultSkullCrown.cs b/Items/Accessories/OccultSkullCrown.cs
index 96480eb4f3..60b9a16ca6 100644
--- a/Items/Accessories/OccultSkullCrown.cs
+++ b/Items/Accessories/OccultSkullCrown.cs
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient().
AddIngredient().
AddIngredient(3).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/OldDukeScales.cs b/Items/Accessories/OldDukeScales.cs
index 9e38022feb..0a7355d763 100644
--- a/Items/Accessories/OldDukeScales.cs
+++ b/Items/Accessories/OldDukeScales.cs
@@ -29,6 +29,7 @@ namespace CalamityMod.Items.Accessories
{
OldDukeScalesPlayer modPlayer = player.GetModPlayer();
modPlayer.OldDukeScalesOn = true;
+ player.noKnockback = true;
}
}
diff --git a/Items/Accessories/PhantomicArtifact.cs b/Items/Accessories/PhantomicArtifact.cs
index 15ea7c2134..12171a8034 100644
--- a/Items/Accessories/PhantomicArtifact.cs
+++ b/Items/Accessories/PhantomicArtifact.cs
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(5).
AddIngredient(25).
AddIngredient(20).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
diff --git a/Items/Accessories/PlanebreakersPouch.cs b/Items/Accessories/PlanebreakersPouch.cs
index 20902eceda..5bd2fdf625 100644
--- a/Items/Accessories/PlanebreakersPouch.cs
+++ b/Items/Accessories/PlanebreakersPouch.cs
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
player.magicQuiver = true;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.deadshotBrooch = true;
- modPlayer.rangedAmmoCost *= 0.8f;
+ modPlayer.ammoCost *= 0.8f;
}
public override void ModifyTooltips(List tooltips) => tooltips.IntegrateHotkey(CalamityKeybinds.AmmoCycleHotkey);
diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs
index 01232cb368..0450a4c4fe 100644
--- a/Items/Accessories/ProfanedSoulArtifact.cs
+++ b/Items/Accessories/ProfanedSoulArtifact.cs
@@ -106,7 +106,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(5).
AddIngredient(25).
AddIngredient(25).
- AddTile(TileID.DemonAltar).
+ AddTile(TileID.MythrilAnvil).
Register();
}
diff --git a/Items/Accessories/ProtolithBangle.cs b/Items/Accessories/ProtolithBangle.cs
new file mode 100644
index 0000000000..4c51e063a3
--- /dev/null
+++ b/Items/Accessories/ProtolithBangle.cs
@@ -0,0 +1,40 @@
+using CalamityMod.CalPlayer;
+using CalamityMod.Items.Weapons.Ranged;
+using Terraria;
+using Terraria.ID;
+using Terraria.ModLoader;
+
+namespace CalamityMod.Items.Accessories
+{
+ public class ProtolithBangle : ModItem, ILocalizedModType
+ {
+ public new string LocalizationCategory => "Items.Accessories";
+ public static int cooldown = 420;
+ public static int damage = 68;
+ public override void SetDefaults()
+ {
+ Item.width = 34;
+ Item.height = 34;
+ Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
+ Item.rare = ItemRarityID.Green;
+ Item.accessory = true;
+ }
+ public override void UpdateAccessory(Player player, bool hideVisual)
+ {
+ CalamityPlayer modPlayer = player.Calamity();
+ modPlayer.protolithBangle = true;
+ modPlayer.protolithBangleVisual = !hideVisual;
+ }
+ public override void AddRecipes()
+ {
+ CreateRecipe().
+ AddIngredient().
+ AddRecipeGroup("Boss2Material", 15).
+ AddIngredient(ItemID.Marble, 45).
+ AddIngredient(ItemID.Ruby, 3).
+ AddIngredient(ItemID.Lens, 5).
+ AddTile(TileID.Anvils).
+ Register();
+ }
+ }
+}
diff --git a/Items/Accessories/ProtolithBangle.png b/Items/Accessories/ProtolithBangle.png
new file mode 100644
index 0000000000..0fc9477145
Binary files /dev/null and b/Items/Accessories/ProtolithBangle.png differ
diff --git a/Items/Accessories/QuiverofNihility.cs b/Items/Accessories/QuiverofNihility.cs
index 11717b66cd..9efd1466f7 100644
--- a/Items/Accessories/QuiverofNihility.cs
+++ b/Items/Accessories/QuiverofNihility.cs
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Accessories
AddRecipeGroup("AnyQuiver").
AddIngredient(5).
AddIngredient(3).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
diff --git a/Items/Accessories/RogueEmblem.cs b/Items/Accessories/RogueEmblem.cs
index e418c24675..3b6904d7e3 100644
--- a/Items/Accessories/RogueEmblem.cs
+++ b/Items/Accessories/RogueEmblem.cs
@@ -30,6 +30,18 @@ namespace CalamityMod.Items.Accessories
r.AddIngredient(ItemID.SoulofFright, 5);
r.AddTile(TileID.TinkerersWorkbench);
r.Register();
+
+ // Sort after recipe with Summoner Emblem as ingredient
+ // There is no sort after last of X so this process needs to be manual
+ for (int i = 0; i < Recipe.maxRecipes; i++)
+ {
+ Recipe s = Main.recipe[i];
+ if (s.createItem.type == ItemID.AvengerEmblem && s.HasIngredient(ItemID.SummonerEmblem))
+ {
+ r.SortAfter(s);
+ break;
+ }
+ }
}
}
}
diff --git a/Items/Accessories/StatMeter.cs b/Items/Accessories/StatMeter.cs
index 804eaeac5d..931dd0c47e 100644
--- a/Items/Accessories/StatMeter.cs
+++ b/Items/Accessories/StatMeter.cs
@@ -153,13 +153,13 @@ namespace CalamityMod.Items.Accessories
}
}
- // If ranged, or any direct subclass thereof, display ranged ammo consumption
- if (dc == DamageClass.Ranged || dc.GetModifierInheritance(DamageClass.Ranged).Equals(StatInheritanceData.Full))
- stats2 += "\n" + this.GetLocalization("RangedStats").Format(TwoPlaces(100f * player.GetRangedAmmoCostReduction()));
+ // If held item uses ammo, display ammo consumption
+ if (heldItem.useAmmo > 0)
+ stats2 += "\n" + this.GetLocalization("AmmoStats").Format(OnePlace(100f * player.GetAmmoCostReduction()));
- // If magic, or any direct subclass thereof, display mana stats
- if (dc == DamageClass.Magic || dc == DamageClass.MagicSummonHybrid || dc.GetModifierInheritance(DamageClass.Magic).Equals(StatInheritanceData.Full))
- stats2 += "\n" + this.GetLocalization("MagicStats").Format(TwoPlaces(100f * player.manaCost), player.manaRegen);
+ // If held item uses mana, display mana stats
+ if (heldItem.mana > 0)
+ stats2 += "\n" + this.GetLocalization("ManaStats").Format(OnePlace(100f * player.manaCost), player.manaRegen);
// If summon, or any direct subclass thereof, AND NOT A WHIP, display minion/sentry slots
if (dc != DamageClass.SummonMeleeSpeed && (dc == DamageClass.Summon || dc.GetModifierInheritance(DamageClass.Summon).Equals(StatInheritanceData.Full)))
@@ -168,7 +168,7 @@ namespace CalamityMod.Items.Accessories
// If whip, show whip range
float whipRange = player.whipRangeMultiplier - 1f;
if (dc == DamageClass.SummonMeleeSpeed || dc.GetModifierInheritance(DamageClass.SummonMeleeSpeed).Equals(StatInheritanceData.Full))
- stats2 += "\n" + this.GetLocalization("WhipStats").Format(Sign(whipRange) + TwoPlaces(100f * whipRange));
+ stats2 += "\n" + this.GetLocalization("WhipStats").Format(Sign(whipRange) + OnePlace(100f * whipRange));
// If throwing or rogue, display rogue stats.
float rogueVelocity = modPlayer.rogueVelocity - 1f;
@@ -178,7 +178,7 @@ namespace CalamityMod.Items.Accessories
(int)(100f * modPlayer.rogueStealthMax),
TwoPlaces(60f * player.GetStandingStealthRegen()),
TwoPlaces(60f * player.GetMovingStealthRegen()),
- Sign(rogueVelocity) + TwoPlaces(100f * rogueVelocity));
+ Sign(rogueVelocity) + OnePlace(100f * rogueVelocity));
}
// If tool, add tool range
@@ -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/Accessories/StatisCurse.cs b/Items/Accessories/StatisCurse.cs
index efe65bb8df..5e6decb0b0 100644
--- a/Items/Accessories/StatisCurse.cs
+++ b/Items/Accessories/StatisCurse.cs
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient().
AddIngredient().
- AddIngredient(ItemID.FragmentStardust, 10).
+ AddIngredient(ItemID.FragmentStardust, 6).
AddTile(TileID.LunarCraftingStation).
Register();
}
diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs
index 9ac868fe4a..e42a2bbca1 100644
--- a/Items/Accessories/StatisNinjaBelt.cs
+++ b/Items/Accessories/StatisNinjaBelt.cs
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(ItemID.FrogFlipper).
AddIngredient(25).
AddIngredient(5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
CreateRecipe().
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient(ItemID.FrogGear).
AddIngredient(25).
AddIngredient(5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/StatisVoidSash.cs b/Items/Accessories/StatisVoidSash.cs
index 8fc1788724..743bc9b28d 100644
--- a/Items/Accessories/StatisVoidSash.cs
+++ b/Items/Accessories/StatisVoidSash.cs
@@ -6,6 +6,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
+using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
@@ -17,6 +18,9 @@ namespace CalamityMod.Items.Accessories
public class StatisVoidSash : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
public new string LocalizationCategory => "Items.Accessories";
+
+ public static SoundStyle VoidDash = new ("CalamityMod/Sounds/Item/VoidDash");
+
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 3));
diff --git a/Items/Accessories/TheCamper.cs b/Items/Accessories/TheCamper.cs
index b6f793c7e2..ff7b09897f 100644
--- a/Items/Accessories/TheCamper.cs
+++ b/Items/Accessories/TheCamper.cs
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Accessories
{
if (npc.IsAnEnemy() && !npc.dontTakeDamage && Vector2.Distance(player.Center, npc.Center) <= range)
{
- int campingFireDamage = (int)player.GetBestClassDamage().ApplyTo(Main.rand.Next(20, 41));
+ int campingFireDamage = (int)player.GetBestClassDamage().ApplyTo(Main.rand.Next(100, 121));
Projectile.NewProjectile(source, npc.Center, Vector2.Zero, ModContent.ProjectileType(), campingFireDamage, 0f, player.whoAmI, npc.whoAmI);
}
}
diff --git a/Items/Accessories/TheSponge.cs b/Items/Accessories/TheSponge.cs
index b37ec798aa..6b7a9e6cae 100644
--- a/Items/Accessories/TheSponge.cs
+++ b/Items/Accessories/TheSponge.cs
@@ -87,6 +87,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.sponge = true;
+ player.noKnockback = true;
modPlayer.spongeShieldVisible = !hideVisual;
if (modPlayer.SpongeShieldDurability > 0)
diff --git a/Items/Accessories/TheTransformer.cs b/Items/Accessories/TheTransformer.cs
index 4c5043b3ba..9a5304b9f9 100644
--- a/Items/Accessories/TheTransformer.cs
+++ b/Items/Accessories/TheTransformer.cs
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void ModifyTooltips(List list)
{
- list.IntegrateHotkey(CalamityKeybinds.TransformerHotKey);
list.FindAndReplace("[GFB]", Lang.SupportGlyphs(this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal")));
+ list.IntegrateHotkey(CalamityKeybinds.TransformerHotKey);
}
public override void SetStaticDefaults()
{
diff --git a/Items/Accessories/UnstableGraniteCore.cs b/Items/Accessories/UnstableGraniteCore.cs
index c6c5779487..178ce5ca83 100644
--- a/Items/Accessories/UnstableGraniteCore.cs
+++ b/Items/Accessories/UnstableGraniteCore.cs
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
public override void SetDefaults()
{
- Item.width = 40;
- Item.height = 44;
+ Item.width = 46;
+ Item.height = 48;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
diff --git a/Items/Accessories/UnstableGraniteCore.png b/Items/Accessories/UnstableGraniteCore.png
index 309d3cfa45..02230f0bca 100644
Binary files a/Items/Accessories/UnstableGraniteCore.png and b/Items/Accessories/UnstableGraniteCore.png differ
diff --git a/Items/Accessories/Vanity/Xyk_Arms.png b/Items/Accessories/Vanity/Xyk_Arms.png
deleted file mode 100644
index f7bb6a0d07..0000000000
Binary files a/Items/Accessories/Vanity/Xyk_Arms.png and /dev/null differ
diff --git a/Items/Accessories/Vanity/XyksBlessingBlue.cs b/Items/Accessories/Vanity/XyksBlessingBlue.cs
index 9a949d9667..7df7a6b928 100644
--- a/Items/Accessories/Vanity/XyksBlessingBlue.cs
+++ b/Items/Accessories/Vanity/XyksBlessingBlue.cs
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Accessories.Vanity
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Xyk_Head", EquipType.Head, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Xyk_Body", EquipType.Body, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Xyk_Legs", EquipType.Legs, this);
+ EquipLoader.AddEquipTexture(Mod, "CalamityMod/Projectiles/InvisibleProj", EquipType.Wings, this);
}
}
@@ -89,6 +90,7 @@ namespace CalamityMod.Items.Accessories.Vanity
Player.legs = EquipLoader.GetEquipSlot(Mod, "XyksBlessingBlue", EquipType.Legs);
Player.body = EquipLoader.GetEquipSlot(Mod, "XyksBlessingBlue", EquipType.Body);
Player.head = EquipLoader.GetEquipSlot(Mod, "XyksBlessingBlue", EquipType.Head);
+ Player.wings = EquipLoader.GetEquipSlot(Mod, "XyksBlessingOrange", EquipType.Wings);
}
}
diff --git a/Items/Accessories/Vanity/XyksBlessingOrange.cs b/Items/Accessories/Vanity/XyksBlessingOrange.cs
index 98ef8e6afa..29f2d69f89 100644
--- a/Items/Accessories/Vanity/XyksBlessingOrange.cs
+++ b/Items/Accessories/Vanity/XyksBlessingOrange.cs
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Accessories.Vanity
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Xyk_Head2", EquipType.Head, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Xyk_Body2", EquipType.Body, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Xyk_Legs2", EquipType.Legs, this);
+ EquipLoader.AddEquipTexture(Mod, "CalamityMod/Projectiles/InvisibleProj", EquipType.Wings, this);
}
}
@@ -89,6 +90,7 @@ namespace CalamityMod.Items.Accessories.Vanity
Player.legs = EquipLoader.GetEquipSlot(Mod, "XyksBlessingOrange", EquipType.Legs);
Player.body = EquipLoader.GetEquipSlot(Mod, "XyksBlessingOrange", EquipType.Body);
Player.head = EquipLoader.GetEquipSlot(Mod, "XyksBlessingOrange", EquipType.Head);
+ Player.wings = EquipLoader.GetEquipSlot(Mod, "XyksBlessingOrange", EquipType.Wings);
}
}
diff --git a/Items/Accessories/WarbanneroftheRighteous.cs b/Items/Accessories/WarbanneroftheRighteous.cs
index dd7235137c..cd6a16258e 100644
--- a/Items/Accessories/WarbanneroftheRighteous.cs
+++ b/Items/Accessories/WarbanneroftheRighteous.cs
@@ -26,8 +26,8 @@ namespace CalamityMod.Items.Accessories
public class WarbanneroftheRighteous : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
- internal const float MaxBonus = 0.6f;
- internal const float MaxDistance = 350f;
+ internal const float MaxBonus = 0.5f;
+ internal const float MaxDistance = 700f;
public override void SetStaticDefaults()
{
@@ -57,17 +57,13 @@ namespace CalamityMod.Items.Accessories
}
int maxValue = (int)(MaxBonus * 100);
- float bonus = CalculateBonus(player) - 0.4f;
- float displayBonus = (int)((bonus + 0.4f) * 100); // Should range from 0 to the maxValue
+ float bonus = CalculateBonus(player) - 0.3f;
+ float displayBonus = (int)((bonus + 0.3f) * 100); // Should range from 0 to the maxValue
if (player.Calamity().cooldowns.TryGetValue(WarbanneroftheRighteousBuff.ID, out var cooldown))
- {
cooldown.timeLeft = maxValue - (int)displayBonus;
- }
else
- {
player.AddCooldown(WarbanneroftheRighteousBuff.ID, maxValue);
- }
if (bonus > 0)
player.GetDamage() += bonus;
@@ -83,7 +79,7 @@ namespace CalamityMod.Items.Accessories
for (int index = 0; index < Main.npc.Length; index++)
{
NPC nPC = Main.npc[index];
- float generousHitboxWidth = Math.Max(nPC.Hitbox.Width / 2f, nPC.Hitbox.Height / 2f) + (100 + 80 * Utils.GetLerpValue(0, 200, Math.Max(nPC.Hitbox.Width / 2f, nPC.Hitbox.Height / 2f))); // Adds some room so max bonus isnt when you're ON the hitbox
+ float generousHitboxWidth = Math.Max(nPC.Hitbox.Width / 2f, nPC.Hitbox.Height / 2f) + 100; // Adds some room so max bonus isnt when you're ON the hitbox
float intensity = Utils.Remap(Utils.Distance(player.Center, nPC.Center), MaxDistance + generousHitboxWidth, generousHitboxWidth, 1, 3, true); // We have to have this seperate from bonus, otherwise all effected enemies take damage based on the closest enemy
if (Utils.Distance(nPC.Center, player.Center) < MaxDistance + generousHitboxWidth && (nPC.IsAnEnemy(true, true, false) || nPC.type == ModContent.NPCType()) && nPC.CanBeChasedBy())
@@ -104,7 +100,7 @@ namespace CalamityMod.Items.Accessories
{
modNPC.warbannerBurnIntensity = intensity;
modNPC.warbannerBurnDirection = Utils.DirectionTo(player.Center, nPC.Center);
- int burnDamage = (int)player.GetBestClassDamage().ApplyTo(47 * damageMult); // There is up to a 3x multiplier on this damage depending on distance from the enemy
+ int burnDamage = (int)player.GetBestClassDamage().ApplyTo(45 * damageMult); // There is up to a 3x multiplier on this damage depending on distance from the enemy
modNPC.warbannerBurnDamage = burnDamage;
modNPC.warbannerBurnStacks++;
modNPC.warbannerBurnTimer = 180;
@@ -121,7 +117,7 @@ namespace CalamityMod.Items.Accessories
NPC closestTarget = player.Center.ClosestNPCAt(MaxDistance * 7); // extra range is to account for bonus range from massive targets
if (closestTarget != null)
{
- float generousHitboxWidth = Math.Max(closestTarget.Hitbox.Width / 2f, closestTarget.Hitbox.Height / 2f) + (100 + 80 * Utils.GetLerpValue(0, 200, Math.Max(closestTarget.Hitbox.Width / 2f, closestTarget.Hitbox.Height / 2f))); // Adds some room so max bonus isnt when you're ON the hitbox
+ float generousHitboxWidth = Math.Max(closestTarget.Hitbox.Width / 2f, closestTarget.Hitbox.Height / 2f) + 100; // Adds some room so max bonus isnt when you're ON the hitbox
bonus = Utils.Remap(Utils.Distance(player.Center, closestTarget.Center), MaxDistance + generousHitboxWidth, generousHitboxWidth, 0, MaxBonus, true);
}
else
diff --git a/Items/Accessories/Wings/AureateBooster.cs b/Items/Accessories/Wings/AureateBooster.cs
index d9ac581d6b..0190454c27 100644
--- a/Items/Accessories/Wings/AureateBooster.cs
+++ b/Items/Accessories/Wings/AureateBooster.cs
@@ -19,6 +19,10 @@ namespace CalamityMod.Items.Accessories.Wings
public override float MaxAscentSpeed => 2.5f;
public override float BaseAscent => 0.125f;
+ // How powerful the acceleration increase is while pressing UP
+ // This also affects the flight time tick rate
+ public static float BoostPower = 1.5f;
+
public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 8f, 1.5f);
public override void SetDefaults()
@@ -81,7 +85,19 @@ namespace CalamityMod.Items.Accessories.Wings
}
}
}
- player.noFallDmg = true;
+ }
+
+ public override void AdditionalFlightMovement(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+ {
+ if (player.TryingToHoverUp)
+ {
+ ascentWhenFalling *= BoostPower;
+ ascentWhenRising *= BoostPower;
+ maxCanAscendMultiplier *= BoostPower;
+ maxAscentMultiplier *= BoostPower;
+ constantAscend *= BoostPower;
+ player.wingTime -= BoostPower - 1f;
+ }
}
public override void AddRecipes()
diff --git a/Items/Accessories/Wings/BaseWings.cs b/Items/Accessories/Wings/BaseWings.cs
index 0526175386..7637d61087 100644
--- a/Items/Accessories/Wings/BaseWings.cs
+++ b/Items/Accessories/Wings/BaseWings.cs
@@ -56,8 +56,16 @@ namespace CalamityMod.Items.Accessories.Wings
maxCanAscendMultiplier = RisingSpeedThreshold;
maxAscentMultiplier = MaxAscentSpeed;
constantAscend = BaseAscent;
+
+ AdditionalFlightMovement(player, ref ascentWhenFalling, ref ascentWhenRising, ref maxCanAscendMultiplier, ref maxAscentMultiplier, ref constantAscend);
}
+ ///
+ /// Addition for any deviations in regular wing movement.
+ /// This is typically for UP boost or hovers.
+ ///
+ public virtual void AdditionalFlightMovement(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend) { }
+
public override void ModifyTooltips(List list)
{
WingStats stats = ArmorIDs.Wing.Sets.Stats[Item.wingSlot];
@@ -76,7 +84,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), BaseAscent.ToMphps(),
(BaseAscent + BonusAscentWhileRising).ToMphps(), (RisingSpeedThreshold * baseJumpSpeed).ToMph(),
- (BaseAscent + BonusAscentWhileRising + BonusAscentWhileFalling).ToMphps()));
+ (BaseAscent + BonusAscentWhileFalling).ToMphps()));
if (hover)
{
sb.Append('\n');
diff --git a/Items/Accessories/Wings/DrewsWings.cs b/Items/Accessories/Wings/DrewsWings.cs
index f9ab4abe57..fb3855fe8d 100644
--- a/Items/Accessories/Wings/DrewsWings.cs
+++ b/Items/Accessories/Wings/DrewsWings.cs
@@ -46,7 +46,6 @@ namespace CalamityMod.Items.Accessories.Wings
}
Main.dust[flightDust].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
- player.noFallDmg = true;
}
}
}
diff --git a/Items/Accessories/Wings/ElysianWings.cs b/Items/Accessories/Wings/ElysianWings.cs
index fde3249493..884655a929 100644
--- a/Items/Accessories/Wings/ElysianWings.cs
+++ b/Items/Accessories/Wings/ElysianWings.cs
@@ -14,13 +14,13 @@ namespace CalamityMod.Items.Accessories.Wings
[AutoloadEquip(EquipType.Wings)]
public class ElysianWings : BaseWings
{
- public override float BonusAscentWhileFalling => 0.85f;
- public override float BonusAscentWhileRising => 0.15f;
- public override float RisingSpeedThreshold => 1f;
+ public override float BonusAscentWhileFalling => 1f;
+ public override float BonusAscentWhileRising => 0.17f;
+ public override float RisingSpeedThreshold => 1.2f;
public override float MaxAscentSpeed => 3f;
- public override float BaseAscent => 0.135f;
+ public override float BaseAscent => 0.15f;
- public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 9.5f, 2.7f);
+ public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 10f, 3f);
public override void SetDefaults()
{
@@ -35,12 +35,6 @@ namespace CalamityMod.Items.Accessories.Wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
- CalamityPlayer modPlayer = player.Calamity();
- player.moveSpeed += 0.1f;
- player.lavaImmune = true;
- player.noFallDmg = true;
- modPlayer.elysianWingsDust = false;
-
if (!hideVisual)
DrawWingEffects(player);
}
diff --git a/Items/Accessories/Wings/ExodusWings.cs b/Items/Accessories/Wings/ExodusWings.cs
index 0401431942..19ac329482 100644
--- a/Items/Accessories/Wings/ExodusWings.cs
+++ b/Items/Accessories/Wings/ExodusWings.cs
@@ -72,7 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings
}
player.wingTimeMax = 180;
- player.noFallDmg = true;
}
public override void AddRecipes()
diff --git a/Items/Accessories/Wings/HadalMantle.cs b/Items/Accessories/Wings/HadalMantle.cs
index a9d0f3958a..3e160851d7 100644
--- a/Items/Accessories/Wings/HadalMantle.cs
+++ b/Items/Accessories/Wings/HadalMantle.cs
@@ -13,13 +13,13 @@ namespace CalamityMod.Items.Accessories.Wings
[LegacyName("DiscordianWings")]
public class HadalMantle : BaseWings
{
- public override float BonusAscentWhileFalling => 0.6f;
- public override float BonusAscentWhileRising => 0.12f;
- public override float RisingSpeedThreshold => 0.7f;
- public override float MaxAscentSpeed => 1.75f;
- public override float BaseAscent => 0.11f;
+ public override float BonusAscentWhileFalling => 0.75f;
+ public override float BonusAscentWhileRising => 0.15f;
+ public override float RisingSpeedThreshold => 1f;
+ public override float MaxAscentSpeed => 1.805f;
+ public override float BaseAscent => 0.125f;
- public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 7.75f, 1.5f);
+ public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(150, 8f, 2f);
public override void SetDefaults()
{
@@ -48,7 +48,6 @@ namespace CalamityMod.Items.Accessories.Wings
}
Main.dust[flightDust].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
- player.noFallDmg = true;
}
public override void AddRecipes()
diff --git a/Items/Accessories/Wings/HadarianWings.cs b/Items/Accessories/Wings/HadarianWings.cs
index e75b85cba5..07405c80d2 100644
--- a/Items/Accessories/Wings/HadarianWings.cs
+++ b/Items/Accessories/Wings/HadarianWings.cs
@@ -14,12 +14,12 @@ namespace CalamityMod.Items.Accessories.Wings
public class HadarianWings : BaseWings
{
public override float BonusAscentWhileFalling => 0.8f;
- public override float BonusAscentWhileRising => 0.155f;
- public override float RisingSpeedThreshold => 1.05f;
- public override float MaxAscentSpeed => 2.55f;
- public override float BaseAscent => 0.13f;
+ public override float BonusAscentWhileRising => 0.15f;
+ public override float RisingSpeedThreshold => 1f;
+ public override float MaxAscentSpeed => 2f;
+ public override float BaseAscent => 0.135f;
- public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(90, 9f, 1.75f, true, 11.6f, 11.6f);
+ public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(108, 9f, 2f, true, 11.6f, 11.6f);
public override void SetDefaults()
{
@@ -34,18 +34,6 @@ namespace CalamityMod.Items.Accessories.Wings
{
if (player.controlJump && player.wingTime > 0f && player.jump == 0)
{
- bool hovering = player.TryingToHoverDown && !player.merman;
- if (hovering)
- {
- player.velocity.Y *= 0.2f;
- if (player.velocity.Y > -2f && player.velocity.Y < 2f)
- {
- // I can't get the player to have zero y velocity (setting it to 0 doesn't work and I tried a lot of numbers)
- player.velocity.Y = 0.105f;
- }
- player.wingTime += 0.75f;
- }
-
if (player.velocity.Y != 0f && !hideVisual)
{
float xOffset = 4f;
@@ -53,7 +41,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
xOffset = -40f;
}
- if (!hovering || Main.rand.NextBool(3))
+ if (!player.TryingToHoverDown || Main.rand.NextBool(3))
{
int idx = Dust.NewDust(new Vector2(player.Center.X + xOffset, player.Center.Y - 15f), 30, 30, ModContent.DustType(), 0f, 0f, 100, default, 1.75f);
Main.dust[idx].noGravity = true;
@@ -66,7 +54,21 @@ namespace CalamityMod.Items.Accessories.Wings
}
}
}
- player.noFallDmg = true;
+ }
+
+ public override void AdditionalFlightMovement(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+ {
+ if (player.TryingToHoverDown && player.controlJump && player.wingTime > 0f && !player.merman)
+ {
+ player.wingTime += 0.5f;
+ player.velocity.Y *= 0.8f;
+ if (player.velocity.Y > -2f && player.velocity.Y < 1f)
+ player.velocity.Y = 1E-05f;
+
+ ascentWhenFalling *= 0f;
+ ascentWhenRising *= 0f;
+ constantAscend *= 0f;
+ }
}
}
}
diff --git a/Items/Accessories/Wings/MOAB.cs b/Items/Accessories/Wings/MOAB.cs
index 904c7565bc..c52e62c867 100644
--- a/Items/Accessories/Wings/MOAB.cs
+++ b/Items/Accessories/Wings/MOAB.cs
@@ -90,7 +90,6 @@ namespace CalamityMod.Items.Accessories.Wings
player.GetJumpState(ExtraJump.BlizzardInABottle).Enable();
player.jumpBoost = true;
player.autoJump = true;
- player.noFallDmg = true;
player.jumpSpeedBoost += 1.6f;
// Mirrors the +5% luck from Lucky Horseshoe (vanilla behavior).
diff --git a/Items/Accessories/Wings/SilvaWings.cs b/Items/Accessories/Wings/SilvaWings.cs
index 0a7fefdd0f..fde8d8345e 100644
--- a/Items/Accessories/Wings/SilvaWings.cs
+++ b/Items/Accessories/Wings/SilvaWings.cs
@@ -21,8 +21,6 @@ namespace CalamityMod.Items.Accessories.Wings
public override float MaxAscentSpeed => 3.2f;
public override float BaseAscent => 0.145f;
- public const int LifeRegenTimerMax = 900;
-
public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(270, 10.5f, 2.8f);
public override void SetDefaults()
@@ -36,8 +34,6 @@ namespace CalamityMod.Items.Accessories.Wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
- player.Calamity().silvaWings = true;
-
if (player.controlJump && player.wingTime > 0f && player.jump == 0 && player.velocity.Y != 0f && !hideVisual)
{
int dustXOffset = 4;
@@ -54,7 +50,6 @@ namespace CalamityMod.Items.Accessories.Wings
}
Main.dust[flightDust].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
- player.noFallDmg = true;
}
public override void AddRecipes()
diff --git a/Items/Accessories/Wings/SkylineWings.cs b/Items/Accessories/Wings/SkylineWings.cs
index 0c29d76343..6a8d849831 100644
--- a/Items/Accessories/Wings/SkylineWings.cs
+++ b/Items/Accessories/Wings/SkylineWings.cs
@@ -20,11 +20,6 @@ namespace CalamityMod.Items.Accessories.Wings
Item.rare = ItemRarityID.Orange;
}
- public override void UpdateAccessory(Player player, bool hideVisual)
- {
- player.noFallDmg = true;
- }
-
public override void AddRecipes()
{
CreateRecipe().
diff --git a/Items/Accessories/Wings/SoulofCryogen.cs b/Items/Accessories/Wings/SoulofCryogen.cs
index 9d4219fac8..14aedb1d51 100644
--- a/Items/Accessories/Wings/SoulofCryogen.cs
+++ b/Items/Accessories/Wings/SoulofCryogen.cs
@@ -42,7 +42,6 @@ namespace CalamityMod.Items.Accessories.Wings
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.cryogenSoul = true;
- player.noFallDmg = true;
if (modPlayer.wingProjectileCooldown <= 0)
{
if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
diff --git a/Items/Accessories/Wings/StarlightWings.cs b/Items/Accessories/Wings/StarlightWings.cs
index 472dab84a3..cdc91e0820 100644
--- a/Items/Accessories/Wings/StarlightWings.cs
+++ b/Items/Accessories/Wings/StarlightWings.cs
@@ -41,7 +41,6 @@ namespace CalamityMod.Items.Accessories.Wings
}
Main.dust[flightDust].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
- player.noFallDmg = true;
}
public override void AddRecipes()
diff --git a/Items/Accessories/Wings/TarragonWings.cs b/Items/Accessories/Wings/TarragonWings.cs
index 7692df6166..a395ad20ec 100644
--- a/Items/Accessories/Wings/TarragonWings.cs
+++ b/Items/Accessories/Wings/TarragonWings.cs
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories.Wings
public override float MaxAscentSpeed => 3f;
public override float BaseAscent => 0.135f;
- public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 9.5f, 2.5f);
+ public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(270, 9.5f, 2.5f);
public override void SetDefaults()
{
@@ -33,9 +33,6 @@ namespace CalamityMod.Items.Accessories.Wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
- player.statDefense += 15;
- player.lifeRegen += 2;
-
if (player.controlJump && player.wingTime > 0f && player.jump == 0 && player.velocity.Y != 0f && !hideVisual)
{
int dustXOffset = 4;
@@ -52,7 +49,6 @@ namespace CalamityMod.Items.Accessories.Wings
}
Main.dust[flightDust].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
- player.noFallDmg = true;
}
public override void AddRecipes()
@@ -60,7 +56,7 @@ namespace CalamityMod.Items.Accessories.Wings
CreateRecipe().
AddIngredient(ItemID.SoulofFlight, 20).
AddIngredient(5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Accessories/Wings/TracersCelestial.cs b/Items/Accessories/Wings/TracersCelestial.cs
index 2c6198dd03..eb1ea60ce8 100644
--- a/Items/Accessories/Wings/TracersCelestial.cs
+++ b/Items/Accessories/Wings/TracersCelestial.cs
@@ -57,7 +57,6 @@ namespace CalamityMod.Items.Accessories.Wings
player.fireWalk = true;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
- player.noFallDmg = true;
modPlayer.tracersDust = !hideVisual;
modPlayer.tracersCelestial = true;
}
diff --git a/Items/Accessories/Wings/TracersElysian.cs b/Items/Accessories/Wings/TracersElysian.cs
index 403641dcdf..918a418280 100644
--- a/Items/Accessories/Wings/TracersElysian.cs
+++ b/Items/Accessories/Wings/TracersElysian.cs
@@ -60,9 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.fireWalk = true;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
- player.noFallDmg = true;
modPlayer.tracersDust = !hideVisual;
- modPlayer.elysianWingsDust = !hideVisual;
modPlayer.tracersElysian = true;
}
diff --git a/Items/Accessories/Wings/TracersSeraph.cs b/Items/Accessories/Wings/TracersSeraph.cs
index b157d040ac..2c42494f78 100644
--- a/Items/Accessories/Wings/TracersSeraph.cs
+++ b/Items/Accessories/Wings/TracersSeraph.cs
@@ -60,9 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.fireWalk = true;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
- player.noFallDmg = true;
modPlayer.tracersDust = !hideVisual;
- modPlayer.elysianWingsDust = !hideVisual;
modPlayer.tracersSeraph = true; // Grants immunity to Auric Rejection and other walk-on-block effects
}
diff --git a/Items/Accessories/WulfrumAcrobaticsPack.cs b/Items/Accessories/WulfrumAcrobaticsPack.cs
index b1339b3a06..aab707da5b 100644
--- a/Items/Accessories/WulfrumAcrobaticsPack.cs
+++ b/Items/Accessories/WulfrumAcrobaticsPack.cs
@@ -46,9 +46,9 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(ItemID.Chain, 2).
- AddIngredient(6).
+ AddIngredient(5).
AddIngredient().
+ AddIngredient(ItemID.Chain, 2).
AddTile(TileID.Anvils).
Register();
}
@@ -132,7 +132,7 @@ namespace CalamityMod.Items.Accessories
if (!Grappled)
return false;
- if (!PlayerOnGround)
+ if (!PlayerOnGround || !obeyGravity)
return false;
if ((Player.Center - Main.projectile[Grapple].Center).Length() > SwingLength)
@@ -142,6 +142,8 @@ namespace CalamityMod.Items.Accessories
}
}
+ public bool obeyGravity => !(Player.miscEquips[4].type == ItemID.AntiGravityHook);
+ public bool strongerReel => Player.miscEquips[4].type == ItemID.StaticHook;
public Vector2 CurrentPosition;
public Vector2 OldPosition;
public List Segments;
@@ -280,7 +282,10 @@ namespace CalamityMod.Items.Accessories
}
hookCache = -1;
-
+ if (!obeyGravity)
+ {
+ Player.gravity = -1f; //Disable player gravity with Anti-Grav hook
+ }
if (Grappled)
{
if ((Main.projectile[Grapple].Center - Player.Center).Length() > SwingLength + 80f)
@@ -299,7 +304,7 @@ namespace CalamityMod.Items.Accessories
public void SimulateMovement(Projectile grapple)
{
- Segments = VerletSimulatedSegment.SimpleSimulation(Segments, SwingLength / SimulationResolution, 50, 0.3f * Player.gravDir);
+ Segments = VerletSimulatedSegment.SimpleSimulation(Segments, SwingLength / SimulationResolution, 50, (obeyGravity ? 0.3f * Player.gravDir : 0));
Vector2 CurrentPosition;
@@ -313,40 +318,83 @@ namespace CalamityMod.Items.Accessories
}
if (!GrappleMovementDisabled)
{
- CurrentPosition = Segments[SimulationResolution].position;
- Player.velocity = CurrentPosition - Player.Center;
-
- //let the player swing themselves around if they are under the hook.
- if (Player.gravDir * (Player.Center.Y - Segments[0].position.Y) > 0)
+ if (obeyGravity)
{
- float swing = 0;
- if (Math.Sign(Player.velocity.X) < 0)
+
+ CurrentPosition = Segments[SimulationResolution].position;
+ Player.velocity = CurrentPosition - Player.Center;
+
+ //let the player swing themselves around if they are under the hook.
+ if (Player.gravDir * (Player.Center.Y - Segments[0].position.Y) > 0)
{
- if (Player.controlLeft)
- swing -= 0.1f;
+ float swing = 0;
- else if (Player.controlRight)
- swing += 0.1f;
+ if (Math.Sign(Player.velocity.X) < 0)
+ {
+ if (Player.controlLeft)
+ swing -= 0.1f;
+
+ else if (Player.controlRight)
+ swing += 0.1f;
+ }
+
+ else if (Math.Sign(Player.velocity.X) > 0)
+ {
+ if (Player.controlRight)
+ swing += 0.1f;
+
+ else if (Player.controlLeft)
+ swing -= 0.1f;
+ }
+
+ Player.velocity.X += swing;
}
- else if (Math.Sign(Player.velocity.X) > 0)
+ else if (Math.Abs(Player.Center.X - Segments[0].position.X) < 30f && Math.Abs(Player.velocity.X) < 1)
{
- if (Player.controlRight)
- swing += 0.1f;
-
- else if (Player.controlLeft)
- swing -= 0.1f;
+ Player.velocity.X = Player.velocity.X == 0 ? 1.5f : 1.5f * Math.Sign(Player.velocity.X);
}
-
- Player.velocity.X += swing * (Player.miscEquips[4].type == ItemID.AntiGravityHook ? 1.75f : 1);
}
-
- else if (Math.Abs(Player.Center.X - Segments[0].position.X) < 30f && Math.Abs(Player.velocity.X) < 1)
+
+ else
{
- Player.velocity.X = Player.velocity.X == 0 ? 1.5f : 1.5f * Math.Sign(Player.velocity.X);
- }
+ if (Player.grappling[0] > -1)
+ {
+ var Hook = Main.projectile[Player.grappling[0]];
+ if (Hook != null)
+ {
+
+ if (Player.controlRight)
+ Player.velocity.X += 0.3f;
+ else if (Player.controlLeft)
+ Player.velocity.X -= 0.3f;
+ Player.velocity -= Player.Center.DirectionTo(Hook.Center);
+ var estimatedPos = Player.Center + Player.velocity;
+ var estimatedDir = Hook.Center.DirectionTo(estimatedPos);
+ var goalPos = Hook.Center + estimatedDir * SwingLength;
+ var estimatedPosLocked = Hook.Center + Hook.Center.DirectionTo(Player.Center) * SwingLength;
+ if (estimatedPosLocked.Distance(estimatedPos) < 2)
+ {
+ estimatedPos = estimatedPosLocked;
+ }
+ var dis = Hook.Center.Distance(estimatedPos);
+ if (dis > SwingLength && dis < 1000f)
+ {
+ var dis2 = Math.Min(Player.Center.Distance(goalPos), SwingLength*3f);
+ if (dis2 > 0)
+ {
+ Player.velocity = Player.Center.DirectionTo(goalPos) * dis2;
+ }
+ }
+
+
+ if (Player.velocity.Length() < 1.5f)
+ Player.direction = Hook.Center.X > Player.Center.X ? 1 : -1;
+ }
+ }
+ }
}
if (Grappled)
@@ -512,7 +560,7 @@ namespace CalamityMod.Items.Accessories
}
if (Grappled && triggersSet.Up)
{
- SwingLength -= (Player.miscEquips[4].type == ItemID.StaticHook ? StaticHookReelSpeed : ReelSpeed);
+ SwingLength -= (strongerReel ? StaticHookReelSpeed : ReelSpeed);
Player.controlUp = false; //This is required to stop the player from bouncing off platforms when falling down and reeling in. Also prevents gravity swapping while hooked.
}
if (triggersSet.Down) //Static Hook doesn't effect this speed because it would be faster than your fall speed and feel janky.
diff --git a/Items/Accessories/YharimsGift.cs b/Items/Accessories/YharimsGift.cs
index 83d180aa84..700c009808 100644
--- a/Items/Accessories/YharimsGift.cs
+++ b/Items/Accessories/YharimsGift.cs
@@ -29,6 +29,7 @@ namespace CalamityMod.Items.Accessories
var source = player.GetSource_Accessory(Item);
player.moveSpeed += 0.15f;
player.GetDamage() += 0.15f;
+ player.noKnockback = true;
if (!player.StandingStill())
{
dragonTimer--;
diff --git a/Items/Ammo/BloodfireArrow.cs b/Items/Ammo/BloodfireArrow.cs
index 93de0fc981..6fd88990ef 100644
--- a/Items/Ammo/BloodfireArrow.cs
+++ b/Items/Ammo/BloodfireArrow.cs
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Ammo
{
CreateRecipe(333).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Ammo/BloodfireBullet.cs b/Items/Ammo/BloodfireBullet.cs
index 915a56bf28..91630337cb 100644
--- a/Items/Ammo/BloodfireBullet.cs
+++ b/Items/Ammo/BloodfireBullet.cs
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Ammo
{
CreateRecipe(333).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Ammo/ElysianArrow.cs b/Items/Ammo/ElysianArrow.cs
index 7f60191950..52dcc7ba58 100644
--- a/Items/Ammo/ElysianArrow.cs
+++ b/Items/Ammo/ElysianArrow.cs
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Ammo
CreateRecipe(150).
AddIngredient(ItemID.HolyArrow, 150).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Ammo/HallowPointRound.cs b/Items/Ammo/HallowPointRound.cs
index c3316d90fa..725c8dab0a 100644
--- a/Items/Ammo/HallowPointRound.cs
+++ b/Items/Ammo/HallowPointRound.cs
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Ammo
CreateRecipe(100).
AddIngredient(ItemID.EmptyBullet, 100).
AddIngredient(ItemID.HallowedBar).
- AddTile(TileID.MythrilAnvil).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Ammo/HolyFireBullet.cs b/Items/Ammo/HolyFireBullet.cs
index 794853a48b..f92a3dbda8 100644
--- a/Items/Ammo/HolyFireBullet.cs
+++ b/Items/Ammo/HolyFireBullet.cs
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Ammo
CreateRecipe(333).
AddIngredient(ItemID.ExplodingBullet, 333).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Bloodflare/BloodflareBodyArmor.cs b/Items/Armor/Bloodflare/BloodflareBodyArmor.cs
index 7139b25e18..c1fee61ca3 100644
--- a/Items/Armor/Bloodflare/BloodflareBodyArmor.cs
+++ b/Items/Armor/Bloodflare/BloodflareBodyArmor.cs
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(16).
AddIngredient(4).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Bloodflare/BloodflareCuisses.cs b/Items/Armor/Bloodflare/BloodflareCuisses.cs
index a34517488d..e604477feb 100644
--- a/Items/Armor/Bloodflare/BloodflareCuisses.cs
+++ b/Items/Armor/Bloodflare/BloodflareCuisses.cs
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(13).
AddIngredient(3).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Bloodflare/BloodflareHeadMagic.cs b/Items/Armor/Bloodflare/BloodflareHeadMagic.cs
index f3da4ef71c..8a4569fc13 100644
--- a/Items/Armor/Bloodflare/BloodflareHeadMagic.cs
+++ b/Items/Armor/Bloodflare/BloodflareHeadMagic.cs
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(11).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Bloodflare/BloodflareHeadMelee.cs b/Items/Armor/Bloodflare/BloodflareHeadMelee.cs
index 542373cdbc..a65be7a702 100644
--- a/Items/Armor/Bloodflare/BloodflareHeadMelee.cs
+++ b/Items/Armor/Bloodflare/BloodflareHeadMelee.cs
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(11).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs
index a1bef0cca6..b8a9e4f5ef 100644
--- a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs
+++ b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(11).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Bloodflare/BloodflareHeadRogue.cs b/Items/Armor/Bloodflare/BloodflareHeadRogue.cs
index 75e086447a..fbf4e7f488 100644
--- a/Items/Armor/Bloodflare/BloodflareHeadRogue.cs
+++ b/Items/Armor/Bloodflare/BloodflareHeadRogue.cs
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(11).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Bloodflare/BloodflareHeadSummon.cs b/Items/Armor/Bloodflare/BloodflareHeadSummon.cs
index 0aa577c5bb..20e647a2cb 100644
--- a/Items/Armor/Bloodflare/BloodflareHeadSummon.cs
+++ b/Items/Armor/Bloodflare/BloodflareHeadSummon.cs
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
CreateRecipe().
AddIngredient(11).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs
index bc1b1eaadc..f67aa39d0f 100644
--- a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs
+++ b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
- Item.defense = 1;
+ Item.defense = 4;
}
private void ActivateLift(Terraria.On_Player.orig_QuickMount orig, Player self)
@@ -155,7 +155,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
- Item.defense = 2;
+ Item.defense = 5;
}
public override void UpdateEquip(Player player)
diff --git a/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs b/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs
index 86e43aab19..0f02976040 100644
--- a/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs
+++ b/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
AddIngredient(5).
AddIngredient(18).
AddIngredient(3).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs
index b40932ff94..9f284fee8e 100644
--- a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs
+++ b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs
@@ -92,7 +92,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
AddIngredient(3).
AddIngredient(12).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs b/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs
index 54f1cbbf0a..8c853d54f7 100644
--- a/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs
+++ b/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
AddIngredient(4).
AddIngredient(15).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Prismatic/PrismaticGreaves.cs b/Items/Armor/Prismatic/PrismaticGreaves.cs
index ea73d76edf..2af82a1c33 100644
--- a/Items/Armor/Prismatic/PrismaticGreaves.cs
+++ b/Items/Armor/Prismatic/PrismaticGreaves.cs
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor.Prismatic
AddIngredient(5).
AddIngredient(6).
AddIngredient(ItemID.Nanites, 300).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Prismatic/PrismaticHelmet.cs b/Items/Armor/Prismatic/PrismaticHelmet.cs
index fa39d36891..d21c375da9 100644
--- a/Items/Armor/Prismatic/PrismaticHelmet.cs
+++ b/Items/Armor/Prismatic/PrismaticHelmet.cs
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor.Prismatic
AddIngredient(5).
AddIngredient(4).
AddIngredient(ItemID.Nanites, 300).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Prismatic/PrismaticRegalia.cs b/Items/Armor/Prismatic/PrismaticRegalia.cs
index fbb6023108..05f840849e 100644
--- a/Items/Armor/Prismatic/PrismaticRegalia.cs
+++ b/Items/Armor/Prismatic/PrismaticRegalia.cs
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor.Prismatic
AddIngredient(5).
AddIngredient(8).
AddIngredient(ItemID.Nanites, 300).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Tarragon/TarragonBreastplate.cs b/Items/Armor/Tarragon/TarragonBreastplate.cs
index 0596b39c82..e8f74b9a7e 100644
--- a/Items/Armor/Tarragon/TarragonBreastplate.cs
+++ b/Items/Armor/Tarragon/TarragonBreastplate.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.height = 18;
Item.lifeRegen = 3;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 37;
+ Item.defense = 40;
Item.rare = ModContent.RarityType();
}
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(15).
AddIngredient(18).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Tarragon/TarragonHeadMagic.cs b/Items/Armor/Tarragon/TarragonHeadMagic.cs
index d51fa12857..1faa537056 100644
--- a/Items/Armor/Tarragon/TarragonHeadMagic.cs
+++ b/Items/Armor/Tarragon/TarragonHeadMagic.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.width = 18;
Item.height = 18;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 10; //98
+ Item.defense = 15; // 90
Item.rare = ModContent.RarityType();
}
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(7).
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Tarragon/TarragonHeadMelee.cs b/Items/Armor/Tarragon/TarragonHeadMelee.cs
index 94f2ae5883..c8b34346d0 100644
--- a/Items/Armor/Tarragon/TarragonHeadMelee.cs
+++ b/Items/Armor/Tarragon/TarragonHeadMelee.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.width = 18;
Item.height = 18;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 33; //98
+ Item.defense = 42; // 117
Item.rare = ModContent.RarityType();
}
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(7).
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Tarragon/TarragonHeadRanged.cs b/Items/Armor/Tarragon/TarragonHeadRanged.cs
index 7d29dbab8a..7bc1135d98 100644
--- a/Items/Armor/Tarragon/TarragonHeadRanged.cs
+++ b/Items/Armor/Tarragon/TarragonHeadRanged.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.width = 18;
Item.height = 18;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 21; //98
+ Item.defense = 27; // 102
Item.rare = ModContent.RarityType();
}
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(7).
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Tarragon/TarragonHeadRogue.cs b/Items/Armor/Tarragon/TarragonHeadRogue.cs
index 91f8785758..31fe1ed587 100644
--- a/Items/Armor/Tarragon/TarragonHeadRogue.cs
+++ b/Items/Armor/Tarragon/TarragonHeadRogue.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.width = 18;
Item.height = 18;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 15; //98
+ Item.defense = 20; // 95
Item.rare = ModContent.RarityType();
}
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(7).
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Tarragon/TarragonHeadSummon.cs b/Items/Armor/Tarragon/TarragonHeadSummon.cs
index ebaadb2a02..b850eaea52 100644
--- a/Items/Armor/Tarragon/TarragonHeadSummon.cs
+++ b/Items/Armor/Tarragon/TarragonHeadSummon.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.width = 18;
Item.height = 18;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 3; //98
+ Item.defense = 10; // 85
Item.rare = ModContent.RarityType();
}
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(7).
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType()).
Register();
}
diff --git a/Items/Armor/Tarragon/TarragonLeggings.cs b/Items/Armor/Tarragon/TarragonLeggings.cs
index 4aeeca59c1..fa0a9d0a61 100644
--- a/Items/Armor/Tarragon/TarragonLeggings.cs
+++ b/Items/Armor/Tarragon/TarragonLeggings.cs
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Tarragon
Item.width = 18;
Item.height = 18;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
- Item.defense = 32;
+ Item.defense = 35;
Item.rare = ModContent.RarityType();
}
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Tarragon
CreateRecipe().
AddIngredient(11).
AddIngredient(12).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Armor/Wulfrum/WulfrumSet.cs b/Items/Armor/Wulfrum/WulfrumSet.cs
index 69987f14d2..2b9dcc9d35 100644
--- a/Items/Armor/Wulfrum/WulfrumSet.cs
+++ b/Items/Armor/Wulfrum/WulfrumSet.cs
@@ -298,7 +298,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(12).
+ AddIngredient(10).
AddIngredient().
AddTile(TileID.Anvils).
Register();
diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs
index 105195722a..55cb33990f 100644
--- a/Items/CalamityGlobalItem.cs
+++ b/Items/CalamityGlobalItem.cs
@@ -181,32 +181,53 @@ namespace CalamityMod.Items
SetStaticDefaults_ShimmerRecipes();
#region Vanilla Wing Tweaks
- // 170 -> 240 flight time
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.BoneWings].FlyTime = 240;
- // 170 -> 200 flight time
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.MothronWings].FlyTime = 200;
+ // Shorthand to make looking at this easier
+ WingStats[] stats = ArmorIDs.Wing.Sets.Stats;
+ // 130 -> 160 flight time, 6.75 -> 7.5 horizontal speed
+ stats[(int)VanillaWingID.HarpyWings].FlyTime = 160;
+ stats[(int)VanillaWingID.HarpyWings].AccRunSpeedOverride = 7.5f;
+ // 6.75 -> 9 horizontal speed, 1 -> 1.5 acceleration multiplier
+ stats[(int)VanillaWingID.FrozenWings].AccRunSpeedOverride = 9f;
+ stats[(int)VanillaWingID.FrozenWings].AccRunAccelerationMult = 1.5f;
+ // 160 -> 130 flight time
+ stats[(int)VanillaWingID.FlameWings].FlyTime = 130;
+ // 160 -> 180 flight time, 7.5 -> 6.25 horizontal speed
+ stats[(int)VanillaWingID.BatWings].FlyTime = 180;
+ stats[(int)VanillaWingID.BatWings].AccRunSpeedOverride = 6.25f;
+ // 1 -> 1.5 acceleration multiplier
+ stats[(int)VanillaWingID.ButterflyWings].AccRunAccelerationMult = 1.5f;
+
+ // 170 -> 240 flight time
+ stats[(int)VanillaWingID.BoneWings].FlyTime = 240;
+ // 160 -> 170 flight time, 7.5 -> 9 horizontal speed, 1 -> 1.5 acceleration multiplier
+ stats[(int)VanillaWingID.LeafWings].FlyTime = 170;
+ stats[(int)VanillaWingID.LeafWings].AccRunSpeedOverride = 9f;
+ stats[(int)VanillaWingID.LeafWings].AccRunAccelerationMult = 1.5f;
+ // (Spectre Wings) 1 -> 2 acceleration multiplier
+ stats[(int)VanillaWingID.GhostWings].AccRunAccelerationMult = 2f;
+
+ // 170 -> 210 flight time
+ stats[(int)VanillaWingID.BeetleWings].FlyTime = 210;
+ // 180 -> 210 flight time
+ stats[(int)VanillaWingID.TatteredFairyWings].FlyTime = 210;
// (Empress Wings) 150 -> 120 flight time
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.RainbowWings].FlyTime = 120;
+ stats[(int)VanillaWingID.RainbowWings].FlyTime = 120;
// 12 -> 10.8 hover stats
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.BejeweledValkyrieWing].DownHoverSpeedOverride = 10.8f; // (Lazure)
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.BejeweledValkyrieWing].DownHoverAccelerationMult = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.Yoraiz0rWings].DownHoverSpeedOverride = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.Yoraiz0rWings].DownHoverAccelerationMult = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.SkiphsWings].DownHoverSpeedOverride = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.SkiphsWings].DownHoverAccelerationMult = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.BetsyWings].DownHoverSpeedOverride = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.BetsyWings].DownHoverAccelerationMult = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.WingsVortex].DownHoverSpeedOverride = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.WingsVortex].DownHoverAccelerationMult = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.WingsNebula].DownHoverSpeedOverride = 10.8f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.WingsNebula].DownHoverAccelerationMult = 10.8f;
+ stats[(int)VanillaWingID.BejeweledValkyrieWing].DownHoverSpeedOverride = 10.8f; // (Lazure)
+ stats[(int)VanillaWingID.BejeweledValkyrieWing].DownHoverAccelerationMult = 10.8f;
+ stats[(int)VanillaWingID.Yoraiz0rWings].DownHoverSpeedOverride = 10.8f;
+ stats[(int)VanillaWingID.Yoraiz0rWings].DownHoverAccelerationMult = 10.8f;
+ stats[(int)VanillaWingID.SkiphsWings].DownHoverSpeedOverride = 10.8f;
+ stats[(int)VanillaWingID.SkiphsWings].DownHoverAccelerationMult = 10.8f;
+ stats[(int)VanillaWingID.BetsyWings].DownHoverSpeedOverride = 10.8f;
+ stats[(int)VanillaWingID.BetsyWings].DownHoverAccelerationMult = 10.8f;
- // (Celestial Starboard) 4.5 -> 2.75 acceleration multiplier, 16 -> 11.6 hover stats
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.LongRainbowTrailWings].AccRunAccelerationMult = 2.75f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.LongRainbowTrailWings].DownHoverSpeedOverride = 11.6f;
- ArmorIDs.Wing.Sets.Stats[(int)VanillaWingID.LongRainbowTrailWings].DownHoverAccelerationMult = 11.6f;
+ // (Celestial Starboard) 4.5 -> 2.75 acceleration multiplier, 16 -> 12 hover stats
+ stats[(int)VanillaWingID.LongRainbowTrailWings].AccRunAccelerationMult = 2.75f;
+ stats[(int)VanillaWingID.LongRainbowTrailWings].DownHoverSpeedOverride = 12f;
+ stats[(int)VanillaWingID.LongRainbowTrailWings].DownHoverAccelerationMult = 12f;
#endregion
}
@@ -272,7 +293,7 @@ namespace CalamityMod.Items
}
// Increase how much health Mushrooms heal.
- if (item.type == ItemID.Mushroom && item.healLife == 15)
+ if (item.type == ItemID.Mushroom && item.healLife < 25)
item.healLife = 25;
// Allow Beam Sword to change direction when it fires, because vanilla disables it for some reason.
@@ -652,6 +673,8 @@ namespace CalamityMod.Items
public override bool? UseItem(Item item, Player player)
{
+ var modPlayer = player.Calamity();
+
if (Main.zenithWorld && item.type == ItemID.RodOfHarmony)
{
if (NPC.AnyNPCs(ModContent.NPCType()))
@@ -665,6 +688,18 @@ namespace CalamityMod.Items
if (item.type == ItemID.Mushroom && player.Calamity().fungalSymbiote)
player.AddBuff(ModContent.BuffType(), 3600);
+ // Trigger Bloom Stone's heal over time from healing items
+ if (item.healLife > 0 && modPlayer.bloomStone)
+ {
+ // Temporarily disable Bloom Stone so that GetHealLife doesn't return 0
+ modPlayer.bloomStone = false;
+ modPlayer.bloomStoneTotalHeal = player.GetHealLife(item);
+ modPlayer.bloomStone = true;
+
+ modPlayer.bloomStoneHealInc = modPlayer.bloomStoneTotalHeal / 15;
+ modPlayer.bloomStoneHealTimer = (int)Math.Ceiling(modPlayer.bloomStoneTotalHeal / (double)modPlayer.bloomStoneHealInc) * 40;
+ }
+
// Staff/Axe of Regrowth growing Calamity grass
if (item.type == ItemID.StaffofRegrowth || item.type == ItemID.AcornAxe)
{
@@ -970,14 +1005,13 @@ namespace CalamityMod.Items
}
#endregion
- #region ModifyHitNPC
+ #region Hit NPC
public override void ModifyHitNPC(Item item, Player player, NPC target, ref NPC.HitModifiers modifiers)
{
// This assume all items with a damage hit is a weapon. There appears to be no edge cases for this thus far
if (player.Calamity().oldFashioned)
modifiers.SourceDamage *= OldFashioned.DamageReductionMultiplier;
}
- #endregion
public override void OnHitNPC(Item item, Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
@@ -1003,6 +1037,7 @@ namespace CalamityMod.Items
}
}
}
+ #endregion
#region Armor Set Changes
public override string IsArmorSet(Item head, Item body, Item legs)
@@ -1286,10 +1321,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)
@@ -1406,100 +1447,50 @@ namespace CalamityMod.Items
player.maxFallSpeed *= 1.2f;
}
- if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
+ if (item.type == ItemID.DemonWings && !player.mount.Active)
+ player.maxFallSpeed *= 1.3f;
+
+ if (item.type == ItemID.BeeWings && !player.mount.Active && !player.controlDown)
{
- if (player.IsUnderwater())
- player.gills = true;
+ player.gravity *= 0.6f;
+ player.maxFallSpeed *= 0.6f;
+ }
+
+ if (item.type == ItemID.FinWings)
player.ignoreWater = true;
- player.noFallDmg = true;
- if (!player.mount.Active)
- {
- if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
- player.maxFallSpeed = 12f;
- }
- }
- else if (item.type == ItemID.BeeWings) // Honey buff
+
+ // Spawns ornaments which refreshes flight time upon pickup
+ else if (item.type == ItemID.FestiveWings)
{
- player.AddBuff(BuffID.Honey, 2);
- player.noFallDmg = true;
- }
- else if (item.type == ItemID.ButterflyWings) // Boost to mana regen
- {
- player.manaRegen = (int)(player.manaRegen * 1.25f);
- player.noFallDmg = true;
- }
- else if (item.type == ItemID.BatWings) // Greatly increases vision
- {
- player.noFallDmg = true;
- player.nightVision = false; // Does not stack with Night Owl; actual effect is handled in LightingEffectsSystem
- }
- else if (item.type == ItemID.HarpyWings)
- {
- player.moveSpeed += 0.1f;
- player.noFallDmg = true;
- }
- else if (item.type == ItemID.FrozenWings) // Increases cold debuff damage
- {
- player.noFallDmg = true;
- player.Calamity().frozenWingsCold = true;
- }
- else if (item.type == ItemID.FlameWings) // Increases heat debuff damage
- {
- player.noFallDmg = true;
- player.Calamity().flameWingsHeat = true;
- }
- else if (item.type == ItemID.LeafWings) // Bonus to defensive stats
- {
- player.noFallDmg = true;
- player.statDefense += 10;
- player.AddBuff(BuffID.DryadsWard, 2); // Dryad's Blessing
- }
- else if (item.type == ItemID.FestiveWings) // Drop homing christmas tree bulbs while in flight
- {
- player.noFallDmg = true;
if (modPlayer.wingProjectileCooldown <= 0)
{
var source = player.GetSource_Accessory(item);
- if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
+ if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && player.wingTime > 0f && !player.mount.Active && !player.mount.Cart)
{
- int ornamentDamage = (int)player.GetBestClassDamage().ApplyTo(50);
- int p = Projectile.NewProjectile(source, player.Center, Vector2.UnitY * 2f, ProjectileID.OrnamentFriendly, ornamentDamage, 5f, player.whoAmI);
+ Vector2 ornamentPos = player.Center + Vector2.UnitY.RotatedByRandom(MathHelper.ToRadians(105f)) * Main.rand.NextFloat(-512f, -320f);
+
+ int p = Projectile.NewProjectile(source, ornamentPos, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, player.whoAmI);
if (p.WithinBounds(Main.maxProjectiles))
- {
- Main.projectile[p].DamageType = DamageClass.Generic;
- Main.projectile[p].Calamity().lineColor = 1;
- modPlayer.wingProjectileCooldown = 15;
- }
+ modPlayer.wingProjectileCooldown = 90;
}
}
}
- else if (item.type == ItemID.TatteredFairyWings) // Leave a trail of damaging fairy dust while in flight
+ // Leaves a trail of black fairy dust which reduces flight time to any player that touches it
+ else if (item.type == ItemID.TatteredFairyWings)
{
- player.noFallDmg = true;
if (modPlayer.wingProjectileCooldown <= 0)
{
var source = player.GetSource_Accessory(item);
- if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
+ if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && player.wingTime > 0f && !player.mount.Active && !player.mount.Cart)
{
- int fairyDustDamage = (int)player.GetBestClassDamage().ApplyTo(35);
Vector2 fairyDustVel = Vector2.UnitY.RotatedByRandom(MathHelper.Pi) * Main.rand.NextFloat(0.08f, 0.2f);
- int p = Projectile.NewProjectile(source, player.Center, fairyDustVel, ModContent.ProjectileType(), fairyDustDamage, 0f, player.whoAmI);
+ int p = Projectile.NewProjectile(source, player.Center, fairyDustVel, ModContent.ProjectileType(), 0, 0f, player.whoAmI);
if (p.WithinBounds(Main.maxProjectiles))
- modPlayer.wingProjectileCooldown = 10;
+ modPlayer.wingProjectileCooldown = 8;
}
}
}
- else if (item.type == ItemID.FishronWings || item.type == ItemID.BetsyWings || item.type == ItemID.Yoraiz0rWings ||
- item.type == ItemID.JimsWings || item.type == ItemID.SkiphsWings || item.type == ItemID.LokisWings ||
- item.type == ItemID.ArkhalisWings || item.type == ItemID.LeinforsWings || item.type == ItemID.BejeweledValkyrieWing ||
- item.type == ItemID.RedsWings || item.type == ItemID.DTownsWings || item.type == ItemID.WillsWings ||
- item.type == ItemID.CrownosWings || item.type == ItemID.CenxsWings || item.type == ItemID.CreativeWings ||
- item.type == ItemID.FoodBarbarianWings || item.type == ItemID.GroxTheGreatWings || item.type == ItemID.GhostarsWings ||
- item.type == ItemID.SafemanWings || item.type == ItemID.RainbowWings || item.type == ItemID.LongRainbowTrailWings)
- {
- player.noFallDmg = true;
- }
if (item.type == ItemID.JellyfishNecklace || item.type == ItemID.JellyfishDivingGear || item.type == ItemID.ArcticDivingGear)
modPlayer.jellyfishNecklace = true;
@@ -1525,7 +1516,7 @@ namespace CalamityMod.Items
public override void HorizontalWingSpeeds(Item item, Player player, ref float speed, ref float acceleration)
{
CalamityPlayer modPlayer = player.Calamity();
- float moveSpeedBoost = modPlayer.moveSpeedBonus * 0.1f;
+ float moveSpeedBoost = modPlayer.moveSpeedBonus * 0.06f;
float flightSpeedMult = 1f +
(modPlayer.soaring ? SoaringPotion.FlightBoost : 0f) +
@@ -1540,6 +1531,36 @@ namespace CalamityMod.Items
flightAccMult = MathHelper.Clamp(flightAccMult, 0.5f, 1.5f);
acceleration *= flightAccMult;
}
+
+ public override void VerticalWingSpeeds(Item item, Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+ {
+ switch (item.type)
+ {
+ case ItemID.AngelWings:
+ maxAscentMultiplier *= 1.3f;
+ constantAscend *= 1.5f;
+ break;
+ case ItemID.DemonWings:
+ ascentWhenFalling *= 2f;
+ ascentWhenRising *= 2f;
+ maxCanAscendMultiplier *= 2f;
+ break;
+ case ItemID.FlameWings:
+ maxAscentMultiplier *= 1.2f;
+ constantAscend *= 1.35f;
+ break;
+ case ItemID.ButterflyWings:
+ maxAscentMultiplier *= 0.9f;
+ constantAscend *= 5f;
+ break;
+ case ItemID.GhostWings:
+ maxAscentMultiplier *= 0.904f;
+ constantAscend *= 5f;
+ break;
+ default:
+ break;
+ }
+ }
#endregion
#region GrabChanges
@@ -1561,7 +1582,7 @@ namespace CalamityMod.Items
#endregion
#region Ammo
- public override bool CanConsumeAmmo(Item weapon, Item ammo, Player player) => Main.rand.NextFloat() <= player.Calamity().rangedAmmoCost;
+ public override bool CanConsumeAmmo(Item weapon, Item ammo, Player player) => Main.rand.NextFloat() <= player.Calamity().ammoCost;
public static bool HasEnoughAmmo(Player player, Item item, int ammoConsumed)
{
@@ -1634,7 +1655,7 @@ namespace CalamityMod.Items
dontConsumeAmmo = true;
if (player.ammoCost75 && Main.rand.NextBool(4))
dontConsumeAmmo = true;
- if (Main.rand.NextFloat() > player.Calamity().rangedAmmoCost)
+ if (Main.rand.NextFloat() > player.Calamity().ammoCost)
dontConsumeAmmo = true;
if (!dontConsumeAmmo && itemAmmo.consumable)
diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs
index bfb8475015..bbe4afbd13 100644
--- a/Items/CalamityGlobalItemTooltip.cs
+++ b/Items/CalamityGlobalItemTooltip.cs
@@ -570,12 +570,17 @@ namespace CalamityMod.Items
if (item.healLife > 0 && Main.LocalPlayer.Calamity().healingPotionMultiplier != 1f)
EditTooltipByName("HealLife", (line) => line.Text = Language.GetOrRegister("CommonItemTooltip.RestoresLife").Format((int)(item.healLife * Main.LocalPlayer.Calamity().healingPotionMultiplier)));
+ // Ancient Manipulator also crafts stuff with Astral Bars
+ if (item.type == ItemID.LunarCraftingStation)
+ EditTooltipByNum(0, (line) => line.Text = EditedTooltip("LunarCraftingStation"));
+
+ // Reworked Gravity Globe
if (item.type == ItemID.GravityGlobe)
- EditTooltipByName("Tooltip1", (line) => line.Text = EditedTooltip("GravityGlobe"));
-
+ EditTooltipByNum(1, (line) => line.Text = EditedTooltip("GravityGlobe"));
+ // "Buffed" Step Stool
if (item.type == ItemID.PortableStool)
- EditTooltipByName("Tooltip0", (line) => line.Text += AddedTooltip("Stepstool"));
+ EditTooltipByNum(0, (line) => line.Text += AddedTooltip("PortableStool"));
#endregion
// For boss summon item clarity
@@ -794,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)
{
@@ -806,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
@@ -1223,7 +1234,7 @@ namespace CalamityMod.Items
sb.Append('\n');
if (Main.keyState.IsKeyDown(Keys.LeftShift))
{
- sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), asc.ToMphps(), (asc + rise).ToMphps(), (rMax * baseJumpSpeed).ToMph(), (asc + rise + fall).ToMphps()));
+ sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), asc.ToMphps(), (asc + rise).ToMphps(), (rMax * baseJumpSpeed).ToMph(), (asc + fall).ToMphps()));
if (hover)
{
sb.Append('\n');
@@ -1248,16 +1259,16 @@ namespace CalamityMod.Items
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
if (item.type == ItemID.AngelWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.95f, 0.15f);
if (item.type == ItemID.DemonWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
+ AddWingStats(item.wingSlot, 1f, 0.2f, 1f, 1.5f, 0.1f, "DemonWings");
if (item.type == ItemID.Jetpack)
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
if (item.type == ItemID.ButterflyWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.35f, 0.5f);
if (item.type == ItemID.FairyWings)
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
@@ -1266,19 +1277,19 @@ namespace CalamityMod.Items
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f, "BeeWings");
if (item.type == ItemID.HarpyWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f, "HarpyWings");
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
if (item.type == ItemID.BoneWings)
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.66f, 0.1f, "BoneWings");
if (item.type == ItemID.FlameWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f, "FlameWings");
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.8f, 0.135f);
if (item.type == ItemID.FrozenWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f, "FrozenWings");
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
if (item.type == ItemID.GhostWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.66f, 0.1f);
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.5f);
if (item.type == ItemID.BeetleWings)
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.66f, 0.1f);
@@ -1293,10 +1304,10 @@ namespace CalamityMod.Items
AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.805f, 0.1f);
if (item.type == ItemID.LeafWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f, "LeafWings");
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
if (item.type == ItemID.BatWings)
- AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f, "BatWings");
+ AddWingStats(item.wingSlot, 0.5f, 0.1f, 0.5f, 1.5f, 0.1f);
// All developer wings have identical stats and no special effects
if (item.type == ItemID.Yoraiz0rWings || item.type == ItemID.JimsWings || item.type == ItemID.SkiphsWings ||
diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs
index cb454cbecc..ccac4c3858 100644
--- a/Items/CalamityGlobalItemTweaks.cs
+++ b/Items/CalamityGlobalItemTweaks.cs
@@ -211,7 +211,7 @@ namespace CalamityMod.Items
{ ItemID.PygmyStaff, Do(AutoReuse, UseExact(20), DamageExact(70)) },
{ ItemID.QuadBarrelShotgun, Do(PointBlank, DamageExact(11)) },
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) },
- { ItemID.RainbowRod, Do(DamageExact(40), ManaExact(13)) },
+ { ItemID.RainbowRod, Do(DamageExact(40), ManaExact(13), KnockbackExact(8f)) },
{ ItemID.Rally, Do(AutoReuse, DamageExact(18)) },
{ ItemID.RavenStaff, Do(AutoReuse, UseExact(20), DamageExact(36)) },
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) },
@@ -333,7 +333,7 @@ namespace CalamityMod.Items
#endregion
#region CATEGORY 3: Tool Balancing
- { ItemID.AcornAxe, Do(AxePower(125)) }, // Axe of Regrowth
+ { ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.AdamantitePickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
@@ -596,28 +596,9 @@ namespace CalamityMod.Items
#endregion
#region CATEGORY 9: Sell Prices
- { ItemID.Apple, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Apricot, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Banana, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.BlackCurrant, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.BloodOrange, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Cherry, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Coconut, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Dragonfruit, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Elderberry, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.EncumberingStone, Do(Worthless) },
{ ItemID.GlowingMushroom, Do(Worthless) },
- { ItemID.Grapefruit, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Lemon, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Mango, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Mushroom, Do(Worthless) },
- { ItemID.Peach, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Pineapple, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Plum, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Pomegranate, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Rambutan, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.SpicyPepper, Do(Value(Item.sellPrice(copper: 40))) },
- { ItemID.Starfruit, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.PortableStool, Do(Value(Item.sellPrice(copper: 20))) }, // Step Stool
{ ItemID.UncumberingStone, Do(Worthless) },
{ ItemID.ViciousMushroom, Do(Worthless) },
diff --git a/Items/DraedonMisc/VoltageRegulationSystem.cs b/Items/DraedonMisc/VoltageRegulationSystem.cs
index 149fc0e488..08079cd86a 100644
--- a/Items/DraedonMisc/VoltageRegulationSystem.cs
+++ b/Items/DraedonMisc/VoltageRegulationSystem.cs
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.DraedonMisc
AddIngredient(5).
AddIngredient(ItemID.LunarBar, 5).
AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(4, out Func condition), condition).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Fishing/FishingRods/EarlyBloomRod.cs b/Items/Fishing/FishingRods/EarlyBloomRod.cs
index fa92d6cf33..ea7cbacd81 100644
--- a/Items/Fishing/FishingRods/EarlyBloomRod.cs
+++ b/Items/Fishing/FishingRods/EarlyBloomRod.cs
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
CreateRecipe().
AddIngredient(ItemID.WoodFishingPole).
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Fishing/FishingRods/WulfrumRod.cs b/Items/Fishing/FishingRods/WulfrumRod.cs
index d7309b4449..c004f3137f 100644
--- a/Items/Fishing/FishingRods/WulfrumRod.cs
+++ b/Items/Fishing/FishingRods/WulfrumRod.cs
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(6).
+ AddIngredient(5).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Materials/AscendantSpiritEssence.cs b/Items/Materials/AscendantSpiritEssence.cs
index 731d9c31c9..de3467dd4f 100644
--- a/Items/Materials/AscendantSpiritEssence.cs
+++ b/Items/Materials/AscendantSpiritEssence.cs
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Materials
AddIngredient(5).
AddIngredient(5).
AddIngredient(2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Materials/AuricBar.cs b/Items/Materials/AuricBar.cs
index 494cdca070..fd301108ee 100644
--- a/Items/Materials/AuricBar.cs
+++ b/Items/Materials/AuricBar.cs
@@ -94,8 +94,7 @@ namespace CalamityMod.Items.Materials
CreateRecipe(5).
AddIngredient(50).
AddIngredient().
- //Not Cosmic Anvil because making a bar at an anvil is a little odd? also allows pre-moon lord scal for those who really want to do it. win-win.
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
}
}
diff --git a/Items/Materials/BloodstoneCore.cs b/Items/Materials/BloodstoneCore.cs
index 68cbb03212..2e5607f957 100644
--- a/Items/Materials/BloodstoneCore.cs
+++ b/Items/Materials/BloodstoneCore.cs
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Materials
AddIngredient(5).
AddIngredient().
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Mounts/Brimrose.cs b/Items/Mounts/Brimrose.cs
index f23f2c5298..ce4728ef24 100644
--- a/Items/Mounts/Brimrose.cs
+++ b/Items/Mounts/Brimrose.cs
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Mounts
CreateRecipe().
AddIngredient(5).
AddIngredient(20).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Mounts/SquishyBean.cs b/Items/Mounts/SquishyBean.cs
index f7b1b676ee..9e5836c203 100644
--- a/Items/Mounts/SquishyBean.cs
+++ b/Items/Mounts/SquishyBean.cs
@@ -85,7 +85,6 @@ namespace CalamityMod.Items.Mounts
player.gravity = 1f;
player.maxFallSpeed = 20f;
}
- player.noFallDmg = true;
}
}
}
diff --git a/Items/NormalityRelocator.cs b/Items/NormalityRelocator.cs
index 12efc351c0..65138dcd96 100644
--- a/Items/NormalityRelocator.cs
+++ b/Items/NormalityRelocator.cs
@@ -49,7 +49,7 @@ namespace CalamityMod.Items
AddIngredient(ItemID.FragmentStardust, 30).
AddIngredient(5).
AddIngredient(10).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/PermanentBoosters/MiracleFruit.cs b/Items/PermanentBoosters/MiracleFruit.cs
index ad1b42d30f..974b0cbc05 100644
--- a/Items/PermanentBoosters/MiracleFruit.cs
+++ b/Items/PermanentBoosters/MiracleFruit.cs
@@ -73,8 +73,7 @@ namespace CalamityMod.Items.PermanentBoosters
AddIngredient(ItemID.LifeFruit, 5).
AddIngredient(5).
AddIngredient(12).
- //Not an anvil because making fruit at an anvil is a little weird, so here's something more magical.
- AddTile(TileID.DemonAltar).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/PermanentBoosters/NimbleBounder.cs b/Items/PermanentBoosters/NimbleBounder.cs
index e4919d1dfb..81ace67013 100644
--- a/Items/PermanentBoosters/NimbleBounder.cs
+++ b/Items/PermanentBoosters/NimbleBounder.cs
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.PermanentBoosters
// Same price as Frog Leg, which is used to shimmer into it
Item.value = Item.sellPrice(gold: 1);
Item.rare = ModContent.RarityType();
- Item.stack = Item.CommonMaxStack;
+ Item.maxStack = Item.CommonMaxStack;
Item.Calamity().devItem = true;
}
diff --git a/Items/PermanentBoosters/PhantomHeart.cs b/Items/PermanentBoosters/PhantomHeart.cs
index 2ec582f5fd..79b1f0ce12 100644
--- a/Items/PermanentBoosters/PhantomHeart.cs
+++ b/Items/PermanentBoosters/PhantomHeart.cs
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.PermanentBoosters
CreateRecipe().
AddIngredient(5).
AddIngredient(25).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/PermanentBoosters/SacredStrawberry.cs b/Items/PermanentBoosters/SacredStrawberry.cs
index 623ccd1731..d6e040021e 100644
--- a/Items/PermanentBoosters/SacredStrawberry.cs
+++ b/Items/PermanentBoosters/SacredStrawberry.cs
@@ -76,8 +76,7 @@ namespace CalamityMod.Items.PermanentBoosters
AddIngredient(ItemID.LifeFruit, 5).
AddIngredient(5).
AddIngredient().
- //Not an anvil because making fruit at an anvil is a little weird, so here's something more magical.
- AddTile(TileID.LunarCraftingStation).
+ AddTile().
Register();
}
}
diff --git a/Items/PermanentBoosters/SanguineTangerine.cs b/Items/PermanentBoosters/SanguineTangerine.cs
index 49ab59f968..1348fda9fe 100644
--- a/Items/PermanentBoosters/SanguineTangerine.cs
+++ b/Items/PermanentBoosters/SanguineTangerine.cs
@@ -76,8 +76,7 @@ namespace CalamityMod.Items.PermanentBoosters
AddIngredient(ItemID.SoulofFright, 5).
AddIngredient(ItemID.SoulofMight, 5).
AddIngredient(ItemID.SoulofSight, 5).
- //Not an anvil because making fruit at an anvil is a little weird, so here's something more magical.
- AddTile(TileID.DemonAltar).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/PermanentBoosters/TaintedCloudberry.cs b/Items/PermanentBoosters/TaintedCloudberry.cs
index 67207446de..56fc3b45ac 100644
--- a/Items/PermanentBoosters/TaintedCloudberry.cs
+++ b/Items/PermanentBoosters/TaintedCloudberry.cs
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.PermanentBoosters
AddIngredient(ItemID.LifeFruit, 5).
AddIngredient(10).
AddIngredient(8).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Placeables/Furniture/AstralBeaconItem.cs b/Items/Placeables/Furniture/AstralBeaconItem.cs
index 97e7a66d44..b63a91fa2c 100644
--- a/Items/Placeables/Furniture/AstralBeaconItem.cs
+++ b/Items/Placeables/Furniture/AstralBeaconItem.cs
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Furniture
AddIngredient(5).
AddIngredient(20).
AddIngredient(30).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.HeavyWorkBench).
Register();
}
}
diff --git a/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs b/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs
index 63ab5d8089..bdaac5f684 100644
--- a/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs
+++ b/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
CreateRecipe().
AddIngredient(20).
AddIngredient(ItemID.JungleSpores, 5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs
index 8f6217f917..b7a9a85f65 100644
--- a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs
+++ b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
AddIngredient(ItemID.LunarCraftingStation).
AddIngredient(15).
AddIngredient(12).
- AddIngredient(25).
+ AddIngredient(15).
Register();
}
}
diff --git a/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs b/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs
index da3038d601..38cd253bdc 100644
--- a/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs
+++ b/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
CreateRecipe().
AddIngredient(10).
AddRecipeGroup("AnyGoldBar", 5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
diff --git a/Items/Placeables/Furniture/CraftingStations/ProfanedCrucible.cs b/Items/Placeables/Furniture/CraftingStations/ProfanedCrucible.cs
index 67c0ddf555..dc9fb777f9 100644
--- a/Items/Placeables/Furniture/CraftingStations/ProfanedCrucible.cs
+++ b/Items/Placeables/Furniture/CraftingStations/ProfanedCrucible.cs
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
CreateRecipe().
AddIngredient(10).
AddIngredient(5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.MythrilAnvil).
Register();
}
}
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/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs b/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs
index 3fd80fc669..ece5bf1f44 100644
--- a/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs
+++ b/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Monoliths
{
CreateRecipe().
AddIngredient(15).
- AddTile(TileID.LunarCraftingStation).
+ AddTile().
Register();
}
}
diff --git a/Items/Placeables/Furniture/WulfrumLureItem.cs b/Items/Placeables/Furniture/WulfrumLureItem.cs
index 4d0318c02b..8f62916f19 100644
--- a/Items/Placeables/Furniture/WulfrumLureItem.cs
+++ b/Items/Placeables/Furniture/WulfrumLureItem.cs
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables.Furniture
{
CreateRecipe().
AddIngredient(5).
- AddIngredient().
+ AddIngredient().
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyBathtub.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyBathtub.cs
index 36312630cf..65070a845f 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyBathtub.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyBathtub.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
{
CreateRecipe().
AddIngredient(14).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyBed.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyBed.cs
index f3140813d1..353a1c5f8c 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyBed.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyBed.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(15).
AddIngredient(ItemID.Silk, 5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyBookcase.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyBookcase.cs
index d3df9dcdc5..f3ff94fd47 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyBookcase.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyBookcase.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(20).
AddIngredient(ItemID.Book, 10).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandelabra.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandelabra.cs
index 11c794c0f6..033e29b840 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandelabra.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandelabra.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(5).
AddIngredient(ItemID.Torch, 3).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandle.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandle.cs
index ba12961307..d6a2c55a98 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandle.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyCandle.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(4).
AddIngredient(ItemID.Torch).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyChair.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyChair.cs
index d2d7338feb..133d1339f9 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyChair.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyChair.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
{
CreateRecipe().
AddIngredient(4).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyChandelier.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyChandelier.cs
index 3de2820561..d90850b4d3 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyChandelier.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyChandelier.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
AddIngredient(4).
AddIngredient(ItemID.Torch, 4).
AddIngredient(ItemID.Chain).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Anvils).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyChest.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyChest.cs
index 88192ef233..d3f1b0136c 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyChest.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyChest.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(8).
AddRecipeGroup("IronBar", 2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyClock.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyClock.cs
index f0ff836923..1a7282ccef 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyClock.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyClock.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
AddIngredient(10).
AddRecipeGroup("IronBar", 3).
AddIngredient(ItemID.Glass, 6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyDoor.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyDoor.cs
index 2a3a1e7b02..b6508de82b 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyDoor.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyDoor.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
{
CreateRecipe().
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyDresser.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyDresser.cs
index 61a8967584..f347347fb4 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyDresser.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyDresser.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
{
CreateRecipe().
AddIngredient(16).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyLamp.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyLamp.cs
index 65d2590d83..3970db46da 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyLamp.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyLamp.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(3).
AddIngredient(ItemID.Torch).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyLantern.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyLantern.cs
index 41dcfc2525..1833b7a940 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyLantern.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyLantern.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(6).
AddIngredient(ItemID.Torch).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyPiano.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyPiano.cs
index d84715b21d..208c7a75d3 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyPiano.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyPiano.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
AddIngredient(15).
AddIngredient(ItemID.Bone, 4).
AddIngredient(ItemID.Book).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlySink.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlySink.cs
index 75ced4a50f..da49bd9456 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlySink.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlySink.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(6).
AddIngredient(ItemID.WaterBucket).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlySofa.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlySofa.cs
index 3e992a78d7..b95b3622d4 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlySofa.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlySofa.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
CreateRecipe().
AddIngredient(5).
AddIngredient(ItemID.Silk, 2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyStone.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyStone.cs
index 718a840b8c..3e7acb41e0 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyStone.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyStone.cs
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
AddIngredient().
AddIngredient().
AddIngredient(ItemID.Silk, 10).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyTable.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyTable.cs
index d390b64ae9..8517f93ef5 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyTable.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyTable.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
{
CreateRecipe().
AddIngredient(8).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureOtherworldly/OtherworldlyWorkBench.cs b/Items/Placeables/FurnitureOtherworldly/OtherworldlyWorkBench.cs
index 2cf9018b78..f1efd85ac8 100644
--- a/Items/Placeables/FurnitureOtherworldly/OtherworldlyWorkBench.cs
+++ b/Items/Placeables/FurnitureOtherworldly/OtherworldlyWorkBench.cs
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
{
CreateRecipe().
AddIngredient(10).
- AddTile(TileID.LunarCraftingStation).
Register();
}
}
diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs b/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs
index 2100d817a9..6202b9a5e6 100644
--- a/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs
+++ b/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
CreateRecipe(50).
AddIngredient(ItemID.Glass, 50).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Placeables/FurnitureProfaned/ProfanedRock.cs b/Items/Placeables/FurnitureProfaned/ProfanedRock.cs
index 7a5b532e7c..bb3ca2015c 100644
--- a/Items/Placeables/FurnitureProfaned/ProfanedRock.cs
+++ b/Items/Placeables/FurnitureProfaned/ProfanedRock.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
CreateRecipe(50).
AddRecipeGroup("AnyStoneBlock", 50).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs b/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs
index c3d7fc12d3..f91de46d0a 100644
--- a/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs
+++ b/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
{
CreateRecipe(5).
AddIngredient(5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs b/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs
index b975aced10..1e8e4c6e6e 100644
--- a/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs
+++ b/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
CreateRecipe(5).
AddIngredient(4).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Placeables/FurnitureStratus/StratusBathtub.cs b/Items/Placeables/FurnitureStratus/StratusBathtub.cs
index 3f5e3b6b76..ff810e5010 100644
--- a/Items/Placeables/FurnitureStratus/StratusBathtub.cs
+++ b/Items/Placeables/FurnitureStratus/StratusBathtub.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
{
CreateRecipe().
AddIngredient(14).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusBed.cs b/Items/Placeables/FurnitureStratus/StratusBed.cs
index 6ce98dccab..65c93798ec 100644
--- a/Items/Placeables/FurnitureStratus/StratusBed.cs
+++ b/Items/Placeables/FurnitureStratus/StratusBed.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(15).
AddIngredient(ItemID.Silk, 5).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusBookcase.cs b/Items/Placeables/FurnitureStratus/StratusBookcase.cs
index 558a78bfec..ac1226a1f8 100644
--- a/Items/Placeables/FurnitureStratus/StratusBookcase.cs
+++ b/Items/Placeables/FurnitureStratus/StratusBookcase.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(20).
AddIngredient(ItemID.Book, 10).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusBricks.cs b/Items/Placeables/FurnitureStratus/StratusBricks.cs
index c8e4ecead9..36f87a04c9 100644
--- a/Items/Placeables/FurnitureStratus/StratusBricks.cs
+++ b/Items/Placeables/FurnitureStratus/StratusBricks.cs
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
AddIngredient(3).
AddIngredient().
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Placeables/FurnitureStratus/StratusCandelabra.cs b/Items/Placeables/FurnitureStratus/StratusCandelabra.cs
index 3f4a616950..63228f55f2 100644
--- a/Items/Placeables/FurnitureStratus/StratusCandelabra.cs
+++ b/Items/Placeables/FurnitureStratus/StratusCandelabra.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(5).
AddIngredient(ItemID.Torch, 3).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusCandle.cs b/Items/Placeables/FurnitureStratus/StratusCandle.cs
index 1e0c3bc8ea..f8dd4f71ea 100644
--- a/Items/Placeables/FurnitureStratus/StratusCandle.cs
+++ b/Items/Placeables/FurnitureStratus/StratusCandle.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(4).
AddIngredient(ItemID.Torch).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusChair.cs b/Items/Placeables/FurnitureStratus/StratusChair.cs
index 20dd9f148d..8a6ff76d53 100644
--- a/Items/Placeables/FurnitureStratus/StratusChair.cs
+++ b/Items/Placeables/FurnitureStratus/StratusChair.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
{
CreateRecipe().
AddIngredient(4).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusChandelier.cs b/Items/Placeables/FurnitureStratus/StratusChandelier.cs
index 84b7f7fe5d..5f21142e57 100644
--- a/Items/Placeables/FurnitureStratus/StratusChandelier.cs
+++ b/Items/Placeables/FurnitureStratus/StratusChandelier.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
AddIngredient(4).
AddIngredient(ItemID.Torch, 4).
AddIngredient(ItemID.Chain).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Anvils).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusChest.cs b/Items/Placeables/FurnitureStratus/StratusChest.cs
index 9137ca711c..753df53dec 100644
--- a/Items/Placeables/FurnitureStratus/StratusChest.cs
+++ b/Items/Placeables/FurnitureStratus/StratusChest.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(8).
AddRecipeGroup("IronBar", 2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusClock.cs b/Items/Placeables/FurnitureStratus/StratusClock.cs
index 35591f9dac..01b94235d7 100644
--- a/Items/Placeables/FurnitureStratus/StratusClock.cs
+++ b/Items/Placeables/FurnitureStratus/StratusClock.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
AddIngredient(10).
AddRecipeGroup("IronBar", 3).
AddIngredient(ItemID.Glass, 6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusDoor.cs b/Items/Placeables/FurnitureStratus/StratusDoor.cs
index c0086b86cc..9182e72e40 100644
--- a/Items/Placeables/FurnitureStratus/StratusDoor.cs
+++ b/Items/Placeables/FurnitureStratus/StratusDoor.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
{
CreateRecipe().
AddIngredient(6).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusDresser.cs b/Items/Placeables/FurnitureStratus/StratusDresser.cs
index 3371fd2794..12e18ed01a 100644
--- a/Items/Placeables/FurnitureStratus/StratusDresser.cs
+++ b/Items/Placeables/FurnitureStratus/StratusDresser.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
{
CreateRecipe().
AddIngredient(16).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusLamp.cs b/Items/Placeables/FurnitureStratus/StratusLamp.cs
index 10dd94a614..3d1e1f2488 100644
--- a/Items/Placeables/FurnitureStratus/StratusLamp.cs
+++ b/Items/Placeables/FurnitureStratus/StratusLamp.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(3).
AddIngredient(ItemID.Torch).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusLantern.cs b/Items/Placeables/FurnitureStratus/StratusLantern.cs
index 96d8746e51..050ea27365 100644
--- a/Items/Placeables/FurnitureStratus/StratusLantern.cs
+++ b/Items/Placeables/FurnitureStratus/StratusLantern.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(6).
AddIngredient(ItemID.Torch).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusPiano.cs b/Items/Placeables/FurnitureStratus/StratusPiano.cs
index daf3753343..8d305c2cc2 100644
--- a/Items/Placeables/FurnitureStratus/StratusPiano.cs
+++ b/Items/Placeables/FurnitureStratus/StratusPiano.cs
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
AddIngredient(15).
AddIngredient(ItemID.Bone, 4).
AddIngredient(ItemID.Book).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusSink.cs b/Items/Placeables/FurnitureStratus/StratusSink.cs
index adbc891824..82c625509b 100644
--- a/Items/Placeables/FurnitureStratus/StratusSink.cs
+++ b/Items/Placeables/FurnitureStratus/StratusSink.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(6).
AddIngredient(ItemID.WaterBucket).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusSofa.cs b/Items/Placeables/FurnitureStratus/StratusSofa.cs
index 53c00d843d..705a35948b 100644
--- a/Items/Placeables/FurnitureStratus/StratusSofa.cs
+++ b/Items/Placeables/FurnitureStratus/StratusSofa.cs
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
CreateRecipe().
AddIngredient(5).
AddIngredient(ItemID.Silk, 2).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.Sawmill).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusTable.cs b/Items/Placeables/FurnitureStratus/StratusTable.cs
index dd7749ac4f..3e21e4e5b8 100644
--- a/Items/Placeables/FurnitureStratus/StratusTable.cs
+++ b/Items/Placeables/FurnitureStratus/StratusTable.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
{
CreateRecipe().
AddIngredient(8).
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.WorkBenches).
Register();
}
}
diff --git a/Items/Placeables/FurnitureStratus/StratusWorkBench.cs b/Items/Placeables/FurnitureStratus/StratusWorkBench.cs
index 12f8d5edcd..69f1b33b25 100644
--- a/Items/Placeables/FurnitureStratus/StratusWorkBench.cs
+++ b/Items/Placeables/FurnitureStratus/StratusWorkBench.cs
@@ -18,7 +18,6 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus
{
CreateRecipe().
AddIngredient(10).
- AddTile(TileID.LunarCraftingStation).
Register();
}
}
diff --git a/Items/Placeables/UelibloomBrick.cs b/Items/Placeables/UelibloomBrick.cs
index b90fd18f95..4866fe0c39 100644
--- a/Items/Placeables/UelibloomBrick.cs
+++ b/Items/Placeables/UelibloomBrick.cs
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables
CreateRecipe(50).
AddRecipeGroup("AnyStoneBlock", 50).
AddIngredient().
- AddTile(TileID.LunarCraftingStation).
+ AddTile(TileID.AdamantiteForge).
Register();
CreateRecipe().
AddIngredient(4).
diff --git a/Items/Potions/Alcohol/RedWine.cs b/Items/Potions/Alcohol/RedWine.cs
index 15c37e5d1a..df301e6121 100644
--- a/Items/Potions/Alcohol/RedWine.cs
+++ b/Items/Potions/Alcohol/RedWine.cs
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Potions.Alcohol
public static int HealValue = 200;
public static int RegenLoss = 1;
- public static int SecondDuration = 15;
+ public static int SecondDuration = 30;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RegenLoss.ToRegenPerSecond(), SecondDuration);
public override void SetStaticDefaults()
diff --git a/Items/SummonItems/CosmicWorm.cs b/Items/SummonItems/CosmicWorm.cs
index 1b60432d04..7b3e79c937 100644
--- a/Items/SummonItems/CosmicWorm.cs
+++ b/Items/SummonItems/CosmicWorm.cs
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.SummonItems
AddIngredient().
AddIngredient().
AddIngredient