mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Refactor incapacitated optional arguments (#63771)
This commit is contained in:
@@ -54,10 +54,10 @@
|
||||
if(living_parent.body_position != STANDING_UP) // if we move while on the ground, the rider falls off
|
||||
. = FALSE
|
||||
// for piggybacks and (redundant?) borg riding, check if the rider is stunned/restrained
|
||||
else if((ride_check_flags & RIDER_NEEDS_ARMS) && (HAS_TRAIT(rider, TRAIT_RESTRAINED) || rider.incapacitated(TRUE, TRUE)))
|
||||
else if((ride_check_flags & RIDER_NEEDS_ARMS) && (HAS_TRAIT(rider, TRAIT_RESTRAINED) || rider.incapacitated(IGNORE_RESTRAINTS|IGNORE_GRAB)))
|
||||
. = FALSE
|
||||
// for fireman carries, check if the ridden is stunned/restrained
|
||||
else if((ride_check_flags & CARRIER_NEEDS_ARM) && (HAS_TRAIT(living_parent, TRAIT_RESTRAINED) || living_parent.incapacitated(TRUE, TRUE)))
|
||||
else if((ride_check_flags & CARRIER_NEEDS_ARM) && (HAS_TRAIT(living_parent, TRAIT_RESTRAINED) || living_parent.incapacitated(IGNORE_RESTRAINTS|IGNORE_GRAB)))
|
||||
. = FALSE
|
||||
|
||||
if(. || !consequences)
|
||||
|
||||
Reference in New Issue
Block a user