mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-23 05:06:50 +01:00
Stop bots standing around blocking doors (#7509)
* Idle bots will move out of doorways Idle bots will move out of doorways, including turfs with firedoors or blastdoors. * +changelog * fix parentheses
This commit is contained in:
@@ -197,6 +197,12 @@
|
||||
else
|
||||
startPatrol()
|
||||
else
|
||||
if((locate(/obj/machinery/door) in loc) && !pulledby) //Don't hang around blocking doors, but don't run off if someone tries to pull us through one.
|
||||
var/turf/my_turf = get_turf(src)
|
||||
var/list/can_go = my_turf.CardinalTurfsWithAccess(botcard)
|
||||
if(LAZYLEN(can_go))
|
||||
if(step_towards(src, pick(can_go)))
|
||||
return
|
||||
handleIdle()
|
||||
|
||||
/mob/living/bot/proc/handleRegular()
|
||||
|
||||
Reference in New Issue
Block a user