run
run: (LootManagerHandle) -> (RunStatus, string?)Advance one tick: finish what is in flight, or decide what is next and act on it. It tries again when an action did not take, and drops a take whose pile has gone.
local status, reason = loot:run()- Returns
"running"when it acted or is waiting, or"idle"with nothing to do, the reason being aLootWaitReasonwhen it deferred andnilwhen there is simply nothing to loot.