Skip to content

Commit

Permalink
table flipping (#4714)
Browse files Browse the repository at this point in the history
Co-authored-by: shodd <[email protected]>
  • Loading branch information
Shoddd and shodd authored Dec 28, 2024
1 parent c472aeb commit 941891c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
return COMPONENT_ATOM_BLOCK_EXIT

/obj/structure/flippedtable/CtrlShiftClick(mob/user)
if(!istype(user) || iscorticalborer(user))
if(!iscarbon(user) && !is_admin(user.client))
return
if(isobserver(user) && !is_admin(user.client)) //prevent ghosts from unflipping tables but still allows admins to fuck around
return
Expand All @@ -72,13 +72,11 @@


/obj/structure/table/CtrlShiftClick(mob/user)
if(!istype(user) || iscorticalborer(user))
return
if(!can_flip)
if(!iscarbon(user) && !is_admin(user.client))
return
if(isobserver(user) && !is_admin(user.client)) //prevent ghosts from flipping tables but still allows admins to fuck around
return
if(!user.CanReach(src)) //prevents certain kinds of fuckers on cameras from flipping tables THROUGH A FUCKING CAMERA. ... this is why we can't have nice things.
if(!can_flip || !user.CanReach(src))
return
user.balloon_alert_to_viewers("flipping table...")
if(!do_after(user, max_integrity * 0.25))
Expand Down

0 comments on commit 941891c

Please sign in to comment.