Requests&Changeling

This commit is contained in:
Mechoid
2020-03-10 23:00:08 -07:00
parent 432a54329b
commit 66a778b89a
4 changed files with 46 additions and 15 deletions
@@ -49,6 +49,5 @@
anim(get_turf(H), H, 'icons/effects/effects.dmi', "electricity",null,20,null)
H.alpha = initial(H.alpha)
for(var/mob/O in oviewers(H))
O.show_message("[H.name] appears from thin air!",1)
H.visible_message("[H.name] appears from thin air!")
playsound(get_turf(H), 'sound/effects/stealthoff.ogg', 75, 1)
@@ -44,18 +44,14 @@
to_chat(user, "<span class='warning'>The disk is blank. It is useless to you.</span>")
return 1
// I fucking hate R&D code. This typecheck spam would be totally unnecessary in a sane setup.
// I fucking hate R&D code. This typecheck spam would be totally unnecessary in a sane setup. Sanity? This is BYOND.
else if(istype(input_device,/obj/machinery))
var/datum/research/incoming_files
if(istype(input_device,/obj/machinery/computer/rdconsole))
var/obj/machinery/computer/rdconsole/input_machine = input_device
incoming_files = input_machine.files
else if(istype(input_device,/obj/machinery/r_n_d/server))
var/obj/machinery/r_n_d/server/input_machine = input_device
incoming_files = input_machine.files
else if(istype(input_device,/obj/machinery/mecha_part_fabricator))
var/obj/machinery/mecha_part_fabricator/input_machine = input_device
incoming_files = input_machine.files
if(istype(input_device,/obj/machinery/computer/rdconsole) ||\
istype(input_device,/obj/machinery/r_n_d/server) ||\
istype(input_device,/obj/machinery/mecha_part_fabricator))
incoming_files = input_device:files
if(!incoming_files || !incoming_files.known_tech || !incoming_files.known_tech.len)
to_chat(user, "<span class='warning'>Memory failure. There is nothing accessible stored on this terminal.</span>")
@@ -193,13 +193,11 @@
/obj/item/rig_module/vision/engage()
var/starting_up = !active
if(!..() || !vision_modes)
return 0
// Don't cycle if this engage() is being called by activate().
if(starting_up)
if(!active)
to_chat(holder.wearer, "<font color='blue'>You activate your visual sensors.</font>")
return 1