This commit is contained in:
mountaindrew10 committed 2025-05-07 22:30:02 -05:00
commit 05e371779e
16 files changed
+90 -15

No files matched your search

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

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

+1 -1
View File
@@ -714,7 +714,7 @@ namespace CalamityMod.World
float cavePerlinValueWalls = CalamityUtils.PerlinNoise2D(X / 600f, Y / 350f, 5, cavePerlinSeedWalls) + 0.5f + horizontalOffsetNoiseWalls;
float cavePerlinValue2Walls = CalamityUtils.PerlinNoise2D(X / 600f, Y / 350f, 5, unchecked(cavePerlinSeedWalls - 1)) + 0.5f;
float caveNoiseMapWalls = (cavePerlinValueWalls + cavePerlinValue2Walls) * 0.5f;
float caveCreationThresholdWalls = horizontalOffsetNoiseWalls * 3.5f + 0.235f;
float caveCreationThresholdWalls = horizontalOffsetNoiseWalls * 3.5f + 0.3f;
if (caveNoiseMapWalls * caveNoiseMapWalls > caveCreationThresholdWalls)
{