Commit of decompiled and "updated" code.

This commit is contained in:
Big Duckie
2022-07-03 14:13:26 -06:00
parent 3d34e53842
commit e1441e74a5
731 changed files with 18423 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
using Terraria;
using Terraria.ModLoader;
namespace FabusMod.Projectiles.Shimada;
public class ShimadaWaveNihon : ModProjectile
{
public override void SetDefaults()
{
Projectile.width = 13;
Projectile.height = 13;
Projectile.aiStyle = 1;
Projectile.friendly = true;
Projectile.hostile = false;
Projectile.penetrate = 1;
Projectile.timeLeft = 600;
Projectile.alpha = 255;
Projectile.light = 0.5f;
Projectile.ignoreWater = true;
Projectile.tileCollide = true;
Projectile.extraUpdates = 2;
AIType = 14;
}
public override void AI()
{
if (Utils.NextFloat(Main.rand) < 0.5f)
{
int dust1 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, ModContent.DustType<Dusts.OniDust>(), 0f, 0f, 0, default, 1f);
Main.dust[dust1].scale = 1.9f;
Dust obj = Main.dust[dust1];
obj.velocity *= 0.1f;
Main.dust[dust1].noGravity = true;
}
}
}