Function timeToGems

  • Parameters

    • seconds: number

      number - the length of the lab in seconds

    Returns number

    number - how many gems it costs to rush the lab, rounded up to the nearest integer

    Function

    timeToGems - Tells you how many gems to rush a lab of a specific length

    Remarks

    The formula works as follows:

    • For periods over three hundred and sixty days, the cost is 25000 gems.
    • For all periods between one second and three hundred and sixty days (inclusive), the cost is a flat amount (depending on the tier) plus a constant cost for each second between the current tier and the next.

Generated using TypeDoc