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;
- using Terraria.Enums;
- namespace Yoyos.Projectiles
- {
- public class ExampleYoyoProjectile : ModProjectile
- {
- public override void SetStaticDefaults() {
- ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 4f;
- ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 140;
- ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 9.5;
- }
- public override void SetDefaults() {
- projectile.extraUpdates = 0;
- projectile.width = 22;
- projectile.height = 22;
- // aiStyle 99 is used for all yoyos, and is Extremely suggested, as yoyo are extremely difficult without them
- projectile.aiStyle = 99;
- projectile.friendly = true;
- projectile.penetrate = -1;
- projectile.melee = true;
- projectile.scale = 1f;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment