Commit Graph

8513 Commits

Author SHA1 Message Date
Michael Ficocelli
ecc2d92edb
IPVGO: uncheck the 'show prior move' feature when a new game is started (#1728) 2024-10-27 17:25:04 -07:00
catloversg
810cfc8b21
MISC: Validate hostname and port of RFA (#1721) 2024-10-23 18:12:04 -07:00
catloversg
f49d3b32a5
DOCUMENTATION: Clarify cyclesWorked of Task (#1725) 2024-10-23 16:18:18 -07:00
catloversg
9a0400d3df
API: Improve built-in print APIs when printing objects containing Map or Set (#1723) 2024-10-23 16:01:58 -07:00
catloversg
d0022aac2b
DEVMENU: Reset other gangs when leaving gang (#1715) 2024-10-23 01:55:22 -07:00
catloversg
b72c03acf0
DOCUMENTATION: Clarify "completion" property of GraftingTask (#1713) 2024-10-21 21:22:17 -07:00
catloversg
3ce2ae5fd7
API: Change type of skill name parameter of skillMaxUpgradeCount API (#1712) 2024-10-21 20:39:56 -07:00
catloversg
c5e50ba327
MISC: Improve discoverability of Corporation documentation (#1711) 2024-10-21 20:38:56 -07:00
catloversg
867f79c5ab
API: Improve built-in print APIs when printing Promise objects (#1710) 2024-10-21 20:37:40 -07:00
catloversg
bc51733fbe
MISC: Improve exception alert (#1709) 2024-10-21 20:36:29 -07:00
Denis Čahuk
8d1cfb2d97
BLADEBURNER: Test cover action completion (#1695) 2024-10-21 20:33:56 -07:00
catloversg
6d8084f40e
MISC: Improve tutorial, documentation and discoverability of NS API documentation (#1697) 2024-10-20 20:37:42 -07:00
catloversg
a3e1b297ca
MISC: Expose more information of HiveMind augmentation (#1701) 2024-10-20 20:36:42 -07:00
catloversg
97489629d9
CLI: Add warning when installing backdoor on backdoored server (#1705) 2024-10-20 20:36:02 -07:00
Denis Čahuk
2e6aa8989c
BLADEBURNER: UI now shows tooltips on action success chance to indicate which stat it scales with (#1699) 2024-10-20 20:35:03 -07:00
catloversg
cc4c6d150b
UI: Remove unnecessary newlines when augmentation does not have stats (#1698) 2024-10-20 01:09:30 -07:00
David Walker
424ae160ba
NETSCRIPT: Fix dynamicRamUsage returned by getRunningScript() (#1704)
Fixes #1700
2024-10-20 00:52:57 -07:00
Pimvgd
24ab173d6c
UI: Fix typo in field work description (#1691) 2024-10-09 21:18:57 -07:00
Alain Bryden
cd99006c4e
NETSCRIPT: Update ScriptDeath to extend Error (#1685)
* Update ScriptDeath to extend Error

- Rename the "name" property to "hostname" so that it doesn't clash with inherited Error.name property.
- Extend Error, this way if a user ends up catching it they can:
  - Test the type of error caught (name) and ignore it if desired
  - Get a stack trace and find out where they went wrong
  - Not require special case error printing logic for catching things that are neither strings, nor Error objects.

It is possible (but unlikely) that this could make killing scripts slower in some circumstances.
2024-10-09 21:18:06 -07:00
catloversg
cace34d759
BUGFIX: Wrong calculation in team casualties of Bladeburner action (#1672) 2024-10-07 23:55:11 -07:00
catloversg
2fa8dd41ac
BUGFIX: Missing tooltip when doing faction work (#1679) 2024-10-07 23:51:02 -07:00
egg362
dc328b14df
MISC: Fixes to typos in augmentation descriptions (#1680) 2024-10-07 23:28:21 -07:00
catloversg
b829534067
BUGFIX: Scripts are killed too late when prestiging (#1683)
* Scripts are killed too late when prestiging
* Kill all scripts earlier
2024-10-07 23:20:58 -07:00
catloversg
e644c0e91e
API: Make condition of donateToFaction consistent (#1686) 2024-10-07 23:14:09 -07:00
catloversg
3ef3821a08
DOCUMENTATION: Clarify condition of ns.corporation.bribe (#1687) 2024-10-07 23:12:35 -07:00
Caldwell
ccd9118b93
MISC: add stopFlag check before running main (#1689)
It's possible that before the script starts runn, the stopFlag is set.
2024-10-07 22:57:35 -07:00
catloversg
4d60c833cc
MISC: Remove mention of Hacking Mission (#1684) 2024-10-06 22:58:24 -07:00
Ben Rog-Wilhelm
dad34a09dd
CONTRACT: Fix incorrect description of Hamming Codes in Integer to Encoded Binary. (#1677) 2024-10-04 03:51:31 -07:00
Shy
7c3d71d21a
MISC: remove google analytics config (#1676) 2024-10-03 16:12:51 -07:00
David Walker
bedd398789
CCT: Add new Square Root coding contract (#1656)
To make this simpler, there is now a general-purpose util for getting
random bigints. I don't know if anyone else will use it, but it makes
this code simpler.

I also rejiggered the type-checking on contracts a little more, because
the previous refactor didn't quite catch all the mistakes that could be
made.
2024-09-30 20:18:58 -07:00
catloversg
32e00aff7a
BUGFIX: Wrong parameter requirement of ns.bladeburner.setTeamSize (#1673) 2024-09-30 20:18:25 -07:00
lucebac
7513fec507
EDITOR: import resolution in code editor (#1661)
* FIX: import resolution in code editor
Since I did not find any callback where we could just load imports
on-demand, I opted for just loading all scripts from the server where
a given script was opened from command line. This does not include
scripts which are already open, only files which are not yet opened
will be loaded.
2024-09-26 11:36:42 -07:00
Yichi Zhang
2b4410739d
HACKNET: Remove hacknet servers from ServerType.Foreign (#1665) 2024-09-25 16:19:25 -07:00
Denis Čahuk
6c81e1ac67
BLADEBURNER: test cover console commands (#1664) 2024-09-25 16:06:46 -07:00
Denis Čahuk
b86044bcc1
BLADEBURNER: Move bladeburner team losses to Casualties (#1654) 2024-09-23 17:03:01 -07:00
Marvin Sautter
cf2d9b8335
Update babel-plugin-transform-barrels to the official version 1.0.17 for improved stability (#1663) 2024-09-22 22:27:51 -07:00
catloversg
c2727b5127
BUGFIX: Change generation rate of CCTs (#1657) 2024-09-22 21:35:34 -07:00
catloversg
53c8296baf
BUGFIX: Follow-up of #1658 (Wrong team size in Bladeburner) (#1662) 2024-09-22 21:33:01 -07:00
catloversg
ade92ed297
BUGFIX: Wrong size of table cell in Import Save Comparison UI (#1659) 2024-09-20 21:02:57 -07:00
catloversg
70e16bf349
BUGFIX: Wrong team size when all team members die in Bladeburner's action (#1658) 2024-09-20 02:31:15 -07:00
David Walker
21ffa5322f
MISC: Refactor coding contracts for type safety (#1653)
* MISC: Refactor coding contracts for type safety

This refactor does three things without any behavior changes:
* Adds type safety by introducing generic type parameters to the coding
  contract definitions, so they can use concrete types instead of
  "unknown". This also eliminates a bunch of boilerplate casts.
* Removes the unneeded CodingContractType class. We can use the metadata
  type directly.
* Introduces a new hidden state to coding contracts. Instead of
  generating and storing the data (which is what is shown to the user as
  the problem's input), the state is stored instead. This allows
  problems to (for instance) generate the answer up-front, and check the
  solution directly against the answer, instead of needing to embed a
  solver in the problem (which can then easily be ripped from the source
  code).

For compatibility, state == data by default. I plan to make use of this
feature in a followup, but it is unused currently.
2024-09-15 23:53:10 -07:00
Denis Čahuk
cde5e3f6ae
MISC: Refactor BLADEBURNER Identifier Lookup (#1646) 2024-09-14 17:39:18 -07:00
David Walker
f39402e8be
BLADE: Use "grow" semantics for population estimate (#1624)
This changes the way percantage-based population estimates work, so that
they have a similar mechanism to grow(). This allows natural recovery
from 0, and also falling to 0 in finite steps.

This also changes the formula for reducing estimates to est / (1 + p)
instead of est * (1 - p). The latter becomes overpowered at large p,
we've seen this formula issue elsewhere (such as BN modifiers).
2024-09-13 23:41:10 -07:00
Marvin Sautter
3d7a6f70d8
JEST: Test faster by removing barrels (#1645) 2024-09-09 18:36:00 -07:00
Marvin Sautter
dd59612121
JEST: Decrease frequency of random Bladeburner Tests by ~59% for improved performance (#1648) 2024-09-09 18:33:37 -07:00
Michael Ficocelli
2a5b0ca4e9
IPVGO: Prevent issues caused by resetting the board while the go AI is in flight (#1608) 2024-09-07 18:33:49 -07:00
catloversg
4f426e1b20
UI: Change description of Documentation button in Script Editor (#1644) 2024-09-07 18:08:16 -07:00
G4mingJon4s
651b17739c
NETSCRIPT: Add ns.self() as a free info function (#1636)
* added utility info

* moved info to running script

* fix for RAM cost

* description changes

Co-authored-by: David Walker <d0sboots@gmail.com>

* fixed wrong formatting

* Added parent to ignored fields

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2024-09-07 17:34:24 -07:00
catloversg
0ce5cd35dc
DOCUMENTATION: Fix mangled NS API TSDoc (#1643) 2024-09-07 17:29:23 -07:00
nobody0
17e906cd76
Update NetscriptDefinitions.d.ts to match class BitNodeMultipliers (#1642) 2024-08-30 19:31:04 -07:00