mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Wheelchairs spawn on footless characters
Conflicts: code/modules/client/preferences.dm
This commit is contained in:
@@ -1409,6 +1409,17 @@ datum/preferences
|
||||
if(disabilities & DISABILITY_FLAG_DEAF)
|
||||
character.sdisabilities|=DEAF
|
||||
|
||||
// Wheelchair necessary?
|
||||
var/datum/organ/external/l_foot = character.get_organ("l_foot")
|
||||
var/datum/organ/external/r_foot = character.get_organ("r_foot")
|
||||
if((!l_foot || l_foot.status & ORGAN_DESTROYED) && (!r_foot || r_foot.status & ORGAN_DESTROYED))
|
||||
var/obj/structure/stool/bed/chair/wheelchair/W = new /obj/structure/stool/bed/chair/wheelchair (character.loc)
|
||||
character.buckled = W
|
||||
character.update_canmove()
|
||||
W.dir = character.dir
|
||||
W.buckled_mob = character
|
||||
W.add_fingerprint(character)
|
||||
|
||||
if(underwear > underwear_m.len || underwear < 1)
|
||||
underwear = 0 //I'm sure this is 100% unnecessary, but I'm paranoid... sue me. //HAH NOW NO MORE MAGIC CLONING UNDIES
|
||||
character.underwear = underwear
|
||||
@@ -1459,4 +1470,4 @@ datum/preferences
|
||||
popup.set_content(dat)
|
||||
popup.open(0)
|
||||
proc/close_load_dialog(mob/user)
|
||||
user << browse(null, "window=saves")
|
||||
user << browse(null, "window=saves")
|
||||
|
||||
@@ -311,6 +311,10 @@
|
||||
EquipCustomItems(character)
|
||||
character.loc = pick(latejoin)
|
||||
character.lastarea = get_area(loc)
|
||||
// Moving wheelchair if they have one
|
||||
if(character.buckled && istype(character.buckled, /obj/structure/stool/bed/chair/wheelchair))
|
||||
character.buckled.loc = character.loc
|
||||
character.buckled.dir = character.dir
|
||||
|
||||
ticker.mode.latespawn(character)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user