Skip to content

Commit

Permalink
bugfix: no cyborg wheelchairs (#5925)
Browse files Browse the repository at this point in the history
no cyborg wheelchairs
  • Loading branch information
Samirakis committed Sep 21, 2024
1 parent 50a4136 commit 6e7e8e0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions code/controllers/subsystem/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -544,18 +544,16 @@ SUBSYSTEM_DEF(jobs)
G.upgrade_prescription()
H.update_nearsighted_effects()

// Wheelchair necessary?
var/obj/item/organ/external/l_foot = H.get_organ(BODY_ZONE_PRECISE_L_FOOT)
var/obj/item/organ/external/r_foot = H.get_organ(BODY_ZONE_PRECISE_R_FOOT)
if(!l_foot && !r_foot || (H.client.prefs.disabilities & DISABILITY_FLAG_PARAPLEGIA) && !(H.dna.species.blacklisted_disabilities & DISABILITY_FLAG_PARAPLEGIA))
var/obj/structure/chair/wheelchair/W = new /obj/structure/chair/wheelchair(H.loc)
W.buckle_mob(H, TRUE)
if(!issilicon(H))
// Wheelchair necessary?
var/obj/item/organ/external/l_foot = H.get_organ(BODY_ZONE_PRECISE_L_FOOT)
var/obj/item/organ/external/r_foot = H.get_organ(BODY_ZONE_PRECISE_R_FOOT)
if(!l_foot && !r_foot || (H.client.prefs.disabilities & DISABILITY_FLAG_PARAPLEGIA) && !(H.dna.species.blacklisted_disabilities & DISABILITY_FLAG_PARAPLEGIA))
var/obj/structure/chair/wheelchair/W = new /obj/structure/chair/wheelchair(H.loc)
W.buckle_mob(H, TRUE)
return H





/datum/controller/subsystem/jobs/proc/LoadJobsFile(jobsfile, highpop) //ran during round setup, reads info from jobs.txt -- Urist
if(!CONFIG_GET(flag/load_jobs_from_txt))
return
Expand Down

0 comments on commit 6e7e8e0

Please sign in to comment.