mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 12:13:38 +01:00
Merge pull request #11342 from VOREStation/Arokha/connectedfancycomps
Skyrat connected consoles
This commit is contained in:
committed by
Chompstation Bot
parent
e5bbed59f1
commit
8cfb426ef7
@@ -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]"
|
||||
|
||||
Reference in New Issue
Block a user