Omega_Nightfueled

Untitled

Sep 2nd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 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. using Terraria.Enums;
  12.  
  13. namespace Yoyos.Projectiles
  14. {
  15. public class ExampleYoyoProjectile : ModProjectile
  16. {
  17. public override void SetStaticDefaults() {
  18. ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 4f;
  19. ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 140;
  20. ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 9.5;
  21. }
  22.  
  23. public override void SetDefaults() {
  24. projectile.extraUpdates = 0;
  25. projectile.width = 22;
  26. projectile.height = 22;
  27. // aiStyle 99 is used for all yoyos, and is Extremely suggested, as yoyo are extremely difficult without them
  28. projectile.aiStyle = 99;
  29. projectile.friendly = true;
  30. projectile.penetrate = -1;
  31. projectile.melee = true;
  32. projectile.scale = 1f;
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment