cyborg topic exploit fixes

all kinds of fun here
This commit is contained in:
Walter0o
2014-07-31 10:20:24 +02:00
parent f0042741fc
commit ca78cb238a

View File

@@ -1094,18 +1094,24 @@
/mob/living/silicon/robot/Topic(href, href_list)
..()
if(usr != src)
return
if (href_list["showalerts"])
robot_alerts()
return
if (href_list["mod"])
var/obj/item/O = locate(href_list["mod"])
if (O)
if (isytpe(O) && (O.loc == src))
O.attack_self(src)
if (href_list["act"])
var/obj/item/O = locate(href_list["act"])
if (!isytpe(O) || !(O.loc == src || O.loc == src.module))
return
if(activated(O))
src << "Already activated"
return