setRecoveryCheckpoint
Definition
-- @/lua/ge/extensions/gameplay/crawl/utils.lua:1407
local function setRecoveryCheckpoint(crawlerId, checkpoint)
if not crawlerId or not checkpoint then
return false
end
local state = crawlStates[crawlerId]
if not state or not state.active then
return false
end
state.lastRecoveryCheckpoint = checkpoint
state.lastRecoveryCheckpointIndex = checkpoint.index or 0
if state.crawlerData and state.crawlerData.infractionData then
state.crawlerData.infractionData.recentlyRecovered = true
state.crawlerData.infractionData.recoveryCooldown = 5.0
end
return true
end
Callers
@/lua/ge/extensions/gameplay/crawl/crawlFlowgraphBridge.lua
return gameplay_crawl_utils.setRecoveryCheckpoint(bridgeState.activeCrawlerId, checkpoint)
end
@/lua/ge/extensions/gameplay/crawl/flowgraphBridge.lua
return gameplay_crawl_utils.setRecoveryCheckpoint(activeCrawlerId, checkpoint)
end