Telescience Fixes

Makes the telepad work properly, by converting TG procs to run in a fashion compatible with Bay procs.
This commit is contained in:
skull132
2016-02-07 14:07:09 +02:00
parent 18362575a5
commit 225b6fbbcf
2 changed files with 12 additions and 3 deletions
+11 -2
View File
@@ -28,7 +28,7 @@
efficiency = E
/obj/machinery/telepad/attackby(obj/item/I, mob/user, params)
if(default_deconstruction_screwdriver(user, "pad-idle-o", "pad-idle", I))
if(default_deconstruction_screwdriver(user, I))
return
if(panel_open)
@@ -36,9 +36,18 @@
var/obj/item/device/multitool/M = I
M.buffer = src
user << "<span class='caution'>You save the data in the [I.name]'s buffer.</span>"
else
if(istype(I, /obj/item/device/multitool))
user << "<span class='caution'>You should open [src]'s maintenance panel first.</span>"
default_deconstruction_crowbar(I)
default_deconstruction_crowbar(user, I)
/obj/machinery/telepad/update_icon()
switch (panel_open)
if (1)
icon_state = "pad-idle-o"
if (0)
icon_state = "pad-idle"
//CARGO TELEPAD//
/obj/machinery/telepad_cargo
+1 -1
View File
@@ -87,7 +87,7 @@
var/t
if(!telepad)
in_use = 0 //Yeah so if you deconstruct teleporter while its in the process of shooting it wont disable the console
t += "<div class='statusDisplay'>No telepad located. <BR>Please add telepad data.</div><BR>"
t += "<div class='statusDisplay'>No telepad located. <BR>Please add telepad data via use of Multitool.</div><BR>"
else
if(inserted_gps)
t += "<A href='?src=\ref[src];ejectGPS=1'>Eject GPS</A>"