Fix painful vehicles for legless riders (janicart and bike) (#31195)

* Change vehicle behavior for legless riders
- Make janicart unbucklable without legs
- Make bike unmovable without legs, but not painful, and pullable by other parties

* Thanks, linters!

* Apply suggestions from review.
This commit is contained in:
Alan
2025-12-09 08:10:24 +00:00
committed by GitHub
parent a4572e0aed
commit 924e512840
3 changed files with 17 additions and 2 deletions
@@ -42,7 +42,7 @@
// Buckled to a bed/chair. Stance damage is forced to 0 since they're sitting on something solid
// Not standing, so no need to care about stance
if(istype(buckled, /obj/structure/chair) || !isturf(loc))
if(istype(buckled, /obj/structure/chair) || istype(buckled, /obj/vehicle/bike) || !isturf(loc))
return
for(var/limb_tag in list("l_leg","r_leg","l_foot","r_foot"))