/tg/ stools, fix stool code

This commit is contained in:
Aronai Sieyes
2021-06-30 14:34:40 -04:00
parent 6b72eece69
commit 0c19d4abc5
3 changed files with 5 additions and 2 deletions
@@ -39,7 +39,7 @@ var/global/list/stool_cache = list() //haha stool
icon_state = ""
cut_overlays()
// Base icon.
var/cache_key = "stool-[material.name]"
var/cache_key = "[base_icon]-[material.name]"
if(isnull(stool_cache[cache_key]))
var/image/I = image(icon, base_icon)
I.color = material.icon_colour
@@ -47,7 +47,7 @@ var/global/list/stool_cache = list() //haha stool
add_overlay(stool_cache[cache_key])
// Padding overlay.
if(padding_material)
var/padding_cache_key = "stool-padding-[padding_material.name]"
var/padding_cache_key = "[base_icon]-padding-[padding_material.name]"
if(isnull(stool_cache[padding_cache_key]))
var/image/I = image(icon, "[base_icon]_padding") //VOREStation Edit
I.color = padding_material.icon_colour
@@ -11,5 +11,8 @@
base_icon = "bar_stool_base"
anchored = 1
/obj/item/weapon/stool/baystool/padded
icon_state = "bar_stool_padded_preview" //set for the map
/obj/item/weapon/stool/baystool/padded/New(var/newloc, var/new_material)
..(newloc, "steel", "carpet")