mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 23:21:02 +01:00
Merge pull request #5 from SomeGuyEatingPie/Spawn-with-wheelchair
Spawn With Wheelchair Quirk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user