Skip to main content
The Deno 2 Release Candidate is here
Learn more
method HideoutHelper.prototype.getTimeElapsedSinceLastServerTick
import { HideoutHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Get number of ticks that have passed since hideout areas were last processed, reduced when generator is off

Parameters

pmcData: IPmcData

Player profile

isGeneratorOn: boolean

Is the generator on for the duration of elapsed time

optional
recipe: IHideoutProduction

Hideout production recipe being crafted we need the ticks for

Returns

number

Amount of time elapsed in seconds