From 460301904697ad2574886a684a2b7d41b72680d7 Mon Sep 17 00:00:00 2001 From: Fermi Date: Sat, 1 Jun 2019 18:24:17 +0100 Subject: [PATCH] Quick fix to prevent parapalegics driving with no legs. --- code/modules/vehicles/ridden.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/vehicles/ridden.dm b/code/modules/vehicles/ridden.dm index ba37f39bb3..8535bf2ba0 100644 --- a/code/modules/vehicles/ridden.dm +++ b/code/modules/vehicles/ridden.dm @@ -60,6 +60,11 @@ if(key_type && !is_key(inserted_key)) to_chat(user, "[src] has no key inserted!") return FALSE + if(canmove && (user.get_num_arms() < arms_required)) + to_chat(user, "You don't have enough legs to operate the pedals!") + canmove = FALSE + addtimer(VARSET_CALLBACK(src, canmove, TRUE), 20) + return FALSE var/datum/component/riding/R = GetComponent(/datum/component/riding) R.handle_ride(user, direction) return ..()