Thread Of Eradication animation, misc touchups

This commit is contained in:
Doze-Zoze committed 2025-09-03 15:54:37 -05:00
1 parent 29836dd323
commit 2b08082737
9 files changed
+50 -25

No files matched your search

+33
View File
@@ -101,6 +101,39 @@ namespace CalamityMod.CalPlayer
}
//Charge animation for Thread of Eradication
if (Player.HeldItem.type == ModContent.ItemType<Deathwind>() && !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<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
var circleTex = ModContent.Request<Texture2D>("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)
{
+2 -2
View File
@@ -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<CosmicPurple>();
Item.UseSound = SoundID.Item12;
Item.UseSound = SoundID.Item12 with {Volume = 0.75f};
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<DeathhailBeam>();
Item.shootSpeed = 18f;
-12
View File
@@ -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)
{
@@ -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: {
@@ -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: {
@@ -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
}
@@ -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: {
+2 -2
View File
@@ -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;
}
@@ -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));