From 00b54843f2092955f63d77cc827bc65dc64dfcef Mon Sep 17 00:00:00 2001 From: Kano <89972582+kano-dot@users.noreply.github.com> Date: Sun, 16 Nov 2025 01:14:48 +0300 Subject: [PATCH] Fixes asteroid exoplanet turf lighting (#21599) Replaces pixel_x/pixel_y adjustment for asteroid turfs with transform method. This is the same method /tg/ uses for their turfs equalivent to our asteroid turfs Fixes #21587 ## Images
Before:

Screenshot_2

After:

Screenshot_1

--- code/modules/mining/mine_turfs.dm | 5 +++-- code/modules/overmap/exoplanets/decor/turfs/snow.dm | 5 +++-- html/changelogs/kano-dot-exoplanet-turf-turfing.yml | 7 +++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 html/changelogs/kano-dot-exoplanet-turf-turfing.yml diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index 4d943feeb4e..473aabdbdab 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -763,8 +763,9 @@ GLOBAL_LIST_INIT(asteroid_floor_smooth, list( if(smoothing_flags) canSmoothWith = GLOB.asteroid_floor_smooth - pixel_x = -4 - pixel_y = -4 + var/matrix/M = new + M.Translate(-4, -4) + transform = M if(light_range && light_power) update_light() diff --git a/code/modules/overmap/exoplanets/decor/turfs/snow.dm b/code/modules/overmap/exoplanets/decor/turfs/snow.dm index 3a877197497..871028010b8 100644 --- a/code/modules/overmap/exoplanets/decor/turfs/snow.dm +++ b/code/modules/overmap/exoplanets/decor/turfs/snow.dm @@ -16,8 +16,9 @@ /turf/simulated/floor/exoplanet/snow/Initialize() . = ..() - pixel_x = -4 - pixel_y = -4 + var/matrix/M = new + M.Translate(-4, -4) + transform = M icon_state = pick("snow[rand(1,2)]","snow0","snow0") QUEUE_SMOOTH_NEIGHBORS(src) QUEUE_SMOOTH(src) diff --git a/html/changelogs/kano-dot-exoplanet-turf-turfing.yml b/html/changelogs/kano-dot-exoplanet-turf-turfing.yml new file mode 100644 index 00000000000..7a5805fbf17 --- /dev/null +++ b/html/changelogs/kano-dot-exoplanet-turf-turfing.yml @@ -0,0 +1,7 @@ + +author: Kano + +delete-after: True + +changes: + - bugfix: "Fixed asteroid expolanet turfs pixel-shifting its own lighting along with itself."