stujones11 / shooter

First Person Shooter Mod for Minetest
Other
30 stars 18 forks source link

Allow other mods to change wear of registered guns #45

Open LoneWolfHT opened 5 years ago

LoneWolfHT commented 5 years ago

I have a PvP game I'm doing and I'm changing some gun settings from a mod so I don't(?) have to mess with licensing.

This code should allow mods to use shooter.registered_weapons to change def.spec.wear which will in turn allow them to change how many rounds a weapon has.

I have tested this and found no problems

ClobberXD commented 5 years ago

This allows for weapon mag-sizes to be customizable per-player, by getting the wear value from player's weapon spec instead of the gun definition. I like to concept, and the code looks good to me. :+1:

@stujones11