mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] Recenters gravity gens [MDB IGNORE] (#19304)
* Recenters gravity gens (#73357) ## About The Pull Request Due to a change in how a gravity generator figured out the turfs it would be using to create itself, gravity generators were visually shifted to the right, but the interaction still remained where the main piece was placed. This just changes `CORNER_BLOCK` to `CORNER_BLOCK_OFFSET` and offsets the block one tile to the left. ## Why It's Good For The Game No more wonky gravity generators Fixes #73083 ## Changelog 🆑 fix: Gravity generators have been re-centered. /🆑 * Recenters gravity gens --------- Co-authored-by: Shadow-Quill <44811257+Shadow-Quill@users.noreply.github.com>
This commit is contained in:
co-authored by
Shadow-Quill
parent
7f5869f7dd
commit
63280c408d
@@ -170,7 +170,7 @@ GLOBAL_LIST_EMPTY(gravity_generators)
|
||||
/obj/machinery/gravity_generator/main/proc/setup_parts()
|
||||
var/turf/our_turf = get_turf(src)
|
||||
// 9x9 block obtained from the bottom middle of the block
|
||||
var/list/spawn_turfs = CORNER_BLOCK(our_turf, 3, 3)
|
||||
var/list/spawn_turfs = CORNER_BLOCK_OFFSET(our_turf, 3, 3, -1, 0)
|
||||
var/count = 10
|
||||
for(var/turf/T in spawn_turfs)
|
||||
count--
|
||||
|
||||
Reference in New Issue
Block a user