While You're Up mod for RimWorld. Uses my library: https://github.com/CodeOptimist/rimworld-codeoptimist-library
GNU Affero General Public License v3.0
4
stars
2
forks
source link
Opportunity hauling: Look for closest valid stockpile to position instead of best #1
Closed
LecrisUT closed 4 years ago
Implementation:
Rimworld.StoreUtility.TryFindBestBetterStoreCellFor()
andRimworld.StoreUtility.TryFindBestBetterStoreCellForWorker
(int)priority < (int)foundPriority
withdistance < foundDistance
inTryFindBestBetterStoreCellFor
TryFindBestBetterStoreCellForWorker
to look for minimum ofcarrier.PositionHeld
and destination2*cutoff radius
cells add to the search radius in the replacement ofTryFindBestBetterStoreCellForWorker
.TestBench:
Potential problems:
(Copied from the discord. I'll give it a try as well once I've finished writing my AutoPatcher and ToolsFramework mods)