tModLoader How would I make a melee weapon consume ammo?

David15557

Terrarian
This sounds crazy, but I'm making a mod that includes a melee weapon that does extra damage when the player has bullets in their inventory. I've been searching in reference libraries and on the internet but appearantly no one ever had this issue.

My problem is: How do I find the ammo the player has (IF they have it) in their inventory and consume this ammo triggered by hitting any entity?

I'm not asking for a full code either but it would be very appreciated. A site, library or tutorial that shows me on how to do this works fine also.
 
Back
Top Bottom