TG: Integrated BS12's improved uplink code, courtesy of SkyMarshal.

This means items now spawn in your hand if possible, items are sorted into
categories, and only items you have enough telecrystals to purchase will be
displayed.  Also, the same basic code is now used for PDA, headset and nuke-
round uplinks, and it should be easier to add new items.
Revision: r3216
Author: 	 musketstgstation
This commit is contained in:
Ren Erthilo
2012-04-25 00:35:54 +01:00
parent 43a4020990
commit 707b6caa1e
9 changed files with 113 additions and 41 deletions
+7 -2
View File
@@ -319,8 +319,6 @@
for (var/O in listening)
world << O
var/list/V = view(message_range, T)
var/list/W = V
//find mobs in lockers, cryo, intellicards, brains, MMIs, and so on.
for (var/mob/M in world)
if (!M.client)
@@ -378,6 +376,13 @@
if(O && !istype(O.loc, /obj/item/weapon/storage))
O.hear_talk(src, message)
/* Commented out as replaced by code above from BS12
for (var/obj/O in ((V | contents)-used_radios)) //radio in pocket could work, radio in backpack wouldn't --rastaf0
spawn (0)
if (O)
O.hear_talk(src, message)
*/
if(isbrain(src))//For brains to properly talk if they are in an MMI..or in a brain. Could be extended to other mobs I guess.
for(var/obj/O in loc)//Kinda ugly but whatever.
if(O)