Merge pull request #848 from Erthilo/master

Fixes detective scanner printing blank ID cards, fixes mechs interacting with occupant items
This commit is contained in:
CIB
2012-04-16 07:54:52 -07:00
3 changed files with 12 additions and 3 deletions
+10 -1
View File
@@ -192,4 +192,13 @@
proc/check_can_reach(atom/user, atom/target)
if(!in_range(user,target))
return 0
return CanReachThrough(get_turf(user), get_turf(target), target)
return CanReachThrough(get_turf(user), get_turf(target), target)
//cael - not sure if there's an equivalent proc, but if there is i couldn't find it
//searches to see if M contains O somewhere
proc/is_carrying(var/M as mob, var/O as obj)
while(!istype(O,/area))
if(O:loc == M)
return 1
O = O:loc
return 0
+1 -1
View File
@@ -198,7 +198,7 @@
return
var/obj/mecha/Mech = M.loc
spawn() //this helps prevent clickspam fest.
if (Mech)
if (Mech && !(is_carrying(M,object)) ) //cael - make sure you cant drill shit in your invent
Mech.click_action(object,M)
else
return ..()
+1 -1
View File
@@ -117,7 +117,7 @@ MASS SPECTROMETER
src.amount--
var/obj/item/weapon/f_card/F = new /obj/item/weapon/f_card( user.loc )
F.amount = 1
F.fingerprints += md5(M.dna.uni_identity)
F.add_fingerprint(M)
F.icon_state = "fingerprint1"
F.name = text("FPrintC- '[M.name]'")