Leanable component (#21431)

Refactors leanable code into a component, now attached to walls, (full)
windows, doors (of all types), and vending machines. See video for
example behavior.

https://github.com/user-attachments/assets/032d2cb2-17e3-4604-90b6-040e183dccd9
This commit is contained in:
Batrachophreno
2025-10-04 19:50:27 +00:00
committed by GitHub
parent 5fec421dae
commit 0b612d1653
14 changed files with 195 additions and 106 deletions
+4
View File
@@ -781,6 +781,10 @@
qdel(src)
update_nearby_icons()
/obj/structure/window/full/mouse_drop_receive(atom/dropping, mob/user, params)
//Adds the component only once. We do it here & not in Initialize() because there are tons of walls & we don't want to add to their init times
LoadComponent(/datum/component/leanable, dropping)
/********** Full Windows **********/
// Reinforced Window
/obj/structure/window/full/reinforced