Commit Graph

6641 Commits

Author SHA1 Message Date
Michael Ficocelli 47b34c8563 BUGFIX: Ensure that IPvGO promises are initialized correctly on a new save and on fluming (#2032) 2025-03-17 15:55:32 -07:00
catloversg e07339d016 BUGFIX: Game crashes when loading new save in edge cases (#2026) 2025-03-14 15:00:06 -07:00
wasniahC 76f614761d updated "getCornerMove" second "if" to correct coordinates for top left corner move (#2027) 2025-03-14 14:56:20 -07:00
catloversg ae99055d5a REFACTOR: SF description in Augmentations tab and BitVerse may not be the same (#2013) 2025-03-12 18:44:37 -07:00
Naga b0165d5c2c NETSCRIPT: Store the value of Player.money in the returned object's moneyAvailable property when ns.getServer is called with "home" (#2024) 2025-03-12 18:17:57 -07:00
catloversg f5b12da0fe UI: Increase width of each job in "Job" tab (#2017) 2025-03-12 16:08:14 -07:00
catloversg 907b0a40ba CODEBASE: Fix React warnings in BitVerse (#2020) 2025-03-12 15:55:38 -07:00
catloversg dcce966fb1 DOCUMENTATION: Update TSDoc of ns.purchaseServer and CodingContract types (#2023) 2025-03-12 15:46:38 -07:00
G4mingJon4s 6666a176ee MISC: Add support for getting the save file through the RFA (#2004) 2025-03-10 01:32:47 -07:00
David Walker db74fae2b7 Fix first-time Go initialization (#2012)
Fixes #2010
It was intended that all the various codepaths call `resetAI()` to
initialize the promise handling. However, when there is no savegame at
all, `loadGo()` is not even called, so this is skipped, and the promises
remain not-fully-initialized. This puts the initialization as part of
the static construction, guaranteeing a fix.

Tested all 3 scenarios in #2010, as well as two more:
* Delete save, immediately "Find new subnet".
* Play a move, save game, ensure IPvGO works on reload.
* Play a move, save game *before the AI moves*, ensure that the AI plays
  different random moves on reload.
2025-03-09 16:16:24 -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
Michael Ficocelli a611c842e2 IPVGO: correctly initialize board from save when there are no prior moves (#1995) 2025-03-06 11:30:12 -08:00
Snarling 6530b43886 Initial changes for 3.0 dev cycle (#1994)
Update constants.ts
Update version numbers in package jsons
2025-03-05 05:46:02 -05:00
Snarling 02c4f9c68d 2.8 Release Prep (#1993)
Update constants.ts
Update version in package.jsons
Move changelog to documented changelog
2025-03-05 03:18:53 -05:00
catloversg 23ad55554e UI: Add "Run" action to run current script in editor (#1987) 2025-03-04 02:43:31 -08:00
David Walker 8cdafdc7b9 CODEBASE: Refactor duplicate code in updateSkillLevels (#1988) 2025-03-04 01:45:06 -08:00
David Walker f16b6b92b8 CODEBASE: Version 2.8 stuff (#1989)
Change dev version from 2.7.1 to 2.8.0

Also adjust the save data migration code for the latest check to use "<"
instead of "<=" to agree with the style of everything else.
(I noticed this due to investistigating bumping the version, but that
happens as part of the release commit so it shouldn't be done yet.)
2025-03-01 15:25:22 -08:00
muesli4brekkies f881bd1d9a DOCS: Add docs for autocomplete (#1981) 2025-03-01 09:10:35 -08:00
catloversg ff724f3f06 DOCUMENTATION: Clarify values returned in range 0-1 (#1986) 2025-03-01 09:08:42 -08:00
catloversg 4ef597bd37 BUGFIX: Some calculations return NaN due to Player.playtimeSinceLastAug being 0 in edge cases (#1985) 2025-03-01 09:06:58 -08:00
catloversg c0e01f304d CODEBASE: Refactor KeyBindingPage (#1984) 2025-02-28 12:56:00 -08:00
catloversg 91b68db1fe BUGFIX: Multiple problems with Job tab (#1976) 2025-02-28 12:52:08 -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 2a544bbc15 MISC: Update changelog (#1983) 2025-02-28 12:43:30 -08:00
catloversg 8ed83f3d37 MISC: Add key binding feature (#1830) 2025-02-27 22:59:12 -08:00
catloversg 5f29c5b043 CODEBASE: Update webpack and katex (#1975) 2025-02-27 10:43:33 -08:00
Michael Ficocelli 1982e7195b UI: Add disambiguation to the confusing "1s / ls" tutorial step (#1972)
* UI: Add disambiguation to the confusing "1s / ls" tutorial step, and a general "did you mean" to the terminal

* UI: Add disambiguation to the confusing "1s / ls" tutorial step, and a general "did you mean" to the terminal

* Prevent duplicate suggestions

* Update src/Terminal/Terminal.ts

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

* Prevent duplicate suggestions

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-02-27 10:34:16 -08:00
catloversg 6461d5f247 UI: Improve performance of April Fools Easter egg (#1977) 2025-02-27 10:14:17 -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 3eadb0d18c BUGFIX: JetBrains Mono font shows wrong glyphs (#1971) 2025-02-17 13:18:10 -08:00
catloversg 3bb56efb34 DOCUMENTATION: Clarify ns.scan (#1965) 2025-02-16 18:27:10 -08:00
catloversg 63d7061fd8 UI: Warn player if they are editing and saving files on non-home servers (#1968) 2025-02-16 18:26:45 -08:00
catloversg 13990fbe4c MISC: Do not round return value of getBonusTime APIs (#1961) 2025-02-16 01:42:11 -08:00
catloversg 23bc4e8804 MISC: Show user-friendly error message when there is syntax error in scripts (#1963) 2025-02-16 01:27:26 -08:00
catloversg 0a4598a9a0 UI: Show Save ID in Options tab (#1964) 2025-02-16 01:24:46 -08:00
LJ 42a7941db7 Fix invalid filenames upon loading save (#1147) 2025-02-16 01:07:40 -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 26c5bb40e3 MISC: Clarify advanced options (#1962) 2025-02-16 01:03:55 -08:00
catloversg 31591da024 UI: Show exact reasons why player cannot bribe factions (#1967) 2025-02-16 01:02:50 -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
G4mingJon4s b61e93b246 CODINGCONTRACT: Move internals to a separate folder (#1932) 2025-02-11 22:04:23 -08:00
Femboy Fireball 5bc9068745 ACHIEVEMENTS: Support achievements with no matching Steam achievement (#1953) 2025-02-08 19:19:36 -08:00
catloversg c99fa448fa BUGFIX: Cursor position in editor is moved undesirably in edge cases (#1952) 2025-02-07 15:19:54 -08:00
catloversg 48bced3484 MISC: Update changelog (#1948) 2025-02-07 15:18:38 -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 de6b202341 CODEBASE: Refactor Player.applyForJob (#1947) 2025-02-02 09:29:18 -08:00
catloversg 72d2528e9a UI: Show all jobs instead of only one in Job tab (#1945) 2025-02-02 09:26:39 -08:00