Uplink implant. 'nuff said.

The only problem with it is that it doesn't update its window because durp can't pass user arguments to Topic(), so it uses usr by default, which doesn't work in this case.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1757 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-07-03 20:10:06 +00:00
parent 43717b6a15
commit f1759a4aec
6 changed files with 44 additions and 9 deletions
+7 -2
View File
@@ -40,6 +40,7 @@
menu_message += "<A href='byond://?src=\ref[src];buy_item=voice'>Voice-Changer</A> (4)<BR>"
menu_message += "<BR>"
menu_message += "<A href='byond://?src=\ref[src];buy_item=imp_freedom'>Freedom Implant (with injector)</A> (3)<BR>"
menu_message += "<A href='byond://?src=\ref[src];buy_item=imp_uplink'>Uplink Implant (4 crystals inside)</A> (10)<BR>"
menu_message += "<A href='byond://?src=\ref[src];buy_item=paralysispen'>Paralysis Pen</A> (3)<BR>"
menu_message += "<A href='byond://?src=\ref[src];buy_item=sleepypen'>Sleepy Pen</A> (5)<BR>"
menu_message += "<BR>"
@@ -121,6 +122,11 @@
uses -= 3
var/obj/item/weapon/implanter/O = new /obj/item/weapon/implanter(get_turf(hostpda))
O.imp = new /obj/item/weapon/implant/freedom(O)
if("imp_uplink")
if (uses >= 10)
uses -= 10
var/obj/item/weapon/implanter/O = new /obj/item/weapon/implanter(get_turf(hostpda))
O.imp = new /obj/item/weapon/implant/uplink(O)
if("sleepypen")
if (uses >= 5)
uses -= 5
@@ -170,7 +176,6 @@
if(uses >= 3)
uses -= 3
new /obj/machinery/singularity_beacon/syndicate(get_turf(hostpda))
if("toolbox")
if(uses)
uses--
@@ -190,4 +195,4 @@
if (hostpda.mode==1)
hostpda.mode = 0
hostpda.updateDialog()
return
return