Black Market

If you liked this item, please rate it up on Steam Workshop page.

Author: 󰀖Kwidge󰀖

Last revision: 8 Jul, 2022 at 21:42 UTC

File size: 12.02 MB

On Steam Workshop

Description:
Start out as a humble survivor and work your way to the top!
What does this mod do?

This mod adds a whole new system to the game. Now you can sell your junk in exchange for money which can be used to buy stuff in the shop.

Information to get you started on your money making scheme:

When you first start this mod you will be given 100 dollars from the pig king himself to start your journey of exploiting the constant for profit.

To access the shop click the very noticeable button in the bottom left corner that says shop. here you can browse the hundreds of different items; anything from grass and berries, to dark swords, bananas, Krampus sacks, and more!
Also, if you happen to have fat stacks of cash lying around you can right click to buy 10 items at once.

In order to earn money just gather resources, put them in an alchemy engine, and click sell. ONLY ITEMS IN THE SHOP CAN BE SOLD.
Items sell for half of what they cost in the shop.
The pig king is picky about what he spends his money on, so if your items are below 75% durability he won’t buy them.

Special features:

In the shop you can buy titles to show off how rich you are or try your luck at the lottery. If I were you I would be careful with that old lottery machine though. I’ve heard of people going missing after gambling too much of their money.

How to add more items to the shop:
The first startup of this mod will generate a store configuration table in the data folder of the game root directory, all commodity types, prices, and the lottery pool can be edited in Don’t Starve Together/data/store_data.json The 5 tables are resources, weapons, clothes, hats, foods, and lottery pools.
I haven’t been able to figure out how to add icons for new items though. So new items like moonglass won’t have an icon in the shop. Items without icons can’t be bought, but they can still be sold.

This mod is a translated version of Cy’s Store, the original mod can be found here: https://steamcommunity.com/sharedfiles/filedetails/?id=1095971442

I’m very new to modding and didn’t even write most of the code, but I plan on getting better and updating this with new features someday.

New features I might add someday:

1. Items from new updates
2. Some sort of a building around pig king where you can try to steal from his vault without getting caught
3. A V.I.P section in the shop where you can purchase rare items.
4. Trading tokens that sell for 100% of their value instead of the usual 50%

Known bug that I don’t know how to fix: when the server host tries to sell something on a world without caves, the game crashes.