•Runtime error fix for all the vending machines. Stop fucking using :s you faggits.

Untested, but I'm losing my bass here. Will test in 3 hours when I'm back home.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1927 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
polyxenitopalidou@gmail.com
2011-07-25 15:14:28 +00:00
parent a2965862b9
commit e47dfe68fa
2 changed files with 9 additions and 868 deletions
+9 -3
View File
@@ -180,9 +180,15 @@
if(usr.stat || usr.restrained())
return
if(istype(usr,/mob/living/silicon) && !(usr:module && istype(usr:module,/obj/item/weapon/robot_module/butler)) )
usr << "\red The vending machine refuses to interface with you, as you are not in its target demographic!"
return
if(istype(usr,/mob/living/silicon))
if(istype(usr,/mob/living/silicon/robot))
var/mob/living/silicon/robot/R = usr
if(!(R.module && istype(R.module,/obj/item/weapon/robot_module/butler) ))
usr << "\red The vending machine refuses to interface with you, as you are not in its target demographic!"
return
else
usr << "\red The vending machine refuses to interface with you, as you are not in its target demographic!"
return
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))))
usr.machine = src