Need help with modding

Electrolobster7

Terrarian
I just started getting into coding and modding Terraria, and am having trouble with stuff outside of basic weapons/blocks. I use example mod and a few other modding tutorials, and a lot of the code from there doesn't work and returns with errors. I don't think it's outdated but I might be wrong.

In this example, I'm trying to make a gun that has ammo reservation bonuses applied, but it returns with this error:
 

Attachments

  • Screenshot (3).png
    Screenshot (3).png
    418.4 KB · Views: 70
  • Screenshot (4).png
    Screenshot (4).png
    156.8 KB · Views: 72
You should let VS autofill the hooks, it's not ConsumeAmmo but this:
public override bool CanConsumeAmmo(Item ammo, Player player)
 
Back
Top Bottom