Files
barotrauma-localmods/BuyAllItems
2025-03-30 03:21:47 +02:00
..
2025-03-30 03:21:47 +02:00
2025-03-29 20:43:07 +01:00
2025-03-29 20:43:07 +01:00

Buy All Items

A quality-of-life mod for Barotrauma that adds a "BUY ALL" feature to maximize your shopping cart with one click.

Features

  • Automatically maximizes the quantity of each item in your shopping cart
  • Dedicated keybind (B key) for quick access
  • Works with any store in the game

How to Use

  1. Open any store in the game
  2. Add at least one unit of each item you want to buy to your cart
  3. Press B key to maximize all quantities automatically
  4. Complete your purchase with the regular BUY button

Version History

1.0.3

  • Fixed keybind implementation to use direct key checking
  • Removed KeybindOld function that was causing errors
  • Standardized configuration for easier customization

1.0.2

  • Completely overhauled keybind system - now uses proper Barotrauma keybind API
  • Removed unnecessary spammy checks and polling
  • Improved reliability and performance
  • Fixed button creation to avoid duplicate buttons

1.0.1

  • Fixed compatibility issues with GUI access
  • Improved method for detecting and manipulating store items using CargoManager
  • Added fallback methods to ensure functionality in different game contexts

1.0.0

  • Initial release

Notes

  • This mod only works in singleplayer or if you're the one hosting the game
  • The functionality only works on the BUY tab of stores, not SELL tabs
  • If you encounter any issues, please report them in the mod comments
  • To change the key binding, edit the CONFIG.KEY_CODE value in the init.lua file

Credits

Created by a helpful AI assistant