Open ThePiachu opened 3 years ago
So here is a sample solution to how this could be implemented:
Basically, the idea would be this:
What this change does:
We have IUniqueStackable interface which may be implemented by Tools. It allows to define conditions when items may be stacked. I.e. for durable items it may be something like
bool CanStack(Item stackingOntoItem) => this.Durability == 1f && stackingOntoItem.Durability == 1f;
Well, it's about storing the tools and also repairing them automatically as a bonus, which might be hard to do as-is.
A bit related to https://github.com/StrangeLoopGames/EcoIssues/issues/18619 and #1086 .
It would be nice if pristine tools were stackable. Perhaps they could come in some "wrapping" or what have you and upon using that item it turns into a normal tool with normal durability. Then you could have work stations for repairing the tools with normal work orders that would turn a damaged tool into a pristine tool in wrapping and stack it. This way you could have "tool repair stores" that are more automated. You would lose the material savings from having a high skill, but you could perhaps gate the tool repair with like, a level 5 skill and apply material savings based on Upgrade Module or something.
This would make tool stores require less bulk storage, be automated, let people do job orders for tool repair and in general be an improvement over the current system that's more in-line with the 0.9 changes.