Prevent dragging plugged-in grid furniture #2509
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Bugfixes "Disallow dragging all other grid furniture"
Purpose of change
So snezhniylis on the discord discovered an issue with dragging grid furniture, first noticed with space heaters:
Aside from whatever causes this, a JSON update for this also makes sense on the basis of all of the grid furniture being stuff that's plugged or wired into the grid, and you would logically want to unplug it before moving it around. Most grid furniture follows this logic already barring some exceptions.
Describe the solution
Set it so that foodco kitchen buddies, fridges, freezers, and space heaters have a
required_str
of minus one, preventing you from dragging them around.Describe alternatives you've considered
Digging through the code, trying to find why this dupe happens, focusing on that instead of a quickfix that renders it a non-issue for now and probably screaming at C++ yet again.
Testing
Additional context