Various small changes
Wulfrum battery toggle with visibility and dust change Sahara Slicers mixel removal Opal striker tip position to fit new sprite and charge visual improvement Reality rupture visual bugfix and touch ups Spear of Destiny visual bugfix and touch ups
This commit is contained in:
1 parent
950e886d8b
commit
b79c8abc07
12 files changed
+61
-80
No files matched your search
@@ -36,7 +36,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.07f;
|
||||
player.GetModPlayer<WulfrumBatteryPlayer>().battery = true;
|
||||
if (!hideVisual)
|
||||
player.GetModPlayer<WulfrumBatteryPlayer>().battery = true;
|
||||
}
|
||||
|
||||
//Scrappable for 3-6 wulfrum scrap or a 20% chance to get an energy core
|
||||
@@ -66,20 +67,22 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
if (!projectile.npcProj && !projectile.trap && projectile.minion && !ProjectileID.Sets.MinionShot[projectile.type] && Main.player[projectile.owner].GetModPlayer<WulfrumBatteryPlayer>().battery)
|
||||
{
|
||||
float lightMult = 2f;
|
||||
float lightMult = 1f;
|
||||
if (Lighting.UpdateEveryFrame) //The light loks wayyy too bright in retro/trippy
|
||||
lightMult *= 0.5f;
|
||||
lightMult *= 0.25f;
|
||||
|
||||
Lighting.AddLight(projectile.Center, Color.DeepSkyBlue.ToVector3() * lightMult);
|
||||
Lighting.AddLight(projectile.Center, Color.LightGreen.ToVector3() * lightMult);
|
||||
|
||||
|
||||
|
||||
if (Main.rand.NextBool(16))
|
||||
if (Main.rand.NextBool(15))
|
||||
{
|
||||
float size = (projectile.Hitbox.Size() / 2f).Length();
|
||||
|
||||
Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 226, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(1f, 2.3f));
|
||||
Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 66, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(0.5f, 1.3f));
|
||||
zapDust.noGravity = true;
|
||||
zapDust.color = Main.rand.NextBool() ? Color.SkyBlue : Color.LightGreen;
|
||||
zapDust.velocity = projectile.velocity * 0.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
@@ -1977,7 +1977,7 @@ WulfrumBattery: {
|
||||
DisplayName: Wulfrum Battery
|
||||
Tooltip:
|
||||
'''
|
||||
Empowers your summons with wulfrum energy, letting them emit light around them
|
||||
Empowers your summons with wulfrum energy, letting them emit light around them if visibility is enabled
|
||||
7% increased summon damage
|
||||
50% chance to get an extra scrap when killing wulfrum robots
|
||||
Can also be scrapped at an extractinator
|
||||
|
||||
@@ -664,7 +664,7 @@ SeethingDischarge: {
|
||||
|
||||
Serpentine: {
|
||||
DisplayName: Serpentine
|
||||
Tooltip:
|
||||
Tooltip:
|
||||
'''
|
||||
Casts a serpent that follows the mouse cursor
|
||||
Ignores 15 points of enemy Defense
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
|
||||
Projectile.ownerHitCheck = true;
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.idStaticNPCHitCooldown = 6;
|
||||
Projectile.frameCounter = 0;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
@@ -31,21 +32,19 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (Main.rand.NextBool())
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Vector2 position = Projectile.Center + Vector2.Normalize(Projectile.velocity);
|
||||
Dust dust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 162, 0f, 0f, 0, default, Main.rand.NextFloat(1.2f, 1.5f))];
|
||||
dust.position = position;
|
||||
dust.velocity = Projectile.velocity.RotatedBy(0.2, default) * 0.1f + Projectile.velocity / 8f;
|
||||
dust.position += Projectile.velocity.RotatedBy(0.2, default);
|
||||
dust.fadeIn = 0.5f;
|
||||
dust.noGravity = true;
|
||||
dust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 162, 0f, 0f, 0, default, Main.rand.NextFloat(1.2f, 1.5f))];
|
||||
dust.position = position;
|
||||
dust.velocity = Projectile.velocity.RotatedBy(-0.2, default) * 0.1f + Projectile.velocity / 8f;
|
||||
dust.position += Projectile.velocity.RotatedBy(-0.2, default);
|
||||
dust.fadeIn = 0.5f;
|
||||
dust.noGravity = true;
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(7, 7), 162);
|
||||
dust.scale = 1.3f;
|
||||
dust.velocity = -Projectile.velocity * 0.4f;
|
||||
}
|
||||
|
||||
Player Owner = Main.player[Projectile.owner];
|
||||
float playerDist = Vector2.Distance(Owner.Center, Projectile.Center);
|
||||
if (Projectile.timeLeft % 2 == 0 && playerDist < 1400f && Projectile.timeLeft < 290)
|
||||
{
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 3f, -Projectile.velocity * 0.05f, false, 9, 2f, Color.OrangeRed * 0.25f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
|
||||
Vector2 armPosition = Owner.RotatedRelativePoint(Owner.MountedCenter, true);
|
||||
Vector2 tipPosition = armPosition + Projectile.velocity * Projectile.width * 0.85f;
|
||||
Vector2 tipPosition = (armPosition + Projectile.velocity * Projectile.width * 0.85f) + (Projectile.velocity * 4).RotatedBy(-0.3f * Projectile.direction);
|
||||
|
||||
if (SoundEngine.TryGetActiveSound(OpalChargeSlot, out var ChargeSound) && ChargeSound.IsPlaying)
|
||||
ChargeSound.Position = Projectile.Center;
|
||||
|
||||
@@ -45,16 +45,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (!Projectile.Calamity().stealthStrike)
|
||||
Projectile.extraUpdates = 1;
|
||||
|
||||
if (Projectile.timeLeft % 5 == 0)
|
||||
if (Projectile.timeLeft % 2 == 0)
|
||||
{
|
||||
float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(10f, 30f, Time, true));
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
float offsetRotationAngle = Projectile.velocity.ToRotation() + Time / 20f;
|
||||
float radius = (20f + (float)Math.Cos(Time / 13f) * 6f) * radiusFactor;
|
||||
Vector2 dustPosition = Projectile.Center;
|
||||
dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius;
|
||||
CritSpark spark = new CritSpark(dustPosition, -Projectile.velocity, Color.PaleGoldenrod, Color.Goldenrod, Main.rand.NextFloat(1.1f, 1.5f), Main.rand.Next(5, 8), 5f);
|
||||
CritSpark spark = new CritSpark(Projectile.Center + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity, Color.PaleGoldenrod, Color.Goldenrod, Main.rand.NextFloat(0.65f, 0.95f), 8, 0, 2.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
}
|
||||
@@ -92,9 +87,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
for (int i = 0; i <= hitsDust; i++)
|
||||
{
|
||||
Dust dust2 = Main.dust[Dust.NewDust(Projectile.Center, Projectile.width, Projectile.height, Main.rand.NextBool(3) ? 130 : 133, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f), 0, default, 1.1f)];
|
||||
Vector2 sparkVelocity = Projectile.velocity.RotatedByRandom(0.3f) * Main.rand.NextFloat(0.6f, 1.5f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Projectile.velocity, Main.rand.NextBool(3) ? 130 : 133, sparkVelocity, 0, default, Main.rand.NextFloat(1.2f, 1.5f));
|
||||
dust.noGravity = true;
|
||||
}
|
||||
SoundEngine.PlaySound(Hitsound, Projectile.position);
|
||||
SoundEngine.PlaySound(Hitsound, Projectile.Center);
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
|
||||
@@ -69,11 +69,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
for (int i = 0; i <= 4; i++)
|
||||
for (int i = 0; i <= 13; i++)
|
||||
{
|
||||
Dust dust2 = Main.dust[Dust.NewDust(target.position, Projectile.width, Projectile.height, Main.rand.NextBool(4) ? 242 : 310, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f), 0, default, 1.1f)];
|
||||
Vector2 sparkVelocity = Projectile.velocity.RotatedByRandom(0.25f) * Main.rand.NextFloat(0.3f, 1.8f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center - Projectile.velocity * 0.5f, Main.rand.NextBool(4) ? 242 : 310, sparkVelocity, 0, default, Main.rand.NextFloat(2.2f, 3.5f));
|
||||
dust.noGravity = true;
|
||||
dust.fadeIn = 0.5f
|
||||
}
|
||||
SoundEngine.PlaySound(Hitsound, Projectile.position);
|
||||
SoundEngine.PlaySound(Hitsound, Projectile.Center);
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/WulfrumKnifeTileHit2") { PitchVariance = 0.3f, Volume = 0.5f };
|
||||
|
||||
public int framesInAir = 0;
|
||||
public int SparkChance = 7;
|
||||
public int SparkChance = 1;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -41,20 +41,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.6f, 0.6f, 0.2f, 0.5f);
|
||||
}
|
||||
|
||||
if (Main.rand.NextBool(SparkChance))
|
||||
if (Projectile.timeLeft % 2 == 0 && Main.rand.NextBool(SparkChance) && Projectile.numHits == 0)
|
||||
{
|
||||
Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 2f;
|
||||
Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default);
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.6f, 0.8f), Color.Plum);
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 0.5f, Projectile.velocity * 0.01f, false, 7, 1.3f, Color.Plum * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
|
||||
}
|
||||
if (Main.rand.NextBool(SparkChance))
|
||||
{
|
||||
Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(3, default) * 0.1f - Projectile.velocity / 2f;
|
||||
Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default);
|
||||
SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.6f, 0.8f), Color.Plum);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
}
|
||||
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4;
|
||||
@@ -81,7 +71,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
if (homeIn)
|
||||
{
|
||||
SparkChance = 14;
|
||||
SparkChance = 2;
|
||||
Projectile.extraUpdates = 4;
|
||||
Vector2 moveDirection = Projectile.SafeDirectionTo(center, Vector2.UnitY);
|
||||
Projectile.velocity = (Projectile.velocity * 20f + moveDirection * 12f) / (21f);
|
||||
|
||||
@@ -39,28 +39,20 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Player Owner = Main.player[Projectile.owner];
|
||||
float playerDist = Vector2.Distance(Owner.Center, Projectile.Center);
|
||||
|
||||
Time++;
|
||||
Projectile.velocity *= 1.003f;
|
||||
Projectile.scale = 1.3f;
|
||||
|
||||
Vector3 DustLight = new Vector3(0.209f, 0.140f, 0.202f);
|
||||
Lighting.AddLight(Projectile.Center, DustLight * 8);
|
||||
//Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.6f, 0.6f, 0.2f, 0.5f);
|
||||
|
||||
if (Time % 2 == 0)
|
||||
if (Time > 10 && playerDist < 1400f)
|
||||
{
|
||||
Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-2.5f, default) * 0.1f - Projectile.velocity / 2f;
|
||||
Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default);
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(22, 25), Main.rand.NextFloat(1.2f, 1.9f), Color.Plum);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
|
||||
}
|
||||
if (Time % 2 == 0)
|
||||
{
|
||||
Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(2.5f, default) * 0.1f - Projectile.velocity / 2f;
|
||||
Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default);
|
||||
SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(22, 25), Main.rand.NextFloat(1.2f, 1.9f), Color.Plum);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
SparkParticle spark3 = new SparkParticle(Projectile.Center - Projectile.velocity, Projectile.velocity * 0.01f, false, 18, 3.4f, Color.Plum * 0.6f);
|
||||
GeneralParticleHandler.SpawnParticle(spark3);
|
||||
}
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4;
|
||||
}
|
||||
@@ -101,7 +93,15 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i <= 15; i++)
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 272, Projectile.oldVelocity.X * 0.3f, Projectile.oldVelocity.Y * 0.3f, 0, default, Main.rand.NextFloat(1.7f, 2.1f));
|
||||
Vector2 sparkVelocity = Projectile.velocity.RotatedByRandom(0.4f) * Main.rand.NextFloat(0.6f, 1.5f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Projectile.velocity, 272, sparkVelocity.RotatedByRandom(0.1f), 0, default, Main.rand.NextFloat(1.2f, 1.5f));
|
||||
dust.noGravity = true;
|
||||
|
||||
int sparkLifetime = Main.rand.Next(43, 48);
|
||||
float sparkScale = Main.rand.NextFloat(2.2f, 3f);
|
||||
Color sparkColor = Color.Plum * 0.8f;
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center, sparkVelocity, false, sparkLifetime, sparkScale, sparkColor);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Color.Plum, new Vector2(2f, 2f), Main.rand.NextFloat(12f, 25f), 0.1f, 1f, 13);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public int framesInAir = 0;
|
||||
private bool initialized = false;
|
||||
public int SparkChance = 8;
|
||||
public int SparkChance = 1;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -51,20 +51,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
initialized = true;
|
||||
}
|
||||
if (Main.rand.NextBool(SparkChance))
|
||||
if (Projectile.timeLeft % 2 == 0 && Main.rand.NextBool(SparkChance) && Projectile.numHits == 0)
|
||||
{
|
||||
Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 8f;
|
||||
Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default);
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod);
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 0.5f, Projectile.velocity * 0.01f, false, 7, 0.7f, Color.PaleGoldenrod * 0.3f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
|
||||
}
|
||||
if (Main.rand.NextBool(SparkChance))
|
||||
{
|
||||
Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(3, default) * 0.1f - Projectile.velocity / 8f;
|
||||
Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default);
|
||||
SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
}
|
||||
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4;
|
||||
@@ -91,7 +81,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
if (homeIn)
|
||||
{
|
||||
SparkChance = 16;
|
||||
SparkChance = 2;
|
||||
Projectile.extraUpdates = 3;
|
||||
Vector2 moveDirection = Projectile.SafeDirectionTo(center, Vector2.UnitY);
|
||||
Projectile.velocity = (Projectile.velocity * 20f + moveDirection * 12f) / (21f);
|
||||
|
||||
Reference in new issue
Block a user