TheStarport / FLHook

A Server Improvement for Freelancer.
GNU General Public License v3.0
30 stars 15 forks source link

Make Autobuy check ammo_limit #331

Closed IrateRedKite closed 1 year ago

IrateRedKite commented 1 year ago

Currently the autobuy plugin bypasses limits imposed by adoxa's AmmoLimit plugin, allowing players to purchase ammo in excess of the set amount. It would be really good if this plugin could first check for an ammo_limit value on the [Munition] block and purchase up to that limit, rather than just taking the MAX_PLAYER_AMMO constant.

If an ammo_limit key is not found, it should fall back on whatever the default is set to.