Merge pull request #5 from SomeGuyEatingPie/Spawn-with-wheelchair

Spawn With Wheelchair Quirk
This commit is contained in:
KabKebab
2022-03-25 21:39:59 +01:00
committed by GitHub
+17
View File
@@ -160,3 +160,20 @@
value = 0
category = CATEGORY_SEXUAL
medical_record_text = "Patient's legs seem to lack strength"
/datum/quirk/SpawnWithWheelchair
name = "Mobility Assistance"
desc = "After your last failed fitness test, you were advised to start using a wheelchair"
category = CATEGORY_MOVEMENT
/datum/quirk/SpawnWithWheelchair/on_spawn()
if(quirk_holder.buckled) // Handle late joins being buckled to arrival shuttle chairs.
quirk_holder.buckled.unbuckle_mob(quirk_holder)
var/turf/T = get_turf(quirk_holder)
var/obj/structure/chair/spawn_chair = locate() in T
var/obj/vehicle/ridden/wheelchair/wheels = new(T)
if(spawn_chair) // Makes spawning on the arrivals shuttle more consistent looking
wheels.setDir(spawn_chair.dir)
wheels.buckle_mob(quirk_holder)