wingman and terratomere fix
This commit is contained in:
1 parent
53d67c8081
commit
bc4c56fc68
2 files changed
+3
-3
No files matched your search
@@ -191,7 +191,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
SoundStyle fire = new("CalamityMod/Sounds/Item/DeadSunExplosion");
|
||||
SoundEngine.PlaySound(fire with { Volume = 0.35f, Pitch = -0.4f, PitchVariance = 0.2f }, Projectile.Center);
|
||||
Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), tipPosition, (firingVelocity * 2) * Utils.GetLerpValue(60, 10, FiringTime, true), ModContent.ProjectileType<WingmanGrenade>(), (int)(Projectile.damage * 6), Projectile.knockBack * 5, Projectile.owner, 0);
|
||||
Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), tipPosition, (firingVelocity * 1.3f) * Utils.GetLerpValue(60, 10, FiringTime, true), ModContent.ProjectileType<WingmanGrenade>(), (int)(Projectile.damage * 6), Projectile.knockBack * 5, Projectile.owner, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -60,11 +60,11 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
Vector2 origin = frame.Size() * 0.5f;
|
||||
|
||||
for (int i = 0; i < 36; i++)
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Vector2 lightDrawPosition = drawPosition + (MathHelper.TwoPi * i / 36f + Main.GlobalTimeWrappedHourly * 5f).ToRotationVector2() * Projectile.scale * 12f;
|
||||
Color lightBurstColor = CalamityUtils.MulticolorLerp(Projectile.timeLeft / 144f, Terratomere.TerraColor1, Terratomere.TerraColor2);
|
||||
lightBurstColor = Color.Lerp(lightBurstColor, Color.White, 0.4f) * Projectile.Opacity * 0.184f;
|
||||
lightBurstColor = Color.Lerp(lightBurstColor, Color.White, 0.4f) * Projectile.Opacity * 0.24f;
|
||||
Main.spriteBatch.Draw(lightTexture, lightDrawPosition, null, lightBurstColor, 0f, lightTexture.Size() * 0.5f, Projectile.scale * 1.32f, SpriteEffects.None, 0);
|
||||
}
|
||||
Main.spriteBatch.Draw(texture, drawPosition, frame, Color.White, 0f, origin, 1.6f, SpriteEffects.None, 0);
|
||||
|
||||
Reference in new issue
Block a user