Skip to content

Commit

Permalink
Mild Zero Gravity Buff AKA Tables Are Below Me (#3099)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Allows you to float over tables if you are in a 0g environment.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
Having to climb over something waist high at best while Floating is kind
of silly. Spacers rejoice.
<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Changelog

:cl:
balance: you can now float over tables when in 0g
balance: you no longer shatter glass tables when floating
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
Skies-Of-Blue authored Jun 19, 2024
1 parent 4a0299e commit 05afbe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/structures/tables_racks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
return TRUE
if(locate(/obj/structure/table) in get_turf(mover))
return TRUE
if(mover.movement_type & FLOATING)
return TRUE

/obj/structure/table/CanAStarPass(ID, dir, caller)
. = !density
Expand Down Expand Up @@ -372,7 +374,7 @@
check_break(M)

/obj/structure/table/glass/proc/check_break(mob/living/M)
if(M.has_gravity() && M.mob_size > MOB_SIZE_SMALL && !(M.movement_type & FLYING))
if(M.has_gravity() && M.mob_size > MOB_SIZE_SMALL && !(M.movement_type & (FLYING || FLOATING)))
table_shatter(M)

/obj/structure/table/glass/proc/table_shatter(mob/living/L)
Expand Down

0 comments on commit 05afbe0

Please sign in to comment.