StrangeLoopGames / EcoSuggestions

Repo for storing Eco game suggestions, separate from EcoIssues
35 stars 1 forks source link

Make pristine tools stackable #1257

Open ThePiachu opened 3 years ago

ThePiachu commented 3 years ago

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.

ThePiachu commented 3 years ago

So here is a sample solution to how this could be implemented:

IronAxe.zip

Basically, the idea would be this:

What this change does:

mirasrael commented 3 years ago

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;
ThePiachu commented 3 years ago

Well, it's about storing the tools and also repairing them automatically as a bonus, which might be hard to do as-is.