Quick fix to prevent parapalegics driving with no legs.
This commit is contained in:
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user