Closed HugoQwerty closed 2 years ago
The infinite log pile is done. For other items, I think it will be better to use no resources (liking boxing nails) rather than requiring rope/thin rope/twine etc to bundle items together.
Infinite Oak log pile: done
To do: infinite plank storage; will refill plank condition but plank stacks / pallets already do that anyway.
A system for this is now live in the latest update. So far it only works for tree branches (12) and scrap electronics (100), these can be bundled into a box, and unbundled to get all the items back. It does not require a new 'box' item for each item, it uses 1 generic box - with the contents being stored in ModData. It also uses the tag system, using the tags Box12 and Box100 - any item with one of those tags will automatically work. I'm still waiting for feedback, but if it works i can roll this out to lots more item, probably with more tags too (Box25 and Box50, I think).
The box item is renamed to match the contents, this might need some translation work. From what I can tell, the display category can be set on an InventoryItem but it isn't preserved on re-load - so when the code sets the display category to the same as the contents it works, but the game forgets when you re-load the save.
Tags Box25 and Box50 have now been added, will sit down some time and add these liberally to vanilla and HC items.
Add more 'Box of X' or 'Bundle of X' items to make storing items easier, especially given how the game stores each object rather than an object and a number.
Ripped Sheets, Denin & Leather Strips, Twigs, Branches, Scrap Electronics etc.
I've also got an idea for an infinite log pile, so you can just pile all your logs in one item - without needing a cellar or other large container.