This commit is contained in:
izac112
2021-08-09 10:39:11 +02:00
263 changed files with 8321 additions and 30877 deletions
@@ -16,4 +16,21 @@
steel_sheet_cost = 20
light_strength = 4
max_damage = 300
broken_damage = 150
broken_damage = 150
/obj/item/modular_computer/console/update_icon()
. = ..()
// Connecty
if(initial(icon_state) == "console")
var/append_string = ""
var/left = turn(dir, -90)
var/right = turn(dir, 90)
var/turf/L = get_step(src, left)
var/turf/R = get_step(src, right)
var/obj/item/modular_computer/console/LC = locate() in L
var/obj/item/modular_computer/console/RC = locate() in R
if(LC && LC.dir == dir && initial(LC.icon_state) == "console")
append_string += "_L"
if(RC && RC.dir == dir && initial(RC.icon_state) == "console")
append_string += "_R"
icon_state = "console[append_string]"