mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Update SSOverlays (ported from Baystation) (#19051)
Our SSOverlays system is outdated, and is likely the cause of many of the issues seen in #18895. It has also been linked to a massive server performance decrease. This brings an updated system from Baystation, hopefully with speed increases. Should be testmerged, ideally with #18895. --------- Co-authored-by: Cody Brittain <cbrittain10@live.com>
This commit is contained in:
co-authored by
Cody Brittain
parent
405a05b819
commit
9983fca311
@@ -454,7 +454,7 @@
|
||||
/obj/machinery/shipsensors/update_icon()
|
||||
icon_state = "[base_icon_state]_off"
|
||||
if(!use_power)
|
||||
cut_overlays()
|
||||
ClearOverlays()
|
||||
|
||||
if(use_power)
|
||||
icon_state = "[base_icon_state]_on"
|
||||
@@ -475,11 +475,11 @@
|
||||
else
|
||||
overlay = "[overlay]5"
|
||||
|
||||
cut_overlays()
|
||||
add_overlay(overlay)
|
||||
ClearOverlays()
|
||||
AddOverlays(overlay)
|
||||
var/heat_percentage = heat / critical_heat * 100
|
||||
if(heat_percentage > 85)
|
||||
add_overlay("sensors-effect-hot")
|
||||
AddOverlays("sensors-effect-hot")
|
||||
|
||||
/obj/machinery/shipsensors/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user