[NO GBP] Fixes an oversight with tablesmash element (#94609)

## About The Pull Request

I neglected platforms, whoops. Also, while we are at it refactors to use
the connect_loc element further reducing instances of connect_loc_behalf
components, and fixes a bug in disarm code with checking for a flag
using && instead of & that I randomly stumbled upon

<details> <summary> Working </summary>

<img width="1461" height="804" alt="image"
src="https://github.com/user-attachments/assets/fa6fc773-94a8-488e-840d-d1d3d2070a29"
/>

</details>

## Why It's Good For The Game

Fixes a runtime

## Changelog

🆑
fix: fixes tablesmashing onto platforms
/🆑
This commit is contained in:
Bloop
2025-12-29 22:43:20 -05:00
committed by GitHub
parent c97615ec58
commit e1d93b4168
3 changed files with 16 additions and 15 deletions
+1 -5
View File
@@ -91,11 +91,7 @@
make_climbable()
AddElement(/datum/element/give_turf_traits, string_list(turf_traits))
AddElement(/datum/element/footstep_override, priority = STEP_SOUND_TABLE_PRIORITY)
AddElement(/datum/element/table_smash, gentle_push = slam_gently)
/// Called after someone is harmfully smashed into us
/obj/structure/table/after_smash(mob/living/smashed_onto)
return // This is mostly for our children
AddElement(/datum/element/table_smash, gentle_push = slam_gently, after_smash_proccall = PROC_REF(after_smash))
/// Applies additional properties based on the frame used to construct this table.
/obj/structure/table/proc/apply_frame_properties(obj/structure/table_frame/frame_used)