[MIRROR] Makes dimensional anomaly core pulses not change reinforced walls (#12640)

Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-04-06 09:00:33 -04:00
committed by GitHub
co-authored by Guti
parent f30c6946b1
commit 38c2d0b0d7
2 changed files with 9 additions and 5 deletions
@@ -47,8 +47,8 @@
* * skip_sound - If the sound shouldn't be played.
* * show_effect - if the temp visual effect should be shown.
*/
/datum/dimension_theme/proc/apply_theme(turf/affected_turf, skip_sound = FALSE, show_effect = FALSE)
if(!replace_turf(affected_turf))
/datum/dimension_theme/proc/apply_theme(turf/affected_turf, skip_sound = FALSE, show_effect = FALSE, reinforced = FALSE)
if(!replace_turf(affected_turf, reinforced))
return
if(!skip_sound)
playsound(affected_turf, sound, 100, TRUE)
@@ -73,7 +73,7 @@
return TRUE
return FALSE
/datum/dimension_theme/proc/replace_turf(turf/affected_turf)
/datum/dimension_theme/proc/replace_turf(turf/affected_turf, reinforced = TRUE)
PROTECTED_PROC(TRUE)
if(isfloorturf(affected_turf))
@@ -84,7 +84,11 @@
if(!iswall(affected_turf))
return FALSE
affected_turf.ChangeTurf(replace_walls)
var/turf/simulated/wall/thewall = affected_turf
if(thewall.reinf_material && !reinforced)
return FALSE
thewall.ChangeTurf(replace_walls)
return TRUE
/**