mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-03 21:09:37 +00:00
* Tweaks Floorbot pathfinding to prevent dogpiles and help prevent duplicate tile placements. (#54786) This pr adjusts floorbots behaviors in order to attempt to fix any of the following issues: #54159, #54196, #37421. More or less the issue appears to have been that floorbots would place floor platings on top of where another floorbot would already be repairing a tile, and since they don't check for each other's work, they were stacking floor turfs ontop of each other, creating either A: Infinite piles of floor tiles, or B: Multiple floor tiles stacked on top of each other. The former I think may have been fixed in the previous changes to how shuttlecode turfs were stacking on-top of each other, but the multiple stacks of floor tiles overlaying was not resolved. This adds a check to the beginning of floorbots repair proc which determines if another floorbot is there and repairing the turf already. If so, it begins to ignore the turf until it is reset next, which it tends to go over the course of a single job. This helps split up and divide multiple floorbots working on the same tile at a time, in order to prevent infinite floorstacks. If 2 floorbots are on the same tile and conflicting, then a little whistle effect will play to indicate that they're moving to a new worksite. * Tweaks Floorbot pathfinding to prevent dogpiles and help prevent duplicate tile placements. Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>