So, can you guyses tell me what is wrong with my code?
Code:using System; using Microsoft.Xna.Framework; using TAPI; using Terraria; namespace Rektmod.Items { public override bool PreShoot(Player P,Vector2 Pos,Vector2 Velo,int type,int DMG,float KB) { int owner = P.whoAmI; Projectile.NewProjectile(Pos.X,Pos.Y,Velo.X,Velo.Y,type,DMG,KB,owner); Projectile.NewProjectile(Pos.X,Pos.Y - 20,Velo.X,Velo.Y,type,DMG,KB,owner); Projectile.NewProjectile(Pos.X,Pos.Y + 20,Velo.X,Velo.Y,type,DMG,KB,owner); return false; } public virtual bool ConsumeAmmo(Player p) { return Main.rand.Next(0, 100) >= 85; } }
The mod builder is telling me that it's expecting either class, delegate, enum, interface or struct in both of the code things.Can you please tell us the error you are recieving or what isn't working?
I can't exactly copy the text from the builder because it's not in english.