Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

extremely long delays even after patched mainHack.ns #14

@skaffen-amtiskaw

Description

@skaffen-amtiskaw

Im still seeing day-long delay times on grow(), even after the merged patch. I had a single playthrough where things seemed to delay properly, but its never happened again and I am at a loss to explain why it would work once and never again. I've gone over the code but I guess I still don't understand why this var

const growDelay = Math.max(0, weakenTime - growTime - 15 * 1000)

subtracts the grow time from the weaken time? Shouldn't this simply be the weakenTime plus a few ms? Similarly, what is the point of subtracting hacktime from the hackDelay var?

Making these changes in my own mainHack.ns completely fixed the timing issues for me. I admit I only took a cursory scan of the code, so if someone has a deeper understanding of the game mechanics please do correct me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions