mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Fixes AIs being able to untilt vendors remotely (#76819)
## About The Pull Request Title. Also prevents AIs from making shocked vendors repeatedly do sparks as failed shock() procs happen on each click. ## Why It's Good For The Game Bugs... bad? ## Changelog 🆑 fix: The AI can no longer untip vendors remotely/spam sparks from shocked vendors /🆑
This commit is contained in:
@@ -860,15 +860,16 @@
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/vending/interact(mob/user)
|
||||
if(seconds_electrified && !(machine_stat & NOPOWER))
|
||||
if(shock(user, 100))
|
||||
return
|
||||
if (!isAI(user))
|
||||
if(seconds_electrified && !(machine_stat & NOPOWER))
|
||||
if(shock(user, 100))
|
||||
return
|
||||
|
||||
if(tilted && !user.buckled && !isAdminGhostAI(user))
|
||||
to_chat(user, span_notice("You begin righting [src]."))
|
||||
if(do_after(user, 50, target=src))
|
||||
untilt(user)
|
||||
return
|
||||
if(tilted && !user.buckled && !isAdminGhostAI(user))
|
||||
to_chat(user, span_notice("You begin righting [src]."))
|
||||
if(do_after(user, 50, target=src))
|
||||
untilt(user)
|
||||
return
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user