Commit 114f4e4
authored
Update build.lua
related to issue #5012
Quickfort blueprints can't place bridges over stairs
The previous code is more restrictive than vanilla UI.
In-game, bridges may be placed in any supported position with a walkable, adjacent tile, including over any kind of stair.
In-game, floor hatches, grates, and bars do not require an adjacent floor for placement.
Initially I thought these changes may be too simple to be correct, but upon further study and testing, I can find no issues.
These changes are in keeping with the 'mission statement' from the original dev found in the top comment of the build.ua file:
"In general, we enforce the same rules as the in-game UI for allowed placement of
buildings (e.g. beds have to be inside, doors have to be adjacent to a wall,
etc.). A notable exception is that we allow constructions and machine components
to be designated regardless of whether they are reachable or currently
supported. This allows the user to designate an entire floor of an above-ground
building or an entire power system without micromanagement."1 parent 036ddb3 commit 114f4e4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
0 commit comments