Commit Graph

57 Commits

Author SHA1 Message Date
phyzical b3a52c6224 one minor compile issue 2022-03-30 08:36:27 +08:00
Olivier Gagnon bbbaa89f74 unknown-ify singularity API 2022-03-29 20:05:40 -04:00
Olivier Gagnon 725c8234c9 unknown-ify the singularity API. 2022-03-29 19:49:37 -04:00
Olivier Gagnon 48e73a9131 allbuild commit /usr/bin/git 2022-03-29 18:00:57 -04:00
Olivier Gagnon ac34829649 pre-1.6 2022-03-29 15:30:22 -04:00
hydroflame fb1bce579f Merge pull request #3170 from nickofolas/feature/grafting
[Feature] Grafting
2022-03-29 13:25:41 -04:00
DavidGrinberg c6a2664296 purchaseTor returns true if player already has tor
Change `purchaseTor` to return `true` if the player already has purchased Tor. Previously it would return `false`

Changing this to true puts the behavior inline with the already existing behavior of `purchaseProgram`, which returns true if you have already purchased the program. Additionally this lets us call `purcahseTor` with the same logic that we use to call `purchaseProgram`
2022-03-25 13:06:12 -04:00
nickofolas 1c696b5518 Update purchaseAugmentation rules 2022-03-23 12:04:49 -05:00
Olivier Gagnon 1fae48e1ce lint 2022-03-22 10:36:56 -04:00
Olivier Gagnon 699ae2e967 with SLEEVE_8, fix workForFaction 2022-03-20 23:27:53 -04:00
Olivier Gagnon fb7c65957d Added dark web functions to ns api 2022-03-20 22:49:46 -04:00
phyzical 44ea479043 update constants
* added OperationNames
* added faction names
* used citynames where appropriate
2022-03-19 16:09:59 +08:00
Risenafis 04cfdc76ae Fix favor threshold for donateToFaction 2022-02-14 23:25:30 +09:00
Cyn cdeae4ef68 Make travelToCity throw on invalid city name and return false on no money 2022-01-23 22:08:07 -05:00
hydroflame ae83eeacb7 Merge pull request #2689 from nickofolas/fix/singularity-focus
Fix Singularity focus arg issues
2022-01-18 17:00:12 -05:00
Olivier Gagnon 05cbc25a8f 1.4 2022-01-18 14:03:24 -05:00
nickofolas 2d38ce8f72 Fix focus arg for sing functions 2022-01-18 08:49:06 -06:00
nickofolas 89fd54698b Fix ns.setFocus 2022-01-18 08:20:58 -06:00
hydroflame 27a54217eb Merge pull request #2653 from nickofolas/fix/refactor-loops
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
nickofolas ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
hydroflame 7a84fa4d29 Merge pull request #2591 from nickofolas/improvement/singularity-focus-args
Add focus arg to Singularity functions
2022-01-15 18:25:56 -05:00
hydroflame 37401f0917 Merge pull request #2580 from deathly809/bug/cancel_should_clear_focus
Ensure that we leave focus when we call stopAction or cancel working
2022-01-15 18:15:50 -05:00
hydroflame 03f71bd5f4 Merge pull request #2485 from Ornedan/netscriptdelay-check-stop
Refactor netscriptDelay and script kill interaction
2022-01-15 17:26:23 -05:00
nickofolas 415f922a37 Add focus arg to Singularity functions 2022-01-12 12:03:49 -06:00
Jeffrey A. Robinson 664e99e3de Ensure that we leave focus when we call stopAction or cancel working 2022-01-11 21:08:15 -08:00
Olivier Gagnon d8a5f5b03c many fixes 2022-01-09 15:24:32 -05:00
Heikki Aitakangas c6ff982b1d Remove stopFlag checks made redundant by the netscriptDelay change 2022-01-09 02:42:36 +02:00
Russell Stringer e8d4265c96 Fix #2446 - ns.purchaseAugment() can no longer buy NF from gang
Added the checks from AugmentationPage.tsx to the singularity
purchaseAugment() function to disallow buying NF from player-run
gang and disallow TRP from player-run gang outside BN2
2022-01-07 17:02:44 -05:00
hydroflame f798115259 Merge branch 'dev' into nan-donation 2022-01-05 10:15:40 -05:00
TheMas3212 860e77f109 Add check to see if player is in gang before getting Gang Faction 2022-01-05 21:41:04 +11:00
TheMas3212 538a440b7e Fixes #1860 donate to gang faction possible via singularity
also fixes bug i found while testing this where its possible to donate
to a faction you arent a member of
2022-01-05 21:36:09 +11:00
Olivier Gagnon 925bed4430 fix scp 2022-01-04 22:25:41 -05:00
Woody Lam 3ca36fca95 Fix #2275 accepts NaN donation bug 2022-01-05 02:05:56 +00:00
Olivier Gagnon c59a267437 change sf4 2022-01-04 19:09:34 -05:00
Martin Fournier 6b59a58ea3 Fix linter errors 2021-12-22 04:44:07 -05:00
theit8514 d873f7279b Add focus parameter to workForCompany/workForFaction
Defaults to true to keep previous behavior.
2021-12-21 08:13:18 -05:00
Olivier Gagnon d7f9cb8cec make setFocus a little more robust 2021-12-16 12:02:46 -05:00
theit8514 d59601f848 Add return value and code style cleanup 2021-12-15 20:48:19 -05:00
theit8514 cd4c98d942 Only change to terminal when focused 2021-12-15 20:44:08 -05:00
theit8514 c50c92f9b5 Update SF requirement to match documentation 2021-12-15 20:33:48 -05:00
theit8514 2726420709 Add errors and only change page when focus changes 2021-12-15 20:33:48 -05:00
theit8514 07d449afc2 Ensure focus does not change between calls to work 2021-12-15 20:33:48 -05:00
theit8514 ad57f3dc73 Work functions do not take focus
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Olivier Gagnon 647ccd6a7b BN13 2021-12-03 16:09:13 -05:00
Olivier Gagnon 49a545f00e many bugfix 2021-12-03 14:12:32 -05:00
theit8514 cb1aa452a1 Move getOwnedSourceFiles to NetscriptFunctions 2021-12-02 12:17:33 -05:00
Alain Bryden ca2948b854 Bad copy pasta from isFocused -> setFocus 2021-11-26 23:02:02 -04:00
Olivier Gagnon c05518e162 workerscript log takes a function now, hopefully this will increase performance. 2021-11-26 18:30:58 -05:00
Olivier Gagnon f0a004e75b Fix a bunch of scripting related stuff. 2021-11-25 11:47:31 -05:00
Olivier Gagnon ded230eaaf fix int exp gain in sing func 2021-11-14 08:36:40 -05:00