Commit Graph

705 Commits

Author SHA1 Message Date
catloversg
47153bd31c MISC: Print logs when ns.hacknet.spendHashes fails and update param type of APIs using hash upgrade (#2145) 2025-05-21 08:38:39 -07:00
catloversg
37d9284d33 MISC: Remove deprecated tail-related APIs (#2143) 2025-05-19 20:10:15 -07:00
catloversg
24b31975e7 MISC: Remove fuzzy matching when checking params (#2091) 2025-05-18 16:08:19 -07:00
David Walker
f4e70720a6 Revert "API: Renamed Division.type to Division.industry (#2079)" (#2138)
This reverts commit 7a3c18fcf2.
2025-05-17 22:58:02 -07:00
whiskeyfur
7a3c18fcf2 API: Renamed Division.type to Division.industry (#2079) 2025-05-17 22:31:25 -07:00
Michael Ficocelli
4749acdd4f IPVGO: Improve favor gain from wins to balance around the rep value of favor (#2131) 2025-05-17 02:36:58 -07:00
G4mingJon4s
2b8c008be1 NETSCRIPT: Moved formatting functions to their own interface (#1635) 2025-05-14 09:13:35 -07:00
gmcew
be2b5fac10 CONTRACT: Addition of new "Total Number of Primes" contract (#2116) 2025-05-12 00:40:55 -07:00
catloversg
b1b560b6c6 BUGFIX: BitVerse does not show all BN multipliers in some cases (#2045) 2025-05-10 22:40:28 -07:00
catloversg
4044b4a223 MISC: Use FactionName enum in relevant APIs (#2101) 2025-05-10 22:13:22 -07:00
catloversg
b53180ff1e MISC: Remove APIs that were deprecated a long time ago (#2088) 2025-05-10 22:10:48 -07:00
catloversg
849bcb2601 MISC: Add formulas API for calculating share power and move UI of sharing RAM (#2126) 2025-05-10 19:14:15 -07:00
catloversg
22ee7fca2c MISC: Change how enums are exposed in NetscriptDefinitions.d.ts (#1998) 2025-05-10 02:28:48 -07:00
catloversg
31e6e4d74b MISC: Enforce stricter param check on ns.getBitNodeMultipliers and ns.hacknet.spendHashes (#2085) 2025-04-14 16:20:36 -07:00
catloversg
a9900072da MISC: Remove support for running NS1 scripts (#2083) 2025-04-11 13:41:48 -07:00
Naga
0aaa28054a NETSCRIPT: Add functionality and support to fully allow Players to use IP addresses in place of hostnames (#1990) 2025-04-10 18:41:37 -07:00
Shy
d28a06e764 API: dynamic imports with ns.dynamicImport() (#2036) 2025-04-09 18:49:01 -07:00
catloversg
b2093a2419 MISC: Clarify conditions of activating Gang, Bladeburner, Stanek's Gift (#2053) 2025-03-31 13:37:35 -07:00
Michael Ficocelli
f6e7ef082c IPVGO: Add support for highlighting nodes and adding small text (#1996) 2025-03-31 13:36:30 -07:00
catloversg
5dc80587a7 DOCUMENTATION: Clarify AutocompleteData.server and ns.formatNumber (#2062) 2025-03-31 13:24:48 -07:00
Naga
1539c428bc NETSCRIPT: Add the 'cat' method to 'ns.singularity' (#1999) 2025-03-23 00:04:26 -07:00
Michael Ficocelli
70a083b34b IPVGO: Improve type checking and documentation (#2028) 2025-03-22 23:59:46 -07:00
Michael Ficocelli
17ffabdfa5 IPVGO: Add new analysis method to set a custom testing board state (#2029) 2025-03-22 23:52:26 -07:00
catloversg
dcce966fb1 DOCUMENTATION: Update TSDoc of ns.purchaseServer and CodingContract types (#2023) 2025-03-12 15:46:38 -07:00
catloversg
8fe0ea1615 MISC: Warn player that they cannot accept Stanek's Gift after joining Bladeburner with SF7.3 (#2005) 2025-03-07 15:14:15 -08:00
catloversg
ff724f3f06 DOCUMENTATION: Clarify values returned in range 0-1 (#1986) 2025-03-01 09:08:42 -08:00
catloversg
f54f7b932c DOCUMENTATION: Clarify value of gang territory (#1978)
* DOCUMENTATION: Clarify decimal form of gang territory

* Update based on feedback
2025-02-28 12:45:36 -08:00
catloversg
fed3cf1af2 DOCUMENTATION: Clarify ns.singularity.quitJob (#1979) 2025-02-27 10:03:46 -08:00
catloversg
05f0ba1ac6 DOCUMENTATION: Clarify ns.singularity.softReset (#1980) 2025-02-27 10:02:04 -08:00
Adam Andreatta
a25ab3dd39 API: Added external api which returns gainExperience (#1955) 2025-02-20 15:57:06 -08:00
catloversg
3bb56efb34 DOCUMENTATION: Clarify ns.scan (#1965) 2025-02-16 18:27:10 -08:00
catloversg
adc39ad825 BUGFIX: ns.corporation.bribe can bribe faction that player is not member of (#1966) 2025-02-16 01:05:22 -08:00
catloversg
2dfaca3db4 DOCUMENTATION: Clarify ns.nuke (#1969) 2025-02-16 00:58:00 -08:00
LJ
30075f3c07 API: Add donationForRep() to Formulas (#1141) 2025-02-11 22:05:32 -08:00
Michael Ficocelli
c8d2c9f769 IPVGO: Support scripts playing against each other as each color on "No AI" boards (#1917)
This is a big change with a *lot* of moving parts.

The largest part of it is enabling scripts to `playAsWhite` as a parameter to many Go functions. In the implementation, this involved a significant rewrite of `opponentNextTurn` promise handling.

A number of other changes and bugfixes are included:
* Fixes the issue where handicap stones are added on game load.
* Better typing for error callbacks.
* Throw errors instead of deadlocking on bad cheat usage.
* Return always-resolved gameOver promise after game end
* Added a new `resetStats` api function.

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-02-02 20:47:16 -08:00
catloversg
d6ee16cdb3 API: Move tail-related APIs to another namespace (#1935)
* API: Move tail-related APIs to another namespace

* Add missing RAM cost config

* Remove setTailFontSize from NS namespace
2025-02-01 21:43:56 -08:00
catloversg
956e3875e9 API: Add getSaveData API (#1390) 2025-01-30 10:36:59 -08:00
catloversg
2965f51879 API: Add a way to get the list of all factions (#1457) 2025-01-28 10:40:11 -08:00
G4mingJon4s
ffae0045a4 CODINGCONTRACT: Add support for other answer formats (#1892) 2025-01-26 09:35:04 -08:00
catloversg
b161142796 API: Add ns.renderTail (#1815) 2025-01-25 09:14:45 -08:00
catloversg
1a54be184e DOCUMENTATION: Make nuke and port opening functions return boolean (#1923) 2025-01-24 08:48:50 -08:00
Mathekatze
7b009991e5 DOCUMENTATION: improve documentation for atExit() (#1916) 2025-01-19 12:49:25 -08:00
catloversg
0f9144a059 CODEBASE: Validate theme, editor theme, and styles (#1789) 2025-01-08 19:20:05 -08:00
G4mingJon4s
c622291eff NETSCRIPT: Added changing tail font size through scripts (#1852) 2025-01-04 16:51:13 -08:00
catloversg
93c07ac107 DOCUMENTATION: Clarify returned value of ns.bladeburner.getActionCountRemaining (#1873) 2025-01-04 16:33:45 -08:00
catloversg
bcbaf3e224 DOCUMENTATION: Clarify type of returned value of ns.gang.getOtherGangInformation (#1882) 2025-01-04 16:21:17 -08:00
Naga
ef87174e3f DOCUMENTATION: Clarify the return descriptions of 'getPurchasedServerCost' and 'getPurchasedServerUpgradeCost' to include the returns for invalid inputs. (#1884) 2025-01-04 16:20:20 -08:00
catloversg
bc0dc15536 DOCUMENTATION: Fix typo of CrimeStats (#1850) 2024-12-18 03:32:21 -08:00
catloversg
c2fe6108e1 DOCUMENTATION: Clarify getGraftableAugmentations API (#1858) 2024-12-18 03:23:56 -08:00
catloversg
bb7a1fbb22 MISC: Add raw command string to autocomplete data (#1846) 2024-12-18 03:16:38 -08:00