Commit Graph

329 Commits

Author SHA1 Message Date
Snarling
88d51e9a7e
MISC: A bunch of enums stuff. (#212)
* Some game enums moved to utils/enums. Others can eventually be moved there as well.
* findEnumMember function for performing fuzzy matching of player input with enum members, without needing separate fuzzy functions for every enum.
* Also used findEnumMember for safely loading save games (allows case changes in enum values)
* Changed capitalization on some enums.
* BREAKING: removed classGains work formulas function
* Split ClassType enum into UniversityClassType and GymType.
* Added universityGains and gymGains work formulas functions
* Provided the new split enums to the player on ns.enums.
2022-11-20 08:37:11 -05:00
quacksouls
55b2cbb549
UI: cat: proper line breaks when showing .js, .script, or .txt files (#192)
Currently, the HTML line break sequence `<br /><br />` is hardcoded into the dialog box message when showing the content of these file types: ".js", ".script", and ".txt".  By default, the function `dialogBoxCreate()` currently assumes that its first parameter is not HTML, but a text string, so whatever is in the string will appear in the dialog box.  Use the newline character instead for line break.
2022-11-04 07:23:33 -04:00
Snarling
239834dba6
Connect to owned servers from anywhere (#159)
* purchasedByPlayer allows connect-from-anywhere as if the server was backdoored.
* Also added optional backdoorInstalled variable to type for BaseServer. This has no runtime effect, but it allows accessing that variable without TS needing us to verify whether it's instanceof Server first.
2022-10-25 17:48:46 -04:00
Olivier Gagnon
af1a1ac58d Rename lots of reference from old to new repo 2022-10-20 03:56:59 +11:00
hydroflame
d0fe28f8fb
Merge pull request #4220 from cptpiepmatz/fix-nano-not-opening-root-script-if-in-dir
UI: Fixed `nano` not correctly opening a script in root of a server if `cd`'d into a directory
2022-10-12 23:58:59 -04:00
Olivier Gagnon
cbb7f58231 Make the main player object an alias, makes it easier to import 2022-10-09 18:42:14 -04:00
Tim Hesse
7121b456f4 fix: nano does not open root script if cd'd into a dir 2022-10-09 14:49:18 +02:00
Olivier Gagnon
5d4b72e1d1 Added some purchased server functions 2022-10-09 02:32:13 -04:00
Olivier Gagnon
f6f023eeb4 Fix tons of typos 2022-10-09 01:25:31 -04:00
Snarling
068533cd2f format, lint, more enums, revert fn rename 2022-10-05 14:52:48 -04:00
Snarling
aa80cf6451 See description
Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings.
Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
2022-10-04 06:40:10 -04:00
Snarling
50f14b4f58 Commit1 2022-10-03 12:12:16 -04:00
Snarling
dcd9023b93 Remove more unused interfaces 2022-09-27 15:35:41 -04:00
Snarling
21a2d49de7 Finish removing player passing 2022-09-27 15:35:41 -04:00
Snarling
91a69d7d8f format & lint 2022-09-27 15:35:40 -04:00
Snarling
83d357e758 commit1 2022-09-27 15:35:40 -04:00
Snarling
83c62bbc63 silent fail for tabcompletion compile error 2022-09-27 15:35:39 -04:00
Snarling
572c68738f Unify error handling 2022-09-27 15:34:47 -04:00
Mughur
d99d37f191 Bunch of corporation fixes 2022-09-23 13:13:33 +03:00
G4mingJon4s
22a35af6b6 Added hover style change for better recognition 2022-09-14 15:59:55 +02:00
G4mingJon4s
c29b4cfda9 Fixes #2795, adding better underlines for links 2022-09-13 20:09:58 +02:00
Olivier Gagnon
759de85559 Fix unique key problem with ascii elements 2022-08-29 16:59:38 -04:00
Snarling
6f36e9cdc5 Fix/Unify NS1 wrapper 2022-08-27 20:56:12 -04:00
hydroflame
d553a1d2f4
Merge pull request #3981 from Snarling/B&AFix
FILES: FIX #3979 Allow characters & and ' in filenames
2022-08-23 12:25:55 -03:00
Snarling
823cdf70ca Fix compile race conditions 2022-08-19 18:21:31 -04:00
Snarling
9e2e459cc2 Allow & and ' in filenames 2022-08-17 08:14:15 -04:00
Snarling
931ea730a5 Move entire ns object to top-level 2022-08-09 18:09:26 -04:00
Olivier Gagnon
326d9fd7ef Move player skills and exp to their struct 2022-07-26 23:54:17 -04:00
hydroflame
9e25833796
Merge pull request #3606 from RevanProdigalKnight/feature/enhanced-terminal-argument-parsing
MISC: #3596 Enhanced terminal command parsing
2022-07-21 18:36:54 -04:00
Olivier Gagnon
2d522ea1e6 allbuild commit e9254edf 2022-07-21 15:09:55 -04:00
hydroflame
d2c92c4116
Merge pull request #3881 from evil-tim/ctrl-c-bash-hotkey
UI: Fix #3854 ctrl+c does not clear terminal input
2022-07-21 01:27:03 -04:00
Olivier Gagnon
c9b9c2c55b merge dev 2022-07-20 12:16:42 -04:00
Olivier Gagnon
49f6fda1e4 remove last colon any for now 2022-07-20 01:48:54 -04:00
Olivier Gagnon
71d8e35bb5 more anys 2022-07-19 23:26:21 -04:00
Olivier Gagnon
ce2ebf576e fix an any 2022-07-19 22:44:45 -04:00
Olivier Gagnon
810f3a87b9 rm more anys 2022-07-19 21:53:43 -04:00
Olivier Gagnon
8773b8e18d fix any in determineAllPossibilitesForTabCompletions 2022-07-18 03:19:10 -04:00
hydroflame
f339e49aa7
Merge pull request #3787 from Undeemiss/bladeburner-multi-upgrade
BLADEBURNER: Added bulk upgrades to upgradeSkill NS API
2022-07-15 23:40:55 -04:00
Olivier Gagnon
5b8eea66d4 rm some any 2022-07-15 23:34:27 -04:00
Olivier Gagnon
4bee746576 rm any 2022-07-15 01:51:30 -04:00
Olivier Gagnon
ad098e1f05 refactor ANSII colors into it's own component 2022-07-14 16:25:20 -04:00
James Villegas
6d8a3e192b Update ctrl+c hotkey to print current text to terminal without executing it to mimic real terminal behavior 2022-07-07 08:11:34 +08:00
James Villegas
6c026e6d5c Ignore ctrl+c bash hotkey if user has selected text to allow copying 2022-07-03 12:18:47 +08:00
James Villegas
9efb209ea3 Implement ctrl+c bash hotkey to clear current input 2022-07-03 11:49:45 +08:00
Douwe Schulte
934a72b94c
Fix Nitpick: scan-analyze description displays with an html tag when doing help #3843 2022-06-22 14:06:05 +02:00
Undeemiss
f8f3c099e0 Formatted/linted (There are some errors, but they aren't mine afaik) 2022-05-28 21:35:20 -05:00
Olivier Gagnon
76ccb0ba36 lint 2022-05-25 11:43:43 -04:00
Olivier Gagnon
bd6705419c lint 2022-05-25 11:15:34 -04:00
Olivier Gagnon
63b0b22f92 Fix tor router from anywhere 2022-05-25 11:14:06 -04:00
phyzical
bc5377ba74
fix tests
bugfix/fix-tests

File List:
src/Terminal/determineAllPossibilitiesForTabCompletion.ts
test/jest/Terminal/Directory.test.js
2022-05-25 19:03:58 +08:00