mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-12 05:56:56 +00:00
32 lines
973 B
C#
32 lines
973 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace YHTMod.Projectiles.Weapons;
|
|
|
|
class MithrilPebbleOfPigSmitingProjectile : ModProjectile {
|
|
public override void SetDefaults() {
|
|
Projectile.width = 8;
|
|
Projectile.height = 8;
|
|
Projectile.friendly = true;
|
|
Projectile.penetrate = 1;
|
|
Projectile.tileCollide = true;
|
|
Projectile.DamageType = DamageClass.Ranged;
|
|
Projectile.ownerHitCheck = true;
|
|
Projectile.extraUpdates = 1;
|
|
Projectile.timeLeft = 300;
|
|
Projectile.aiStyle = ProjAIStyleID.ThrownProjectile;
|
|
Projectile.light = 0.3f;
|
|
}
|
|
|
|
public override void AI() {
|
|
base.AI();
|
|
DrawOriginOffsetX = 0;
|
|
DrawOffsetX = 0;
|
|
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;
|
|
}
|
|
}
|