Barotrauma

Barotrauma

Barotrauma Workshop
You can build your own submarines and monsters with in-game editors and share your creations with other players. Imagine and experiment.
Dat Zorro 3 Jun, 2023 @ 5:50am
Mod for increasing merchant stock
Ahoy there!

At the late game, once you've arrived at the Great Sea, you'll likely be swimming in money, but nothing to spend in on, since merchants never increase their stocks. Sure, you have access to more advanced weaponry and bigger submarines, but you're nevertheless limited to, what, purchase one box of laser-ammunition, two if you're at a military outpost.

So there I am, having over 300.000 in my bank, and almost nothing to spend it on. If I don't want to use up more ammunition than I can buy, I'll have to stop at mining outposts to get large quantities of materials to craft ammo boxes, which gets annoying and tedious quickly.

Thus I'm wondering if there is a mod that increases the number of items in stock, so for instance you can buy ten boxes of laser-ammunition at once instead of only one or two. :)

Many thanks in advance!
< >
Showing 1-5 of 5 comments
DuckieMcduck 5 3 Jun, 2023 @ 3:57pm 
As far as I can tell, this would require you to either override every item in the game (could break other mods) or create new ones (a "surplus" version) that appear in the merchant but are functionally equivalent.

If you have some items that really bother you it's quite easy to make. But in my experience, it's not really needed even when strapping for cash.
Dat Zorro 4 Jun, 2023 @ 5:43am 
So not even going into some txt.-files to change a 2 to 99 won't help? :(
DuckieMcduck 5 4 Jun, 2023 @ 2:32pm 
Originally posted by Dat Scharger:
So not even going into some txt.-files to change a 2 to 99 won't help? :(
It would, that's why I said it's easy to make if you know what items you wish changed.
However, it would have to be done for every item.
pks 7 6 Jun, 2023 @ 11:05am 
Originally posted by UnluckyDuckie:
As far as I can tell, this would require you to either override every item in the game

This is doable without issue using xpath-supporting Lua For Barotrauma.

https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2856758496

Not sure if it can be done without listing all item identifiers, though.

Xpath syntax supports mass override by predicate or wildcard, but don't know whether it's implemented and how exactly this should look like to work.
DuckieMcduck 5 6 Jun, 2023 @ 1:09pm 
Originally posted by pks:
Originally posted by UnluckyDuckie:
As far as I can tell, this would require you to either override every item in the game

This is doable without issue using xpath-supporting Lua For Barotrauma.

https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2856758496

Not sure if it can be done without listing all item identifiers, though.

Xpath syntax supports mass override by predicate or wildcard, but don't know whether it's implemented and how exactly this should look like to work.
I take it this could be useful if you're trying to make other modded items unlimited stock in the merchants.

Though if we are shoving LUA for Barotrauma in the dependency tree, then there certainly are other ways to make it happen as well. It would be about picking the most reasonable way to go about it at that point.
< >
Showing 1-5 of 5 comments
Per page: 1530 50