bitburner-official / bitburner-src

Bitburner source code.
Other
839 stars 273 forks source link

Bladeburner setTeamSize does not allow 0 size #1671

Closed BanovMiroslav closed 1 month ago

BanovMiroslav commented 2 months ago

Calling setTeamSize to set team size to zero fails with error. There is no other API available to set team size to 0 either.

/** @param {NS} ns */
export async function main(ns) {
  ns.bladeburner.setTeamSize("Operations", "Investigation", 0);
}

the script causes this error:

TYPE ERROR s/set-team-size.js@home (PID - 76)

bladeburner.setTeamSize: size should be a positive integer, was 0

Stack: s/set-team-size.js:L3@main

Version Bitburner v2.6.2 (633da3830)