mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
configure a code style that is not completely cursed
This commit is contained in:
@@ -5,10 +5,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace YHTMod.Projectiles.Weapons;
|
||||
|
||||
class MithrilPebbleOfPigSmitingProjectile : ModProjectile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
class MithrilPebbleOfPigSmitingProjectile : ModProjectile {
|
||||
public override void SetDefaults() {
|
||||
Projectile.width = 8;
|
||||
Projectile.height = 8;
|
||||
Projectile.friendly = true;
|
||||
@@ -22,13 +20,12 @@ class MithrilPebbleOfPigSmitingProjectile : ModProjectile
|
||||
Projectile.light = 0.3f;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
public override void AI() {
|
||||
base.AI();
|
||||
DrawOriginOffsetX = 0;
|
||||
DrawOffsetX = 0;
|
||||
var dust = Dust.NewDust(Projectile.Center, 1, 1, DustID.Mythril, 0f, 0f, 0, default(Color), 1f);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, DustID.Mythril, 0f, 0f, 0, default(Color), 1f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0.3f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user