democratizedspace / dspace

Free, open source space exploration idle game. Build your home base on earth, gather resources, and launch into orbit.
https://democratized.space
BSD Zero Clause License
3 stars 2 forks source link

have a way to lock a machine (e.g. 3d printer) to one item at a time #24

Open futuroptimist opened 1 year ago

futuroptimist commented 1 year ago

Currently, the workaround that's used is that the printer is "consumed" when the process starts and "created" again when the process is completed. This is clunky, though.

Alternatively, in addition to requiresItems, we should add a locksItems property. Inclusion of an item in the locksItems property (still expressed in terms of id and count) creates a lock in gameState for that item, effectively removing it from being usable elsewhere.