Skip to content

Commit

Permalink
size check
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreML committed Jan 28, 2024
1 parent ac085fe commit ff37780
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/game/objects/structures/tables_racks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,12 @@
set category = "Object"
set src in oview(1)

if(!can_touch(usr) || ismouse(usr))
if(!can_touch(usr))
return

// Small regular mob, or very small xeno.
if(usr.mob_size == MOB_SIZE_SMALL || usr.mob_size == MOB_SIZE_XENO_VERY_SMALL)
to_chat(usr, SPAN_WARNING("[isxeno(usr) ? "We are" : "You're"] too small to flip [src]."))
return

if(usr.a_intent != INTENT_HARM)
Expand Down

0 comments on commit ff37780

Please sign in to comment.