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.

playerServers.js #34

@drstattik-dev

Description

@drstattik-dev

had an issue with playerServers.js buying the lowest level server when I could afford more. This may not be the intended way but it worked for me.
at line 133 I changed:
let biggestCurrentServer = (ns.getServerMaxRam(purchasedServers[purchasedServers.length - 1]), ns.getServerUsedRam(purchasedServers[purchasedServers.length - 1]))
to
let biggestCurrentServer = Math.max(ns.getServerMaxRam(purchasedServers[purchasedServers.length - 1]), ns.getServerUsedRam(purchasedServers[purchasedServers.length - 1]))

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