From 2daedbf83f327c8d4d044f0ef6af1841c02aa015 Mon Sep 17 00:00:00 2001
From: Nadyr <41974248+Darlantanis@users.noreply.github.com>
Date: Tue, 9 Mar 2021 23:48:05 -0500
Subject: [PATCH] Update job_controller.dm
---
code/game/jobs/job_controller.dm | 44 ++++----------------------------
1 file changed, 5 insertions(+), 39 deletions(-)
diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm
index 381e54b1a6..e8ce56ecfd 100644
--- a/code/game/jobs/job_controller.dm
+++ b/code/game/jobs/job_controller.dm
@@ -510,57 +510,23 @@ var/global/datum/controller/occupations/job_master
to_chat(H, "Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug.")
if(istype(H)) //give humans wheelchairs, if they need them.
-<<<<<<< HEAD
- if(istype(H.loc, /obj/belly)) //unless in a gut
+ if(istype(H.loc, /obj/belly)) //CHOMPedit start unless in a gut
var/obj/item/organ/external/l_foot = H.get_organ("l_foot")
var/obj/item/organ/external/r_foot = H.get_organ("r_foot")
var/obj/item/weapon/storage/S = locate() in H.contents
- var/obj/item/wheelchair/R = null
+ var/obj/item/wheelchair/R
if(S)
R = locate() in S.contents
if(!l_foot || !r_foot || R)
- var/obj/structure/bed/chair/wheelchair/W = new /obj/structure/bed/chair/wheelchair(H.loc)
+ var/wheelchair_type = R?.unfolded_type || /obj/structure/bed/chair/wheelchair
+ var/obj/structure/bed/chair/wheelchair/W = new wheelchair_type(H.loc)
W.buckle_mob(H)
H.update_canmove()
W.set_dir(H.dir)
W.add_fingerprint(H)
if(R)
W.color = R.color
- qdel(R)
-||||||| parent of bc30b1d143... Merge pull request #9882 from VOREStation/upstream-merge-7849
- var/obj/item/organ/external/l_foot = H.get_organ("l_foot")
- var/obj/item/organ/external/r_foot = H.get_organ("r_foot")
- var/obj/item/weapon/storage/S = locate() in H.contents
- var/obj/item/wheelchair/R = null
- if(S)
- R = locate() in S.contents
- if(!l_foot || !r_foot || R)
- var/obj/structure/bed/chair/wheelchair/W = new /obj/structure/bed/chair/wheelchair(H.loc)
- W.buckle_mob(H)
- H.update_canmove()
- W.set_dir(H.dir)
- W.add_fingerprint(H)
- if(R)
- W.color = R.color
- qdel(R)
-=======
- var/obj/item/organ/external/l_foot = H.get_organ("l_foot")
- var/obj/item/organ/external/r_foot = H.get_organ("r_foot")
- var/obj/item/weapon/storage/S = locate() in H.contents
- var/obj/item/wheelchair/R
- if(S)
- R = locate() in S.contents
- if(!l_foot || !r_foot || R)
- var/wheelchair_type = R?.unfolded_type || /obj/structure/bed/chair/wheelchair
- var/obj/structure/bed/chair/wheelchair/W = new wheelchair_type(H.loc)
- W.buckle_mob(H)
- H.update_canmove()
- W.set_dir(H.dir)
- W.add_fingerprint(H)
- if(R)
- W.color = R.color
- qdel(R)
->>>>>>> bc30b1d143... Merge pull request #9882 from VOREStation/upstream-merge-7849
+ qdel(R) //CHOMPedit end
to_chat(H, "You are [job.total_positions == 1 ? "the" : "a"] [alt_title ? alt_title : rank].")