Merge pull request #11004 from Citadel-Station-13/kevinz000-patch-2

improves getImplant by using locate()
This commit is contained in:
Ghom
2020-02-12 10:33:08 +01:00
committed by GitHub
+4 -7
View File
@@ -420,13 +420,10 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
return TRUE
/mob/proc/getImplant(type)
if (!istype(src,/mob/living))
return
var/mob/living/L = src
for (var/I in L.implants)
if (istype(I,type))
return I
return null
return
/mob/living/getImplant(type)
return locate(type) in implants
/proc/canGhostWrite(var/mob/A, var/obj/target, var/desc="", var/allow_all=FALSE)
if(allow_all & TRUE)