Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using Microsoft.Xna.Framework;
  2. using Terraria;
  3. using Terraria.ID;
  4. using Terraria.ModLoader;
  5.  
  6. namespace Champion.Projectiles
  7. {
  8. public class StoneBoulder : ModProjectile
  9. {
  10. public override void SetStaticDefaults() {
  11. DisplayName.SetDefault("StoneBoulder");
  12. }
  13.  
  14. public override void SetDefaults() {
  15. projectile.CloneDefaults(ProjectileID.Boulder);
  16. projectile.hostile = false;
  17. projectile.timeLeft = 3600;
  18. }
  19.  
  20. public override bool OnTileCollide(Vector2 oldVelocity) {
  21. projectile.velocity *= .95f;
  22.  
  23. return false;
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement