[s] Fixes altclick exploits (#35456)

* Fixes altclick exploits

* Removed free spam, fixes monkey altclicks

* replaced named args with proper defines

* More cleanup and fixes

* Better yet

* Another exploit fix

* pet carrier fix
This commit is contained in:
ShizCalev
2018-02-11 16:06:12 +13:00
committed by oranges
parent bf1f56e93b
commit bfde5ac057
60 changed files with 115 additions and 133 deletions
+2 -5
View File
@@ -161,17 +161,14 @@
set category = "Object"
set src in usr
if(usr.incapacitated())
if(!usr.canUseTopic(src, BE_CLOSE, NO_DEXTERY))
return
setDir(turn(dir, -90))
/obj/item/device/assembly/infra/AltClick(mob/user)
..()
if(user.incapacitated())
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
return
if(!in_range(src, user))
if(!user.canUseTopic(src, BE_CLOSE, NO_DEXTERY))
return
else
rotate()