Omega_Nightfueled

Untitled

Aug 13th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 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 MoreBoomerangs.Projectiles
  13. {
  14. public class GoldenDiskThrow : ModProjectile
  15. {
  16. public override void SetStaticDefaults() {
  17. DisplayName.SetDefault("Golden Disk"); //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. projectile.width = 64;
  21. projectile.height = 64;
  22. }
  23.  
  24. public override void SetDefaults() {
  25. projectile.CloneDefaults(ProjectileID.FruitcakeChakram); //Set to above 0 if you want the projectile to update multiple time in a frame
  26. projectile.ai[0] += 1f;
  27. if (projectile.ai[0] >= 120f)
  28. {
  29. aiType = ProjectileID.FruitcakeChakram;
  30. }
  31. }}
  32. }
Advertisement
Add Comment
Please, Sign In to add comment