Nevermind, i think I got it to work.
If you keep the item's useAnimation/useTime like this:
Code:
"useAnimation": 12,
"useTime":4,
And then use this code within your item cs file.
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using TAPI;
using Terraria;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ModName.Items
{
public class ModItemName: ModItem
{
public override bool ConsumeAmmo(Player p)
{
if(p.itemAnimation < p.inventory[p.selectedItem].useAnimation - 8)
{
return true;
}
else
{
return false;
}
}
}
}
It shoots 3 times, only spending 1 ammo.