Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- using Microsoft.Xna.Framework;
- using Terraria.ModLoader;
- using Terraria;
- using Terraria.ID;
- using Terraria.DataStructures;
- using Terraria.Utilities;
- using Microsoft.Xna.Framework.Graphics;
- namespace MoreKnives.Projectiles
- {
- public class DemoniteKnive : ModProjectile
- {
- public override void SetStaticDefaults() {
- DisplayName.SetDefault("Worm Tooth"); //The English name of the projectile
- ProjectileID.Sets.TrailCacheLength[projectile.type] = 5; //The length of old position to be recorded
- ProjectileID.Sets.TrailingMode[projectile.type] = 0; //The recording mode
- }
- public override void SetDefaults() {
- projectile.aiStyle = 2;
- projectile.height = 30;
- projectile.width = 14;
- projectile.penetrate = 1;
- projectile.friendly = true;
- aiType = ProjectileID.VampireKnife;
- }
- public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) {
- target.AddBuff (mod.BuffType."Necrosis", 120, false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment