StrangeLoopGames / EcoSuggestions

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

StackLimitRestriction not working in specific circumstance #1720

Closed muzs1 closed 1 year ago

muzs1 commented 1 year ago

When using the "StackLimitRestriction" to increase the stack size of all items placed in a storage object, items with a default stack limit of 1 (such as trucks) do not stack as expected; instead, the items will swap locations, and no error message is displayed.

To reproduce the issue:

  1. Create a storage object with a stack limit restriction of more that 1 E.g. "Storage.AddInvRestriction(new StackLimitRestriction(40));"

  2. Attempt to stack an item like a truck that can only stack to 1 into the storage object using a standard drag-and-drop method.

  3. That the items does not stack as expected to 40, it you drag two trucks together they just swap location.

  4. (Workaround) If you place multiple trucks into a stockpile and then shift+drag them into the modded storage, the items will merge and stack correctly.

muzs1 commented 1 year ago

Posted in the wrong place oops.