Fixes a bug with stationary turrets. Removes quotes in path-name to ensure type always exists. Includes code review suggestions.

This commit is contained in:
PsiOmega
2014-10-23 20:55:10 +02:00
parent 8fa9a7ab39
commit a49fd52732
6 changed files with 60 additions and 60 deletions

View File

@@ -181,7 +181,7 @@
update_inv_wear_mask(0)
return
/mob/proc/unEquip(obj/item/I, force) //Force overrides NODROP for things like wizarditis and admin undress.
/mob/proc/unEquip(obj/item/I, force = 0) //Force overrides NODROP for things like wizarditis and admin undress.
if(!I) //If there's nothing to drop, the drop is automatically successful. If(unEquip) should generally be used to check for NODROP.
return 1

View File

@@ -10,6 +10,15 @@
return 1
return 0
/proc/isxenomorph(A)
if(isalien(A))
return 1
if(istype(A, /mob/living/carbon))
var/mob/living/carbon/C = A
var/xeno = "Xenomorph"
return findtext(C.species.name, xeno, 0, lentext(xeno))
return 0
/proc/ismonkey(A)
if(A && istype(A, /mob/living/carbon/monkey))
return 1