mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-22 11:36:38 +01:00
•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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user