Olivier Gagnon
c1401bef27
unknown-ify the gang API.
2022-03-29 20:12:55 -04: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
nickofolas
4f7b44df39
Handle pre-requisite augmentations
2022-03-29 17:09:36 -04:00
Olivier Gagnon
ac34829649
pre-1.6
2022-03-29 15:30:22 -04:00
Olivier Gagnon
443b0b6a89
rename functions in staneks gift
2022-03-29 14:20:40 -04:00
Olivier Gagnon
680081c548
post-grafting changes
2022-03-29 14:09:17 -04:00
hydroflame
fb1bce579f
Merge pull request #3170 from nickofolas/feature/grafting
...
[Feature] Grafting
2022-03-29 13:25:41 -04:00
nickofolas
9f6c827dee
Properly return false from craftAug
2022-03-27 15:33:03 -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
b437adb16c
Simplify API check
2022-03-23 15:48:39 -05:00
nickofolas
3476f0f0eb
Grafting API (no RAM costs yet)
2022-03-23 12:35:15 -05: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
hydroflame
27603e7a66
Merge pull request #2739 from surdaft/bugfix/2734-theme-apply-fails
...
WIP: 2734: Fix regex to enable alpha transparency hex codes (8 digits)
2022-03-20 21:14:50 -04:00
Olivier Gagnon
0fbcc30555
rm unused improt
2022-03-20 14:20:17 -04:00
hydroflame
7e3a5e76c3
Merge pull request #3193 from t-wolfeadam/feature/corp-api-bonustime
...
Implement getBonusTime in Corporation API
2022-03-20 14:13:35 -04:00
hydroflame
629707dc32
Merge pull request #3199 from phyzical/bugfix/fix-sleeve-shock-check
...
purchaseSleeveAug
2022-03-20 14:13:17 -04:00
Heikki Aitakangas
f6a9bd1de7
Fix #3198 : give player code a copy of Division.upgrades instead of the live object
2022-03-20 15:12:21 +02:00
phyzical
7fdbc81594
used the getSleeveStats as it seems to be a miss connection between whats displayed and whats used
...
i.e sleeve.shock of 100 is actually a shock value of 0 for the use
2022-03-20 20:56:33 +08:00
t.wolfeadam
5702cb04b6
Implement getBonusTime in Corporation
...
Used documentation from other 'getBonusTime' methods
2022-03-19 15:22:29 -05:00
Olivier Gagnon
f801dc6d8a
allbuild commit /usr/bin/git
2022-03-19 12:58:18 -04:00
hydroflame
e3bf2d4d42
Merge pull request #3181 from incubusnb/WseAndTix
...
Wse and tix
2022-03-19 11:13:28 -04:00
phyzical
44ea479043
update constants
...
* added OperationNames
* added faction names
* used citynames where appropriate
2022-03-19 16:09:59 +08:00
parax
458f02051f
Added functions to RamCostGenerator.ts
2022-03-18 23:52:13 -06:00
parax
ac38e715aa
Fixed Lint Errors
2022-03-18 22:52:09 -06:00
parax
daadecb4e6
Removed requirement to already have WSE access
2022-03-18 22:33:22 -06:00
parax
e46c67a78a
Added NS functions to buy WSE and TIX
2022-03-18 21:58:18 -06:00
parax
f04ee5a65c
Linted file
2022-03-18 21:37:59 -06:00
parax
8b52e2ef3d
Fixed: purchaseSleeveAug checks shock value
2022-03-18 20:30:54 -06:00
Olivier Gagnon
06b2ec8957
allbuild commit /usr/bin/git
2022-03-18 11:18:08 -04:00
Olivier Gagnon
f17e685744
allbuild commit /usr/bin/git
2022-03-17 17:52:58 -04:00
Olivier Gagnon
8c9603d903
more unknown
2022-03-17 14:00:22 -04:00
Olivier Gagnon
28bd5e1b30
convert more user facing functions to unknown
2022-03-16 19:50:56 -04:00
Olivier Gagnon
989d0709ed
unknown-ify some code
2022-03-16 19:33:45 -04:00
Olivier Gagnon
e93be42e7c
2 new exploits
2022-03-16 14:34:05 -04:00
hydroflame
fdcbc4c508
Merge pull request #3095 from phyzical/bugfix/add-charge-for-stanek-width-height
...
added ram charge for stanek width and height
2022-03-10 21:40:28 -05:00
TheRealMaxion
02f231af2e
Fixes #3098 missing space in Smart Supply
...
Quick fix to stop this from erroring due to the missing space in the upgrade name.
2022-03-09 01:05:00 +01:00
phyzical
ec927fe1f4
added ram charge for stanek width and height
2022-03-08 17:28:45 +08:00
hydroflame
4921cdea24
Merge branch 'dev' into phyzical/Corp-Api-Updates
2022-03-07 17:44:43 -05:00
hydroflame
e10571c0e8
Merge branch 'dev' into bugfix/corp-api-fixes
2022-03-07 17:43:29 -05:00
Thomas B
9636fda082
Made getBonusTime return miliseconds
2022-03-01 12:39:35 -05:00
hydroflame
201e00cdd9
Merge pull request #2894 from manniL/fix/typo
...
fix: typo in corporate error message
2022-03-01 10:45:36 -05:00
hydroflame
e89a9e8f4c
Merge pull request #2897 from Jedimaster4559/patch-1
...
Fixing Broken Error Message
2022-03-01 10:44:40 -05:00
phyzical
887f3f1e49
use text friendly divison name
2022-02-19 16:06:52 +08:00
phyzical
6e21f16160
adjustments per review comments
...
* updated error message
* used correct price for bulk purchasing check
* moved onclose and rerenders outside try blocks
2022-02-19 16:05:55 +08:00
Jonathan Beverley
922aafb115
Expose product and material details in API match UI
2022-02-17 23:49:59 -05:00
phyzical
a2b4a63c2e
merge latest dev
2022-02-15 20:24:24 +08:00
Risenafis
04cfdc76ae
Fix favor threshold for donateToFaction
2022-02-14 23:25:30 +09:00
phyzical
3e36e6a80b
few more adjustments
...
* fixed the export material fix
* changed teh dev menu fund adjuster for more granular control
* added checks for smartSupply and setSmartSupply
* few random autolints
2022-02-12 11:31:50 +08:00
phyzical
8b55b0293c
corp api fixes
...
* added early out in UpgradeWarehouse when not enough cash
* added checks to enforce maxProducts
* added checks to enforce export material is valid for location
* added checks for market ti reasearches
2022-02-11 23:48:19 +08:00
Nathan Solomon
df30a45388
Fixing Broken Error Message
2022-02-01 15:45:50 -06:00
Alexander Lichter
5564f82b44
fix typo
2022-02-01 12:43:14 +01:00
Heinous Tugboat
c7a3ac216f
Replaces anys in Stanek with unknown
2022-01-27 20:48:37 -05:00
Jack Stupple
2942ca500b
2734: Fix regex to enable alpha transparency hex codes (8 digits)
2022-01-27 18:21:17 +00:00
hydroflame
7a5dfd0e72
Merge pull request #2707 from MartinFournier/feature/theme-browser
...
Add Theme Browser accessible from GameOptions
2022-01-26 00:46:17 -05:00
hydroflame
6c3ad48ef5
Merge pull request #2763 from Ornedan/formulas-access-checks
...
Fix formulas access checks
2022-01-26 00:42:51 -05:00
hydroflame
0dd339bb4d
Merge pull request #2790 from SlyCedix/travelToCity-money-fix
...
Make travelToCity throw on invalid city name and return false on no money
2022-01-26 00:32:25 -05:00
Phil Despotos
65ffbcc27e
Corp API: Add setSmartSupplyUseLeftovers
...
The API can already toggle smart supply on/off, but can't manage the
related controls for whether smart supply will draw from the existing
materials in the warehouse. Without it, we can't keep some resources in
storage to boost the production multiplier without disabling smart
supply entirely.
2022-01-25 12:51:07 -06:00
Cyn
cdeae4ef68
Make travelToCity throw on invalid city name and return false on no money
2022-01-23 22:08:07 -05:00
Heikki Aitakangas
621df103cf
Fix formulas access checks
2022-01-23 00:31:59 +02:00
Martin Fournier
a26b9c8dcf
Add theme browser page accessible from game options
...
Removed the themes buttons that were in the ThemeEditorModal and only
left a "Revert to Default" button along with a link to the ThemeBrowser
page.
Split off the buttons into reusable components since they are now used
in two pages.
Display the themes in big cards with a zoomable screenshot. Applying the
theme now shows a toast with an option to undo the action.
The snackbar now allows ReactNode instead of only strings.
- Add link with details on how to create a new theme in the game.
- Add link to the theme-sharing discord channel.
- Add icons to the theme & style buttons in GameOptions
- Add "Theme Editor" button to ThemeBrowser
- Add "Style Editor" button to ThemeBrowser
- Move Styles related files into Themes folder
- Includes a modal that shows a bigger version of the screenshot.
- Change Snackbar to allow for ReactNode as the message
2022-01-20 18:41:49 -05:00
Martin Fournier
a9e2e35446
Move theme related things into its own subfolder
...
This will make contributions easier and less prone to conflicts.
2022-01-20 18:41:48 -05:00
hydroflame
bb34d6b582
Merge pull request #2618 from pigalot/Corp-Api-Updates
...
Corp api updates
2022-01-18 18:05:23 -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
phyzical
dd47a8baa0
throw error without bulk purchase reasearch
2022-01-17 20:00:19 +08:00
phyzical
d50e199171
added buybackShares, sellShares and bulkPurchase
2022-01-17 18:03:29 +08:00
pigalot
d34d720ab9
Office Size Upgrade Cost
2022-01-16 16:12:03 +00:00
pigalot
62f40b3dc1
Add bribe
2022-01-16 16:11:32 +00:00
pigalot
1b1dc20c16
fix error message
2022-01-16 16:11:32 +00:00
pigalot
1384b86810
Added better job assignment function, and fix docs
2022-01-16 16:11:32 +00:00
pigalot
98e8910c3a
Research func, gopublic function, and validation
2022-01-16 16:11:31 +00:00
pigalot
2269f79b15
Add investments to the api
2022-01-16 16:11:31 +00:00
pigalot
1b8c715a5e
Add costs and count function for ads
2022-01-16 16:11:31 +00:00
pigalot
74019bc2be
Make list of divisions accessable on the corp
2022-01-16 16:11:31 +00:00
pigalot
2cfa589da6
Prevent seed money outside of 3
2022-01-16 16:11:31 +00:00
pigalot
e2bb76ae6d
Add createCorp
2022-01-16 16:11:31 +00:00
Martin Fournier
07403eaaaa
Add ns.ui.getGameInfo() to retrieve game version
...
Returns { version, commit, platform }
2022-01-16 10:49:01 -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
hydroflame
c5462eb6f4
Merge pull request #2601 from deathly809/bug/attemp_logs_even_when_disabled
...
Correctly handle logging so that disableLog will work
2022-01-13 11:26:25 -05:00
Jeffrey A. Robinson
910c9d9e7e
Correctly label functions so that disableLog will work
2022-01-12 16:55:45 -08:00
Martin Fournier
9b638b911f
Add ns.ui.[getStyles, setStyles, resetStyles]
...
Adds three Netscript functions to manipulate the user's styles like the
player can with theme.
2022-01-12 18:34:05 -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
Heikki Aitakangas
804fbfa90a
Make corporation delayed functions check if script has been stopped during delay
2022-01-06 19:06:44 +02:00
hydroflame
b718fc3ef7
Merge pull request #2343 from MartinFournier/feature/set-theme
...
Add ns.ui.setTheme() and ns.ui.resetTheme()
2022-01-05 10:17:51 -05:00
hydroflame
ef3c7494cc
Merge pull request #2354 from TheMas3212/fix-1862
...
Fixes 1862 Combat gang members can do hacking tasks via API and vice versa
2022-01-05 10:16:52 -05:00