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.
About the PR
bedNF
, with the correct node.Destructible
component so the mattress breaks into 1–2 cloth, not 1–2 steel.Why / Balance
On upstream, mattresses can be neither constructed nor deconstructed. They're also not encountered often. Here on Frontier, we have our own construction graph for mattresses, which requires 2 cloth per mattress. If we don't override the mattress construction graph to
bedNF
, then it can be deconstructed into 2 cloth + 1 steel, same as a bed. The 2 cloth can be used to make another mattress, and now you have an infinite steel glitch.Similarly, the destruction trigger is updated to match the actual material cost of the mattress.
With the arrival of the McHobo, with its 4 million mattresses, this could be abused to farm steel. Hopefully no one actually does this, unless they really want a ban for exploiting a bug.
How to test
Media
2024-09-13.10-15-18.mp4
Requirements
Breaking changes
Might break someone's exploit meta, but should have no other effects.
Changelog
🆑