Skip to content

Commit

Permalink
Fixes facehuggers being able to flip tables (#5580)
Browse files Browse the repository at this point in the history
# About the pull request

Fixes #5563 by adding a `mob_size` check to the table flipping verb.

# Explain why it's good for the game

Probably not an intentional feature lol

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: Fixed facehuggers being able to flip tables.
/:cl:
  • Loading branch information
SabreML committed Jan 30, 2024
1 parent 3d563c4 commit 887d21d
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 887d21d

Please sign in to comment.