Commit Graph

975 Commits

Author SHA1 Message Date
catloversg e5e4e2693f DOCUMENTATION: Clarify getSkillUpgradeCost and fix typo in BaseTask (#1749) 2024-11-03 23:27:59 -08:00
JMack6490 5786d7adcb DOCUMENTATION: Update NetscriptDefinitions.d.ts (#1743)
Added line 5934: using hackAnalyzeThreads on a server you cannot hack returns -1
2024-11-03 22:54:43 -08:00
catloversg c8183e55db BUGFIX: Crash in theme editor modal (#1735) 2024-11-03 22:38:01 -08:00
catloversg f6502dd490 CODEBASE: Fix lint errors 1 (#1732) 2024-11-03 22:35:14 -08:00
ballardrog 0bf378a1b0 IPVGO: Add getCheatCount(). (#1734) 2024-10-27 18:52:23 -07:00
Michael Ficocelli 6df3dcdc82 IPVGO: Add optional board state argument to the go analysis functions (#1716) 2024-10-27 17:31:06 -07:00
catloversg f49d3b32a5 DOCUMENTATION: Clarify cyclesWorked of Task (#1725) 2024-10-23 16:18:18 -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 6d8084f40e MISC: Improve tutorial, documentation and discoverability of NS API documentation (#1697) 2024-10-20 20:37:42 -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
catloversg 4d60c833cc MISC: Remove mention of Hacking Mission (#1684) 2024-10-06 22:58:24 -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
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
Fireball5939 95394b5956 DOCUMENTATION: Improve ns.enableLog() docs to remove a missleading description (#1634)
Changed ns.enableLog documentation to be very similar to ns.disableLog, to remove possible confusion that it only undoes the effects of ns.disableLog
2024-08-26 19:49:44 -07:00
Nicole b4f2a5c641 set static information netscript costs to 0 (#1628) 2024-08-25 10:09:36 -07:00
Nicole 7f5c4e1fe0 API: Reduced RAM cost for ns.getPurchasedServers (#1614) 2024-08-22 00:44:21 -07:00
catloversg 614bec1e13 DOCUMENTATION: Fix wrong description of ns.corporation.createCorporation (#1612) 2024-08-21 17:50:47 -07:00
Nicole 995e367432 DOCS: Correct function signature for hashUpgradeCost (#1603) 2024-08-21 16:47:26 -07:00
catloversg cacecda72f API: Add types for parameters of gym-university-bladeburner API (Fix merging error) (#1596)
* API: Add types for parameters of gym-university-bladeburner API
* Fix merging error
2024-08-17 14:08:55 -07:00
David Walker 79bb0d289a Revert "API: Add types for parameters of gym-university-bladeburner API (#1591)" (#1592)
This reverts commit da8870ed79.
2024-08-16 13:45:54 -07:00
catloversg da8870ed79 API: Add types for parameters of gym-university-bladeburner API (#1591) 2024-08-16 13:29:24 -07:00
catloversg 289f60d8c8 BLADEBURNER: Add API to calculate max upgrade count of skill (#1475) 2024-08-16 13:15:20 -07:00
catloversg a9cb46606c DOCUMENTATION: Update documentation of Corporation API (#1587) 2024-08-16 02:02:23 -07:00
catloversg 1d9e026b6e DOCUMENTATION: Remove wrong information in ns.weaken (#1574)
* DOCUMENTATION: Remove wrong information in ns.weaken

* Update based on the feedback
2024-08-14 22:07:42 -07:00
catloversg 6c2d44b0fe DOCUMENTATION: Fix errors and warnings shown by api-extractor (#1566) 2024-08-13 15:57:15 -07:00
catloversg 5427ae71ca DOCUMENTATION: Fix wrong description of ns.singularity.applyToCompany (#1561) 2024-08-13 15:28:02 -07:00
Yichi Zhang 93eb9b0cef Add buyAmount and importAmount to Corporation Material API (#1553) 2024-08-08 18:13:03 -07:00
catloversg 180dae1d2c DOCUMENTATION: Add GoAnalysis and GoCheat (#1548) 2024-08-05 13:42:19 -07:00
catloversg e5a63b4116 MISC: Fix typos in NetscriptDefinitions.d.ts (#1546) 2024-08-04 13:09:50 -07:00
Tom Prince 935ac610d3 EDITOR: Support cross-language imports in editor. (#1518) 2024-08-01 23:59:31 -07:00
Tom Prince 02538d6953 EDITOR: Enable strict typechecking of typescript. (#1493)
* EDITOR: Tweak typescript language server configuration to match use.

- We allow importing files with `.ts`/`.tsx` extensions.
- We use an file-at-a-time transpiler, so we don't support features
  that require understanding the full type system.
- We use the classic `React.createElement` transform.
2024-07-23 21:28:05 -07:00
catloversg cea0afe1f4 EDITOR: Follow-up of #1470 (Editor outline) (#1498) 2024-07-17 15:18:10 -07:00
catloversg 864613c616 MISC: Support JSX, TS, TSX script files (#1216) 2024-07-14 14:47:10 -07:00
catloversg 783120c886 FEATURE: BitNode options (#1411) 2024-07-14 14:30:30 -07:00
catloversg 2b6ec5cd33 BLADEBURNER: Fix wrong behavior of ns.bladeburner.getSkillUpgradeCost (#1471) 2024-07-07 14:49:23 -07:00
catloversg 8f0ea7c8c4 EDITOR: Work around bug in monaco-editor (#1470) 2024-07-07 14:38:22 -07:00
Tom Prince b277975656 EDITOR: Provide type definitions for React and ReactDOM in in-game editor. (#1458)
* Fix the type declaration of `!!raw-loader!` modules.

Instead of declaring them to export an object with a single key
`default` which is a string, the modules have a default export, which
is a string.

Note, that this doesn't actually change the generated code, just the
types that typescript sees. The code worked before because the only
thing done to the values was to coerce the values to a string, which
turned into a no-op.

* Switch from using `raw-loader` to using a source asset module.

`raw-loader` was deprecated in webpack v5.
2024-07-07 00:08:33 -07:00
catloversg f18d28fc6e DOCUMENTATION: Add link to NS API documentation (#1460) 2024-07-06 12:54:56 -07:00
David Walker 1f2e69631e EDITOR: Use ramOverride() to set compiled script RAM (#1446)
To use this, add a line like "ns.ramOverride(2);" as the first statement
in main(). Not only will it take effect at runtime, but it will now
*also* be parsed at compile time, changing the script's static RAM
limit. Since ns.ramOverride is a 0-cost function, the call to it on
startup then becomes a no-op.

This is an often-requested feature, and allows for scripts to set their
usage without it needing to be explicitly mentioned via args or options
when being launched. This also reduces pressure on the static RAM
analysis to be perfect all the time. (But certain limits, such as
"functions names must be unique across namespaces," remain.)

This also adds a tooltip to the RAM calculation, to make this slightly
discoverable.
2024-07-05 17:32:46 -07:00
catloversg 960fe5aa8b BUGFIX: Wrong success chance in ns.bladeburner.getActionEstimatedSuccessChance (#1450) 2024-07-02 15:07:56 -07:00
catloversg e66a8e319f MISC: Remove debug code (#1448) 2024-07-01 13:16:47 -07:00
catloversg b1c1fc24a9 GRAFTING: Add new api for checking ongoing grafting (#1435) 2024-06-28 19:59:18 -07:00
Sphyxis 61ec7dde80 API: Get Sleeve Success at BB tasks through existing commands (#1428) 2024-06-28 19:49:52 -07:00