Make Building_FermentingBarrel generic.

Started by AileTheAlien, September 30, 2018, 04:22:17 PM

Previous topic - Next topic

AileTheAlien

It would be very useful for modders, if the thingClass Building_FermentingBarrel was generic, to allow turning different ingredients into other things. Right now the barrel appears to be hard-coded with wort and beer. Other things that could be made to work similarly (especially if custom descriptions were allowed for all the text). You could turn:
- milk into cheese
- berries into wine
- vegetables into sauerkraut
- raw fungus into drugs

Right now, the closest you can get, is to copy the infinite chemreactor, to spawn your items. However, that can only be made to require electricity, and cannot be made to require fuel. Even if you make it a fueled building (like a stove, campfire, etc), it will continue to produce the item, even when empty of fuel. Ideally, you could specify multiple ingredients with individual amounts (e.g. mix 50 potatoes and 1 meat, to make cannibal-vodka), but I'd settle for a single ingredient and amount (e.g. 75 berries produces one bottle of berry-wine).

EDIT:
I just thought of some even more clever use-cases while playing:
- a (powered) machine that turns cotton into prisoner clothing (would require power the spawning to be confined by both ingredients and power)
- turn corpses into maggots (for a horror / Cthulu-themed game)
- eggs into sulfur (for gunpowder)

Swarx