mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-23 15:14:43 +01:00
a788a19c72
* Fix durand shield overlay and light runtimes (#73411) ## About The Pull Request The Durand shield overlay would not be placed on top when facing south due to the planes not being set properly. My changes update the planes whenever the dir gets updated. There was also a lighting runtime due to using the wrong lighting proc call that would throw this error: ``` /atom/proc/update_light() SHOULD_NOT_SLEEP(TRUE) if(light_system != STATIC_LIGHT) CRASH("update_light() for [src] with following light_system value: [light_system]") ``` Someone mixed up the lighting code since `set_light()` is meant to be used by `STATIC_LIGHT` sources. The durand shield lighting source is `MOVABLE_LIGHT`. All I needed to do was remove the extra procs since we already have `set_light_on(chassis.defense_mode)` that controls the `MOVABLE_LIGHT`. Basically, someone added two different lighting systems to the same object, so big oof. ## Why It's Good For The Game Better mech visuals and one less runtime. <details> <summary>Before:</summary>  </details> <details> <summary>After:</summary>  </details> ## Changelog 🆑 fix: Fix durand shield overlay to appear above the mech when facing south. Also fixed a lighting runtime when shield would turn on/off. /🆑 * Fix durand shield overlay and light runtimes --------- Co-authored-by: Tim <timothymtorres@gmail.com>