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 MoreBoomerangs.Projectiles
- {
- public class GoldenDiskThrow : ModProjectile
- {
- public override void SetStaticDefaults() {
- DisplayName.SetDefault("Golden Disk"); //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
- projectile.width = 64;
- projectile.height = 64;
- }
- public override void SetDefaults() {
- projectile.CloneDefaults(ProjectileID.FruitcakeChakram); //Set to above 0 if you want the projectile to update multiple time in a frame
- projectile.ai[0] += 1f;
- if (projectile.ai[0] >= 120f)
- {
- aiType = ProjectileID.FruitcakeChakram;
- }
- }}
- }
Advertisement
Add Comment
Please, Sign In to add comment