mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
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:
@@ -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
|
||||
@@ -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 ..()
|
||||
|
||||
@@ -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]'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user