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 07:11:39 -04:00
committed by GitHub
parent 90d614653b
commit 4e13913d39
9 changed files with 31 additions and 35 deletions
+3 -5
View File
@@ -30,7 +30,7 @@ GLOBAL_LIST_EMPTY(tcomms_machines)
/obj/machinery/tcomms
name = "Telecommunications Device"
desc = "Someone forgot to say what this thingy does. Please yell at a coder"
icon = 'icons/obj/tcomms.dmi'
icon = 'icons/obj/machines/telecomms.dmi'
icon_state = "error"
density = TRUE
anchored = TRUE
@@ -85,10 +85,8 @@ GLOBAL_LIST_EMPTY(tcomms_machines)
/obj/machinery/tcomms/update_icon()
. = ..()
// Show the off sprite if were inactive, ion'd or unpowered
if(!active || (stat & NOPOWER) || ion)
icon_state = "[initial(icon_state)]_off"
else
icon_state = initial(icon_state)
var/functioning = (active && !(stat & NOPOWER) && !ion)
icon_state = "[initial(icon_state)][panel_open ? "_o" : null][functioning ? null : "_off"]"
// Attack overrides. These are needed so the UIs can be opened up //
+13 -24
View File
@@ -45,18 +45,19 @@ GLOBAL_LIST_EMPTY(message_servers)
priority = "Undetermined"
/obj/machinery/message_server
icon = 'icons/obj/machines/research.dmi'
icon_state = "server"
name = "Messaging Server"
density = 1
anchored = 1.0
desc = "A machine that processes and routes PDA and request console messages."
icon = 'icons/obj/machines/telecomms.dmi'
icon_state = "message_server"
density = TRUE
anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 10
active_power_usage = 100
var/list/datum/data_pda_msg/pda_msgs = list()
var/list/datum/data_rc_msg/rc_msgs = list()
var/active = 1
var/active = TRUE
var/decryptkey = "password"
/obj/machinery/message_server/New()
@@ -64,22 +65,18 @@ GLOBAL_LIST_EMPTY(message_servers)
decryptkey = GenerateKey()
send_pda_message("System Administrator", "system", "This is an automated message. The messaging system is functioning correctly.")
..()
return
/obj/machinery/message_server/Destroy()
GLOB.message_servers -= src
return ..()
/obj/machinery/message_server/process()
//if(decryptkey == "password")
// decryptkey = generateKey()
if(active && (stat & (BROKEN|NOPOWER)))
active = 0
if(active && (stat & (BROKEN | NOPOWER)))
active = FALSE
update_icon()
return
if(prob(3))
playsound(loc, "computer_ambience", 50, 1)
update_icon()
return
/obj/machinery/message_server/proc/send_pda_message(recipient = "", sender = "", message = "")
pda_msgs += new/datum/data_pda_msg(recipient,sender,message)
@@ -114,28 +111,20 @@ GLOBAL_LIST_EMPTY(message_servers)
RC.set_light(2)
/obj/machinery/message_server/attack_hand(user as mob)
// to_chat(user, "<span class='notice'>There seem to be some parts missing from this server. They should arrive on the station in a few days, give or take a few CentComm delays.</span>")
to_chat(user, "You toggle PDA message passing from [active ? "On" : "Off"] to [active ? "Off" : "On"]")
active = !active
update_icon()
return
/obj/machinery/message_server/update_icon()
if((stat & (BROKEN|NOPOWER)))
icon_state = "server-nopower"
else if(!active)
icon_state = "server-off"
else
icon_state = "server-on"
..()
icon_state = "[initial(icon_state)][panel_open ? "_o" : null][active ? null : "_off"]"
return
/obj/machinery/blackbox_recorder
icon = 'icons/obj/stationobjs.dmi'
icon_state = "blackbox"
name = "Blackbox Recorder"
density = 1
anchored = 1.0
density = TRUE
anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 10
active_power_usage = 100
+3 -4
View File
@@ -122,15 +122,14 @@
/obj/machinery/r_n_d/proc/AfterMaterialInsert(type_inserted, id_inserted, amount_inserted)
var/stack_name
if(ispath(type_inserted, /obj/item/stack/ore/bluespace_crystal))
stack_name = "bluespace polycrystal"
stack_name = "bluespace"
use_power(MINERAL_MATERIAL_AMOUNT / 10)
else
var/obj/item/stack/S = type_inserted
stack_name = initial(S.name)
use_power(min(1000, (amount_inserted / 100)))
overlays += "[initial(name)]_[stack_name]"
sleep(10)
overlays -= "[initial(name)]_[stack_name]"
add_overlay("protolathe_[stack_name]")
addtimer(CALLBACK(src, /atom/proc/cut_overlay, "protolathe_[stack_name]"), 10)
/obj/machinery/r_n_d/proc/check_mat(datum/design/being_built, M)
return 0 // number of copies of design beign_built you can make with material M
+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))
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB