From 7a02f023e4773af2eff7d63cbe96bb43c3d661ac Mon Sep 17 00:00:00 2001 From: Shadow-Quill <44811257+Shadow-Quill@users.noreply.github.com> Date: Sun, 12 Feb 2023 16:12:27 -0600 Subject: [PATCH] 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 :cl: fix: Gravity generators have been re-centered. /:cl: --- code/modules/power/gravitygenerator.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index 800981581c5..8c31b6b1bfb 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -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--