mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
cyborg topic exploit fixes
all kinds of fun here
This commit is contained in:
@@ -1094,18 +1094,24 @@
|
|||||||
|
|
||||||
/mob/living/silicon/robot/Topic(href, href_list)
|
/mob/living/silicon/robot/Topic(href, href_list)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
if(usr != src)
|
||||||
|
return
|
||||||
|
|
||||||
if (href_list["showalerts"])
|
if (href_list["showalerts"])
|
||||||
robot_alerts()
|
robot_alerts()
|
||||||
return
|
return
|
||||||
|
|
||||||
if (href_list["mod"])
|
if (href_list["mod"])
|
||||||
var/obj/item/O = locate(href_list["mod"])
|
var/obj/item/O = locate(href_list["mod"])
|
||||||
if (O)
|
if (isytpe(O) && (O.loc == src))
|
||||||
O.attack_self(src)
|
O.attack_self(src)
|
||||||
|
|
||||||
if (href_list["act"])
|
if (href_list["act"])
|
||||||
var/obj/item/O = locate(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))
|
if(activated(O))
|
||||||
src << "Already activated"
|
src << "Already activated"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user