Several backlogged resprites

This commit is contained in:
CongratsIsTrash committed 2026-07-13 17:18:33 -04:00
1 parent ed889b2d3f
commit b2b08b130b
14 files changed
+100 -16

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Weapons.Melee
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 46;
Item.height = 56;
Item.width = 66;
Item.height = 74;
Item.damage = 80;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 15;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 989 B

@@ -19,6 +19,7 @@ AuralisBullet.DisplayName: Auralis Bullet
AuricBullet.DisplayName: Auric Bullet
AuroraFire.DisplayName: Aurora Blaze
BallistaGreatArrow.DisplayName: Ballista Great Arrow
BallistaShard.DisplayName: Ballista Shard
BarinadeArrow.DisplayName: Fin Arrow
BlightFlames.DisplayName: Blight Flames
BlissfulBombardierSplitProjectile.DisplayName: Profaned Mini-Rocket
+2 -2
View File
@@ -16,8 +16,8 @@ namespace CalamityMod.Projectiles.Melee
public override void SetDefaults()
{
Projectile.width = 20;
Projectile.height = 20;
Projectile.width = 26;
Projectile.height = 26;
Projectile.friendly = true;
Projectile.penetrate = 1;
Projectile.timeLeft = 300;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

After

Width:  |  Height:  |  Size: 623 B

+1 -12
View File
@@ -9,11 +9,6 @@ namespace CalamityMod.Projectiles.Ranged
public class BallistaGreatArrow : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override void SetStaticDefaults()
{
ProjectileID.Sets.TrailCacheLength[Type] = 10;
ProjectileID.Sets.TrailingMode[Type] = 1;
}
public override void SetDefaults()
{
@@ -43,16 +38,10 @@ namespace CalamityMod.Projectiles.Ranged
for (int i = 0; i < 2; i++) // Burst into 2 shards upwards
{
Vector2 baseVelocity = Vector2.UnitY * -12f;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Top, baseVelocity.RotatedByRandom(MathHelper.Pi * 0.1f), ModContent.ProjectileType<FossilShard>(), Projectile.damage / 4, Projectile.knockBack * 0.25f, Projectile.owner);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Top, baseVelocity.RotatedByRandom(MathHelper.Pi * 0.1f), ModContent.ProjectileType<BallistaShard>(), Projectile.damage / 4, Projectile.knockBack * 0.25f, Projectile.owner);
}
}
public override void OnKill(int timeLeft) => SoundEngine.PlaySound(SoundID.Item14, Projectile.position);
public override bool PreDraw(ref Color lightColor)
{
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 2);
return false;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 902 B

After

Width:  |  Height:  |  Size: 942 B

+61
View File
@@ -0,0 +1,61 @@
using CalamityMod.Buffs.StatDebuffs;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Ranged
{
public class BallistaShard : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override void SetStaticDefaults()
{
Main.projFrames[Type] = 3;
}
public override void SetDefaults()
{
Projectile.width = 10;
Projectile.height = 10;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Ranged;
Projectile.penetrate = 1;
Projectile.aiStyle = ProjAIStyleID.Arrow;
Projectile.timeLeft = 120;
AIType = ProjectileID.WoodenArrowFriendly;
}
public override void AI()
{
if (Projectile.timeLeft == 120)
Projectile.frame = Main.rand.Next(3);
if (Projectile.velocity.Y <= -2f)
Projectile.velocity.Y = -2f;
Projectile.velocity.Y += 0.025f;
Projectile.rotation += Projectile.velocity.Y;
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 60);
}
public override void OnKill(int timeLeft)
{
for (int i = 0; i <= 2; i++)
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.Sand, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
}
}
public override bool PreDraw(ref Color lightColor)
{
Texture2D tex = TextureAssets.Projectile[Type].Value;
Rectangle frame = tex.Frame(1, Main.projFrames[Type], 0, Projectile.frame);
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, frame, lightColor, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None);
return false;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

+18
View File
@@ -1,5 +1,8 @@
using CalamityMod.Buffs.StatDebuffs;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Ranged
@@ -7,6 +10,10 @@ namespace CalamityMod.Projectiles.Ranged
public class FossilShard : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override void SetStaticDefaults()
{
Main.projFrames[Type] = 5;
}
public override void SetDefaults()
{
Projectile.width = 10;
@@ -21,6 +28,9 @@ namespace CalamityMod.Projectiles.Ranged
public override void AI()
{
if (Projectile.timeLeft == 120)
Projectile.frame = Main.rand.Next(5);
if (Projectile.ai[1] != 1f)
{
if (Projectile.velocity.Y <= -2f)
@@ -42,5 +52,13 @@ namespace CalamityMod.Projectiles.Ranged
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.Sand, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
}
}
public override bool PreDraw(ref Color lightColor)
{
Texture2D tex = TextureAssets.Projectile[Type].Value;
Rectangle frame = tex.Frame(1, Main.projFrames[Type], 0, Projectile.frame);
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, frame, lightColor, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None);
return false;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 504 B

+15
View File
@@ -1,7 +1,9 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Items.Weapons.Rogue;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
@@ -11,6 +13,10 @@ namespace CalamityMod.Projectiles.Rogue
public new string LocalizationCategory => "Projectiles.Rogue";
public override string Texture => "CalamityMod/Projectiles/Ranged/FossilShard";
public override void SetStaticDefaults()
{
Main.projFrames[Type] = 5;
}
public override void SetDefaults()
{
Projectile.width = 10;
@@ -31,6 +37,7 @@ namespace CalamityMod.Projectiles.Rogue
{
Projectile.originalDamage = SpearofPaleolith.ShardBaseDamage;
Projectile.ContinuouslyUpdateDamageStats = true;
Projectile.frame = Main.rand.Next(5);
}
Projectile.velocity.X *= 0.975f;
@@ -59,5 +66,13 @@ namespace CalamityMod.Projectiles.Rogue
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.Sand, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
}
public override bool PreDraw(ref Color lightColor)
{
Texture2D tex = TextureAssets.Projectile[Type].Value;
Rectangle frame = tex.Frame(1, Main.projFrames[Type], 0, Projectile.frame);
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, frame, lightColor, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None);
return false;
}
}
}