Adds table flipping! Take 2.0 (#90156)

## About The Pull Request
Revives the long dead #80348. Right click a table to flip it over,
Useful for makeshift cover or ragequitting. Their integrity is equal to
that of the table you flipped. Some tables aren't able to be flipped
(reinforced tables, roller tables, etc).

I refactored it to be less snowflakey. so hopefully this passes with
only minor changes

![290775902-48414bb3-aaa9-467d-8edf-a170a98b1506](https://github.com/user-attachments/assets/3627c537-043e-4829-b38b-f68a7d382167)

![gambar](https://github.com/user-attachments/assets/ce04a6d1-e480-46f9-8913-041f86db8a9a)
## Why It's Good For The Game
I felt like we're lacking in the makeshift defense items. This is a
quicky way to plop up a shitty barricade for you to guard with. and also
really cool for roleplaying and such. also, this categorically goes
hard:

![gambar](https://github.com/user-attachments/assets/af593068-d9f3-49b0-9102-989ce2b4d3fb)
## Changelog
🆑
add: You can now flip tables by right clicking them!
/🆑

---------

Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com>
Co-authored-by: Jacquerel <hnevard@gmail.com>
This commit is contained in:
Singul0
2025-04-03 03:11:27 +01:00
committed by GitHub
co-authored by SmArtKar Jacquerel
parent 981a863508
commit 0107aecc73
5 changed files with 230 additions and 29 deletions
@@ -375,3 +375,18 @@ again.
icon = 'icons/obj/structures_spawners.dmi'
icon_state = "electrified_grille"
spawn_list = list(/obj/structure/grille, /obj/structure/cable)
///flipped tables
/obj/effect/spawner/structure/flipped_table
name = "flipped table spawner"
icon = 'icons/obj/flipped_tables.dmi'
icon_state = "table"
///just change this whatever table type you want, has to be a table subtype though.
var/table_to_spawn = /obj/structure/table
/obj/effect/spawner/structure/flipped_table/Initialize(mapload)
. = ..()
var/obj/structure/table/table_to_flipped = new table_to_spawn(loc)
table_to_flipped.dir = dir
table_to_flipped.flip_table()