mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
[MIRROR] The Tramstation Tram no longer shoves the handicapped out of their wheelchairs when moved [MDB IGNORE] (#9763)
* The Tramstation Tram no longer shoves the handicapped out of their wheelchairs when moved * Feeeeex Co-authored-by: MMMiracles <lolaccount1@hotmail.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
@@ -180,6 +180,8 @@ GLOBAL_LIST_EMPTY(lifts)
|
||||
SIGNAL_HANDLER
|
||||
if(!(potential_rider in lift_load))
|
||||
return
|
||||
if(isliving(potential_rider) && HAS_TRAIT(potential_rider, TRAIT_CANNOT_BE_UNBUCKLED))
|
||||
REMOVE_TRAIT(potential_rider, TRAIT_CANNOT_BE_UNBUCKLED, BUCKLED_TRAIT)
|
||||
LAZYREMOVE(lift_load, potential_rider)
|
||||
UnregisterSignal(potential_rider, COMSIG_PARENT_QDELETING)
|
||||
|
||||
@@ -189,6 +191,8 @@ GLOBAL_LIST_EMPTY(lifts)
|
||||
return
|
||||
if(AM in lift_load)
|
||||
return
|
||||
if(isliving(AM) && !HAS_TRAIT(AM, TRAIT_CANNOT_BE_UNBUCKLED))
|
||||
ADD_TRAIT(AM, TRAIT_CANNOT_BE_UNBUCKLED, BUCKLED_TRAIT)
|
||||
LAZYADD(lift_load, AM)
|
||||
RegisterSignal(AM, COMSIG_PARENT_QDELETING, .proc/RemoveItemFromLift)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user