configure a code style that is not completely cursed

This commit is contained in:
2026-01-07 19:08:34 +01:00
parent a945f17711
commit fff8b5e7f1
18 changed files with 188 additions and 298 deletions
@@ -6,10 +6,8 @@ using Terraria.ModLoader;
namespace YHTMod.Projectiles.Weapons;
class CopperSwordOnAStickProjectile : ModProjectile
{
public override void SetDefaults()
{
class CopperSwordOnAStickProjectile : ModProjectile {
public override void SetDefaults() {
Projectile.width = 80;
Projectile.height = 80;
@@ -23,8 +21,7 @@ class CopperSwordOnAStickProjectile : ModProjectile
Projectile.aiStyle = ProjAIStyleID.ShortSword;
}
public override void AI()
{
public override void AI() {
base.AI();
float random = (float)(Random.Shared.NextDouble() / 5f);
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2 -
@@ -33,4 +30,4 @@ class CopperSwordOnAStickProjectile : ModProjectile
DrawOriginOffsetX = 0;
DrawOffsetX = 0;
}
}
}