mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Makes machine frames show their circuit name (#15025)
* Circuit Names Refactor * Some review stuff * now with less runtimes * Machine Boards and Computer Boards * Only a little late * YouTool fix * Resupply crate too * Supplycomp board I'll do the other stuff tomorrow * Computer Frame Refactor Plus also removing the HONKputer to avoid a conflict. * Don't need this diff anymore
This commit is contained in:
@@ -130,6 +130,7 @@
|
||||
if(circuit) //no circuit, no computer frame
|
||||
var/obj/structure/computerframe/A = new /obj/structure/computerframe(loc)
|
||||
var/obj/item/circuitboard/M = new circuit(A)
|
||||
A.name += " ([M.board_name])"
|
||||
A.setDir(dir)
|
||||
A.circuit = M
|
||||
A.anchored = TRUE
|
||||
@@ -140,13 +141,12 @@
|
||||
playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, TRUE)
|
||||
new /obj/item/shard(drop_location())
|
||||
new /obj/item/shard(drop_location())
|
||||
A.state = 3
|
||||
A.icon_state = "3"
|
||||
A.state = 4
|
||||
else
|
||||
if(user)
|
||||
to_chat(user, "<span class='notice'>You disconnect the monitor.</span>")
|
||||
A.state = 4
|
||||
A.icon_state = "4"
|
||||
A.state = 5
|
||||
A.update_icon()
|
||||
for(var/obj/C in src)
|
||||
C.forceMove(loc)
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user