diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index bf3151414b..fae2497d31 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -101,6 +101,39 @@ namespace CalamityMod.CalPlayer } + //Charge animation for Thread of Eradication + if (Player.HeldItem.type == ModContent.ItemType() && !Player.ItemTimeIsZero && drawInfo.shadow == 0f) + { + var color = Color.Fuchsia; + float scale = (1 - (Player.itemTime - 7) / 50f) * 0.2f; + if (Player.itemTime < 7) + { + scale = ((Player.itemTime) / 7f) * 0.2f; + } + if (Player.itemTime > 60) + { + scale = (1 - (Player.itemTime - 70) / 110f) * 0.5f; + if (Player.itemTime < 70) + { + scale = ((Player.itemTime - 60) / 10f) * 0.5f; + } + color = Color.Cyan; + } + + if (CalamityClientConfig.Instance.Photosensitivity) + color = color * 0.2f; + var bloomTex = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + var circleTex = ModContent.Request("CalamityMod/ExtraTextures/BasicCircle").Value; + Main.spriteBatch.SafeBegin(SpriteSortMode.Deferred, BatchSetting.Additive, null, Main.GameViewMatrix.TransformationMatrix, () => + { + Main.spriteBatch.Draw(bloomTex, Player.Center + (Vector2.UnitX * Player.direction).RotatedBy(Player.itemRotation) * (48 + scale * 96) - Main.screenPosition, null, color, 0, bloomTex.Size() * 0.5f, scale * 2.0f, SpriteEffects.None, 0); + Main.spriteBatch.Draw(bloomTex, Player.Center + (Vector2.UnitX * Player.direction).RotatedBy(Player.itemRotation) * (48 + scale * 96) - Main.screenPosition, null, color, 0, bloomTex.Size() * 0.5f, scale * 2.0f, SpriteEffects.None, 0); + }); + for (var i = 0; i < 5; i++) + Main.spriteBatch.Draw(circleTex, Player.Center + (Vector2.UnitX * Player.direction).RotatedBy(Player.itemRotation) * (48 + scale * 96) - Main.screenPosition, null, Color.Black * ((i+1)/5f) * ( CalamityClientConfig.Instance.Photosensitivity ? 0.2f : 1f), 0, circleTex.Size() * 0.5f, scale* 2.2f * (0.5f + 0.5f * (1- (i)/5f)), SpriteEffects.None, 0); + //GeneralParticleHandler.SpawnParticle(new DirectionalPulseRing(player.Center + Vector2.UnitX.RotatedBy(player.itemRotation) * (48 + scale*96), Vector2.Zero, Color.Cyan, Vector2.One, 0, scale, scale, 3)); + } + // Dust modifications while high. if (calamityPlayer.trippy) { diff --git a/Items/Weapons/Magic/DeathhailStaff.cs b/Items/Weapons/Magic/DeathhailStaff.cs index b4e2176885..8fad7482e3 100644 --- a/Items/Weapons/Magic/DeathhailStaff.cs +++ b/Items/Weapons/Magic/DeathhailStaff.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 80; Item.height = 84; - Item.damage = 1500; + Item.damage = 3200; Item.DamageType = DamageClass.Magic; Item.mana = 16; Item.useTime = 30; @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.knockBack = 4f; Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); - Item.UseSound = SoundID.Item12; + Item.UseSound = SoundID.Item12 with {Volume = 0.75f}; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 18f; diff --git a/Items/Weapons/Ranged/Deathwind.cs b/Items/Weapons/Ranged/Deathwind.cs index 3b5ce2b6ce..0c716985e9 100644 --- a/Items/Weapons/Ranged/Deathwind.cs +++ b/Items/Weapons/Ranged/Deathwind.cs @@ -53,12 +53,6 @@ namespace CalamityMod.Items.Weapons.Ranged if (player.itemTime < 60) { player.itemRotation = player.DirectionTo(player.Calamity().mouseWorld).ToRotation(); - float scale = (1 - (player.itemTime - 10) / 50f) * 0.3f; - if (player.itemTime < 10) - { - scale = ((player.itemTime) / 10f) * 0.3f; - } - GeneralParticleHandler.SpawnParticle(new DirectionalPulseRing(player.Center + Vector2.UnitX.RotatedBy(player.itemRotation) * (48 + scale*96), Vector2.Zero, Color.Cyan, Vector2.One, 0, scale, scale, 3)); if (player.itemTime == 1) { if (player.channel) @@ -81,12 +75,6 @@ namespace CalamityMod.Items.Weapons.Ranged else { player.itemRotation += MathHelper.Clamp(MathHelper.WrapAngle(player.DirectionTo(player.Calamity().mouseWorld).ToRotation() - player.itemRotation), -0.04f, 0.04f); - float scale = (1- (player.itemTime-70) / 110f) * 0.75f; - if (player.itemTime < 70) - { - scale = ((player.itemTime - 60) / 10f) * 0.75f; - } - GeneralParticleHandler.SpawnParticle(new DirectionalPulseRing(player.Center + Vector2.UnitX.RotatedBy(player.itemRotation) * (48 + scale * 96), Vector2.Zero, Color.Fuchsia, Vector2.One, 0, scale, scale, 3)); if (player.itemTime == 60) { diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 0e8e942090..53e7bfe347 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1349,8 +1349,8 @@ MagicHatBuff: { } Mechworm: { - DisplayName: Mechworm - Description: The mechworm will protect you + DisplayName: Void Eater Marionette + Description: The power to control the Devourer is yours } MidnightSunBuff: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 22637db503..5b1fceaf5f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -234,10 +234,7 @@ DarkSpark: { DeathhailStaff: { DisplayName: Hyperdeath Rift Scepter - Tooltip: - ''' - Rips a massive rift in spacetime - ''' + Tooltip: Rips a massive rift in spacetime } DeathValleyDuster: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 83b262374b..fff03ece69 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -492,7 +492,7 @@ Excelsus: { ''' Swings a blade forged from the Devourer's maw in a 3-swing combo The first swing only hits close range - The second swing additionally launches Godkiller Fireballs + The second swing additionally launches Faith Incinerator The third swing causes a bite at the cursor, exploding for masive damage ''' } @@ -1363,7 +1363,7 @@ TheObliterator: { {$Common.YoyoStatsInfinite} [GFB] ''' - TooltipNormal: Occasionally performs a portal dash at nearby foes + TooltipNormal: Occasionally performs a miniature Dimensional Drive at nearby foes TooltipGFB: just a slight bit of dust spam on this weapon im afraid } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 33c251050d..7247cd27eb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -747,7 +747,11 @@ StaffOfNecrosteocytes: { StaffoftheMechworm: { DisplayName: Void Eater Marionette - Tooltip: Summons a mini devourer to fight for you + Tooltip: + ''' + Contains the power to control a miniature Devourer + Repeated summons increase the length of the Devourer + ''' } StarspawnHelixStaff: { diff --git a/Projectiles/Magic/DeathhailBeam.cs b/Projectiles/Magic/DeathhailBeam.cs index bc1bd4c57d..1a9e0438ff 100644 --- a/Projectiles/Magic/DeathhailBeam.cs +++ b/Projectiles/Magic/DeathhailBeam.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Magic if (time >= attackTime && !doneAttack) { SoundStyle attack = new("CalamityMod/Sounds/Custom/DoGLaserWallBigAttack"); - SoundEngine.PlaySound(attack with { Volume = 0.5f, Pitch = 0, MaxInstances = -1 }, targetPos); + SoundEngine.PlaySound(attack with { Volume = 0.6f, Pitch = 0, MaxInstances = -1 }, targetPos); laserFX = 2.5f; doneAttack = true; storedTime = time; @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Magic float _ = float.NaN; Vector2 start = beamStart; Vector2 end = beamStart + directionToTarget * laserLength * 2; - bool hitCheck = Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), start, end, 30 * Projectile.scale, ref _); + bool hitCheck = Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), start, end, 70 * Projectile.scale, ref _); return hitCheck; } diff --git a/Projectiles/Typeless/FriendlyLaserWallBeam.cs b/Projectiles/Typeless/FriendlyLaserWallBeam.cs index b5a00ad9b9..149c2f07c4 100644 --- a/Projectiles/Typeless/FriendlyLaserWallBeam.cs +++ b/Projectiles/Typeless/FriendlyLaserWallBeam.cs @@ -163,6 +163,9 @@ namespace CalamityMod.Projectiles.Typeless else { opacity = 1f; + + if (CalamityClientConfig.Instance.Photosensitivity) + opacity = 0.2f; for (int t = 0; t < (!doneAttack ? 1 : 5); t++) { bool notFirstDrawn = (t > (Projectile.scale > 3 ? 1 : 0));