Omega_Nightfueled

Untitled

Sep 4th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using Microsoft.Xna.Framework;
  5. using Terraria.ModLoader;
  6. using Terraria;
  7. using Terraria.ID;
  8. using Terraria.DataStructures;
  9. using Terraria.Utilities;
  10. using Microsoft.Xna.Framework.Graphics;
  11.  
  12. namespace MoreKnives.Projectiles
  13. {
  14. public class DemoniteKnive : ModProjectile
  15. {
  16. public override void SetStaticDefaults() {
  17. DisplayName.SetDefault("Worm Tooth"); //The English name of the projectile
  18. ProjectileID.Sets.TrailCacheLength[projectile.type] = 5; //The length of old position to be recorded
  19. ProjectileID.Sets.TrailingMode[projectile.type] = 0; //The recording mode
  20. }
  21.  
  22. public override void SetDefaults() {
  23. projectile.aiStyle = 2;
  24. projectile.height = 30;
  25. projectile.width = 14;
  26. projectile.penetrate = 1;
  27. projectile.friendly = true;
  28. aiType = ProjectileID.VampireKnife;
  29. }
  30. public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) {
  31. target.AddBuff (mod.BuffType."Necrosis", 120, false);
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment