mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] do_teleport proc fixes (#11968)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
174138f7cd
commit
ae54169ed8
@@ -60,7 +60,6 @@ GLOBAL_LIST_INIT(bluespace_item_types, list(
|
|||||||
if(isliving(teleatom))
|
if(isliving(teleatom))
|
||||||
var/mob/living/telemob = teleatom
|
var/mob/living/telemob = teleatom
|
||||||
var/mob/living/mob = locate() in destturf
|
var/mob/living/mob = locate() in destturf
|
||||||
// Needs the vore helpers later. Ough.
|
|
||||||
if(can_spontaneous_vore(mob, telemob))
|
if(can_spontaneous_vore(mob, telemob))
|
||||||
destturf = mob.vore_selected
|
destturf = mob.vore_selected
|
||||||
else if(can_spontaneous_vore(telemob, mob))
|
else if(can_spontaneous_vore(telemob, mob))
|
||||||
@@ -86,7 +85,13 @@ GLOBAL_LIST_INIT(bluespace_item_types, list(
|
|||||||
|
|
||||||
tele_play_specials(teleatom, curturf, effectin, asoundin)
|
tele_play_specials(teleatom, curturf, effectin, asoundin)
|
||||||
|
|
||||||
|
if(teleatom.buckle_movable) // Specifically office chairs. Fuck you.
|
||||||
|
teleatom.buckle_movable = FALSE
|
||||||
|
|
||||||
var/success = teleatom.forceMove(destturf)
|
var/success = teleatom.forceMove(destturf)
|
||||||
|
|
||||||
|
teleatom.buckle_movable = initial(teleatom.buckle_movable) // Double fuck you, office chairs
|
||||||
|
|
||||||
if(!success)
|
if(!success)
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
@@ -98,7 +103,7 @@ GLOBAL_LIST_INIT(bluespace_item_types, list(
|
|||||||
for(var/mob/living/rider in teleatom.buckled_mobs)
|
for(var/mob/living/rider in teleatom.buckled_mobs)
|
||||||
teleatom.unbuckle_mob(rider, TRUE)
|
teleatom.unbuckle_mob(rider, TRUE)
|
||||||
|
|
||||||
var/rider_success = do_teleport(rider, destturf, precision, channel = channel, no_effects = TRUE)
|
var/rider_success = do_teleport(rider, destination, precision, channel = channel, no_effects = TRUE)
|
||||||
if(!rider_success)
|
if(!rider_success)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
@@ -199,8 +199,6 @@
|
|||||||
for (var/mob/O in src.loc)
|
for (var/mob/O in src.loc)
|
||||||
if (O != occupant)
|
if (O != occupant)
|
||||||
Bump(O)
|
Bump(O)
|
||||||
else
|
|
||||||
unbuckle_mob()
|
|
||||||
|
|
||||||
/obj/structure/bed/chair/office/Bump(atom/A)
|
/obj/structure/bed/chair/office/Bump(atom/A)
|
||||||
..()
|
..()
|
||||||
|
|||||||
Reference in New Issue
Block a user