mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +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
@@ -290,21 +290,21 @@
|
||||
|
||||
/obj/item/gun/custom_ka/update_icon()
|
||||
. = ..()
|
||||
cut_overlays()
|
||||
ClearOverlays()
|
||||
var/name_list = list("","","","")
|
||||
|
||||
name_list[3] = src.build_name
|
||||
|
||||
if(installed_upgrade_chip)
|
||||
add_overlay(installed_upgrade_chip.icon_state)
|
||||
AddOverlays(installed_upgrade_chip.icon_state)
|
||||
name_list[4] = installed_upgrade_chip.build_name
|
||||
|
||||
if(installed_cell)
|
||||
add_overlay(installed_cell.icon_state)
|
||||
AddOverlays(installed_cell.icon_state)
|
||||
name_list[1] = installed_cell.build_name
|
||||
|
||||
if(installed_barrel)
|
||||
add_overlay(installed_barrel.icon_state)
|
||||
AddOverlays(installed_barrel.icon_state)
|
||||
name_list[2] = installed_barrel.build_name
|
||||
|
||||
official_name = sanitize(jointext(name_list," "))
|
||||
|
||||
Reference in New Issue
Block a user