tgstation/-tg-station — pull request #595 by Yvar (2013-05-16 11:37:05+00:00)
Title: Bot intelligence

Bots are dumb! When a bot tries to go somewhere, here's a (partial?) list of things they think are passable:
* closed doors with no power
* welded doors
* bolted doors
* doors they're not allowed to go through
* closed firedoors
* closed blastdoors

This change lets the stupid bot know those aren't worth trying. No more beepsky swinging back and forth across two broken doors! Less mulebots vanishing into the ether! Etc!

On the other hand... seeing as how often doors fail this means bots might start spending a lot more time in maintenance corridors, which has potential downsides (mulebots getting in the way is the first one that came to mind, or bots wasting time hiding in remote places instead of having fun). And obviously they won't know about doors that break mid-journey, though they'll go around fine once they hit them. I'd prefer to just have bots lose maintenance access if that kind of thing is a problem but I'm not going to fight terribly hard for this commit if the change isn't worth it.

Since disease also uses the A-star proc, this also means that firedoors and blastdoors will stop the spread of sickness. Doors with ID requirements already did, and working doors without ID requirements are still 'porous', but that can be changed if people want - plus chances are people anywhere near those would get sick anyway.

No graphs this time, sorry!