TG Sprite Project: R&D, Mechfabs, Telecomms, and Station Objects (#15681)

* TG Sprite Project: R&D, Mechfabs, Telecomms, and Station Objects

* tweaks

* other sprite
This commit is contained in:
Fox McCloud
2021-03-30 12:11:39 +01:00
committed by GitHub
parent 90d614653b
commit 4e13913d39
9 changed files with 31 additions and 35 deletions
+12 -2
View File
@@ -1,7 +1,7 @@
/obj/machinery/r_n_d/server
name = "R&D Server"
icon = 'icons/obj/machines/research.dmi'
icon_state = "server"
icon_state = "RD-server"
var/datum/research/files
var/health = 100
var/list/id_with_upload = list() //List of R&D consoles with upload to server access.
@@ -44,6 +44,16 @@
tot_rating += SP.rating
heat_gen /= max(1, tot_rating)
/obj/machinery/r_n_d/server/update_icon()
if(stat & NOPOWER)
icon_state = "[initial(icon_state)]-off"
return
icon_state = "[initial(icon_state)]-on"
/obj/machinery/r_n_d/server/power_change()
. = ..()
update_icon()
/obj/machinery/r_n_d/server/proc/initialize_serv()
if(!files)
files = new /datum/research(src)
@@ -137,7 +147,7 @@
shock(user,50)
if(istype(O, /obj/item/screwdriver))
default_deconstruction_screwdriver(user, "server_o", "server", O)
default_deconstruction_screwdriver(user, "RD-server-on_t", "RD-server-on", O)
return 1
if(exchange_parts(user, O))