Quick fix to prevent parapalegics driving with no legs.

This commit is contained in:
Fermi
2019-06-01 18:24:17 +01:00
parent bebaf8e7a8
commit 4603019046
+5
View File
@@ -60,6 +60,11 @@
if(key_type && !is_key(inserted_key))
to_chat(user, "<span class='warning'>[src] has no key inserted!</span>")
return FALSE
if(canmove && (user.get_num_arms() < arms_required))
to_chat(user, "<span class='warning'>You don't have enough legs to operate the pedals!</span>")
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 ..()