Files
Aurora.3/code/datums/expansions/multitool/machinery/cloning.dm
LordFowl 8d436c4a03 Converts all necessary << outputs into the to_chat() macro. (#6076)
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly;

All << is converted into to_chat().
2019-03-10 23:39:03 +02:00

29 lines
1.1 KiB
Plaintext

/datum/expansion/multitool/cryo/get_interact_window(var/obj/item/device/multitool/M, var/mob/user)
. += buffer(M)
. += "<HR><b>Connected Cloning Pods:</b><br>"
var/obj/machinery/computer/cloning/C = holder
for(var/atom/cloning_pod in C.pods)
. += "[cloning_pod.name]<br>"
/datum/expansion/multitool/cryo/receive_buffer(var/obj/item/device/multitool/M, var/atom/buffer, var/mob/user)
var/obj/machinery/clonepod/P = buffer
var/obj/machinery/computer/cloning/C = holder
if(!istype(P))
to_chat(user, "<span class='warning'>No valid connection data in \the [M] buffer.</span>")
return MT_NOACTION
var/is_connected = (P in C.pods)
if(!is_connected)
if(C.connect_pod(P))
to_chat(user, "<span class='notice'>You connect \the [P] to \the [C].</span>")
else
to_chat(user, "<span class='warning'>You failed to connect \the [P] to \the [C].</span>")
return MT_REFRESH
if(C.release_pod(P))
to_chat(user, "<span class='notice'>You disconnect \the [P] from \the [C].</span>")
else
to_chat(user, "<span class='notice'>You failed to disconnect \the [P] from \the [C].</span>")
return MT_REFRESH