Skip to content

tweak: Increased usability of sustenance vendor#866

Merged
Psymbiote merged 10 commits into
teamstarcup:mainfrom
bruhmogus:fix
May 14, 2026
Merged

tweak: Increased usability of sustenance vendor#866
Psymbiote merged 10 commits into
teamstarcup:mainfrom
bruhmogus:fix

Conversation

@bruhmogus
Copy link
Copy Markdown
Contributor

@bruhmogus bruhmogus commented May 10, 2026

Why / Balance

The sustenance vendor's inventory is pitiful, being empty save for about three items total. You also can't restock it. This fixes that.

Technical details

Added restock just for sustenance vendor, added purchase listing for restock, increased counts of most items in vendor
(all my homies hate git bot)

Media

RUN_THIS.py doesn't do anything useful. It should work!

Changelog
🆑

  • add: Added a Sustenance Vendor restock, which can be purchased for 500 spesos by cargo. Starve no more, prisoners!
  • tweak: Sustenance Vendors come with more items at roundstart.

…ems in vendor, and added restock to cargo purchases
@Psymbiote
Copy link
Copy Markdown
Contributor

Hello! This looks like a good idea to me, I'll ask another team member to give it a review as well. In the meantime, the current title error is fixed by adapting the title so it fits our standard. In this case it would be "tweak: Increased usability of sustenance vendor".

@bruhmogus bruhmogus changed the title Increased usability of sustenance vendor tweak: Increased usability of sustenance vendor May 10, 2026
@Psymbiote
Copy link
Copy Markdown
Contributor

So turns out this was even requested by a team member, I didn't know. I'm not good enough with coding to know what that error is, but if you can fix it, I'll approve it.

@ThebeTheSatellite
Copy link
Copy Markdown
Contributor

ThebeTheSatellite commented May 11, 2026

So I had a look myself, the error is related to the NoCargoOrderArbitrage test failing and going further it looks like due to it not being present in cargo_vending.yml there's an issue. Also keep in mind the potential pricing error
{2590362C-80B3-40D4-9F37-03742EB798F1}

I could have searched wrong or found inconclusive stuff but from what I can tell, it's missing from cargo_vending.yml unlike the rest of the restock crates.
Should be fairly easy to fix, add it to the yml, make sure price is a few hundred lower than the prices of items in the vending machine and you should be wicked.

Side note, pretty sure RUN_THIS.py is only supposed to be used once. For actual testing you need to run to runserver.bat then runclient.bat or the .sh ones if you're not on windows.

@bruhmogus
Copy link
Copy Markdown
Contributor Author

So turns out this was even requested by a team member, I didn't know. I'm not good enough with coding to know what that error is, but if you can fix it, I'll approve it.

I DIDNT KNOW THAT EITHER

@bruhmogus
Copy link
Copy Markdown
Contributor Author

bruhmogus commented May 11, 2026

So I had a look myself, the error is related to the NoCargoOrderArbitrage test failing and going further it looks like due to it not being present in cargo_vending.yml there's an issue. Also keep in mind the potential pricing error {2590362C-80B3-40D4-9F37-03742EB798F1}

I could have searched wrong or found inconclusive stuff but from what I can tell, it's missing from cargo_vending.yml unlike the rest of the restock crates. Should be fairly easy to fix, add it to the yml, make sure price is a few hundred lower than the prices of items in the vending machine and you should be wicked.

Side note, pretty sure RUN_THIS.py is only supposed to be used once. For actual testing you need to run to runserver.bat then runclient.bat or the .sh ones if you're not on windows.

so from the image it looks like it's making sure cargo can't order a restock, bust it open, and sell it for profit? i can further increase the cost of it if thats the issue (aside from the elephant)

@ThebeTheSatellite
Copy link
Copy Markdown
Contributor

So I had a look myself, the error is related to the NoCargoOrderArbitrage test failing and going further it looks like due to it not being present in cargo_vending.yml there's an issue. Also keep in mind the potential pricing error {2590362C-80B3-40D4-9F37-03742EB798F1}
I could have searched wrong or found inconclusive stuff but from what I can tell, it's missing from cargo_vending.yml unlike the rest of the restock crates. Should be fairly easy to fix, add it to the yml, make sure price is a few hundred lower than the prices of items in the vending machine and you should be wicked.
Side note, pretty sure RUN_THIS.py is only supposed to be used once. For actual testing you need to run to runserver.bat then runclient.bat or the .sh ones if you're not on windows.

so from the image it looks like it's making sure cargo can't order a restock, bust it open, and sell it for profit? i can further increase the cost of it if thats the issue (aside from the elephant)

that makes sense, honestly I couldn't tell if you were meant to increase or decrease the price from the contents but that makes sense pretty sure. thought it was like an in universe profit from the contents. sounds good.

@bruhmogus
Copy link
Copy Markdown
Contributor Author

added a listing to cargo_vending.yml, ready for a rereview so tests can start again

@Psymbiote
Copy link
Copy Markdown
Contributor

added a listing to cargo_vending.yml, ready for a rereview so tests can start again

I really need to figure out how to make the tests run automatically

@bruhmogus
Copy link
Copy Markdown
Contributor Author

five. hundred. reviews.

@bruhmogus
Copy link
Copy Markdown
Contributor Author

I HATE ARBITRAGE

@foxcurl
Copy link
Copy Markdown
Contributor

foxcurl commented May 13, 2026

you can add initialStockQuality: (value) to the VendingMachine component on VendingMachineSustenance to make it less likely to have empty items. the machine inherits a value of 0.33 for this field, meaning 67% of the items choose a value between 0 and the max stock (1 for most). a value of 0.8 might be more fitting, making it so only about 10% of the items are missing on average?

this would be a bit more elegant of an approach than increasing the stocks, i feel, and would let you avoid issues with arbitrage more easily while keeping the restocks useful.

Copy link
Copy Markdown
Contributor

@Psymbiote Psymbiote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your work!

@Psymbiote Psymbiote added this pull request to the merge queue May 14, 2026
Merged via the queue into teamstarcup:main with commit 18c7876 May 14, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants