Commit Graph

481 Commits

Author SHA1 Message Date
Snarling 50f14b4f58 Commit1 2022-10-03 12:12:16 -04:00
Snarling 16fac67257 fix broken rebase 2022-09-27 16:23:53 -04:00
Snarling 38063f62a7 build fix, lint, remove some instanceof checks 2022-09-27 16:09:32 -04:00
Snarling e5e6b05be0 format+lint+build fix 2022-09-27 15:35:42 -04:00
Snarling bc7c15ad77 corp: classes are types 2022-09-27 15:35:42 -04:00
Snarling 2213d06159 Using bladeburner and action classes as types 2022-09-27 15:35:41 -04:00
Snarling 475a8812bb findSleevePurchasableAugs as a class member 2022-09-27 15:35:41 -04:00
Snarling 21a2d49de7 Finish removing player passing 2022-09-27 15:35:41 -04:00
Snarling a21b1029d7 No more player/router context 2022-09-27 15:35:40 -04:00
Snarling 83d357e758 commit1 2022-09-27 15:35:40 -04:00
Duck McSouls 0a644aed58 Typo fix in ns.singularity.workForFaction()
Abbreviation of "you are" is "you're".  Also place a full stop at the end to complete the sentence.  Fixes #4118.
2022-09-23 20:32:53 +10:00
hydroflame 5101b345ec Merge pull request #4069 from Mughur/corp
API: Corp functions now return copy of constant arrays instead of the original
2022-09-23 00:58:32 -03:00
hydroflame ee67aa90f9 Merge pull request #4131 from Mughur/valuation
CORPORATION: Gave investors some economics classes
2022-09-23 00:58:06 -03:00
hydroflame a8e640e309 Merge pull request #4084 from Rasmoh/expose_exports
CORPORATION API: FIX #3655 Expose exports from Material
2022-09-23 00:46:28 -03:00
Olivier Gagnon 4f64d3eeb1 use triple equal 2022-09-22 23:45:00 -04:00
hydroflame 9f922de50d Merge pull request #4101 from Kelenius/UnhardcodeBBAndCorpDisabling
UI: Bitnode stats now show if BB/Corporation are disabled
2022-09-23 00:43:19 -03:00
hydroflame 23c889bafd Merge pull request #4074 from phyzical/hotfix/4058
CORP API: Fix up param order for limitProductProduction to match docs
2022-09-23 00:36:24 -03:00
hydroflame e49bd3d091 Merge branch 'dev' into feature/add-back-api-export 2022-09-23 00:34:19 -03:00
hydroflame c449680256 Merge pull request #4104 from Mughur/dev
MISC: multiple hasAugmentation checks didn't check if the augment was installed
2022-09-23 00:32:16 -03:00
Mughur d4c06eba24 Change corporatio valuation calculations 2022-09-23 05:05:18 +03:00
phyzical 4175960fc6 use bitnode multiplers in the output of crime stats 2022-09-20 17:56:05 +08:00
Mughur 4c5adc8dfb More hasAugmentation fixes 2022-09-14 21:21:49 +03:00
Kelenius 5350e1c3e9 Unhardcoded BN8 BB check; show if corp/BB are disabled in BN stats 2022-09-12 17:48:52 +03:00
phyzical ca2f1a62a5 add singularity function for exporting game save 2022-09-07 16:11:51 +08:00
Rasmoh cc0fd197c5 Expose exports from Material 2022-09-05 17:25:32 -07:00
phyzical 2a8ddb8147 fix up param order to match docs
hotfix/4058

File List:
src/NetscriptFunctions/Corporation.ts
2022-09-02 11:58:12 +08:00
Mughur c467a49a38 corp functions now return copy instead of original 2022-08-31 12:05:36 +03:00
Olivier Gagnon c9a0998cc1 Improve wrong arg user message and add ui.windowSize 2022-08-29 18:07:17 -04:00
hydroflame a0475cc630 Merge pull request #4049 from MPJ-K/dev
NETSCRIPT: FIX #3963 Prevent bladeburner.setActionLevel from setting invalid action levels
2022-08-29 11:20:28 -03:00
hydroflame c2796e164a Merge pull request #4052 from Snarling/ns1wrapper
NETSCRIPT: FIX #4037 ns1 wraps deeper layers correctly.
2022-08-29 11:14:32 -03:00
Florian Schöffl 282dc28c8d INFILTRATION: Corrected ns formula for infiltration rewards
In commit 
7c5097ee83 the author extracted the functionality for infiltration rewards into a NS function and made it accessible via formulas.

The exposed function does however not use the same input parameters as the Victory screen after infiltration since he uses the difficulty and not the starting difficulty.

Difficulty is clamped to [0;3], so the formulas api showed for high difficulty servers a vastly lower result.
2022-08-29 02:35:39 +02:00
Snarling ef1f376c09 format, lint, remove unused "running" property on ws 2022-08-27 22:32:48 -04:00
Snarling 6f36e9cdc5 Fix/Unify NS1 wrapper 2022-08-27 20:56:12 -04:00
MPJ / Quadryo 197081dd3e Fix #3963
Adds a previously missing `throw` to allow `bladeburner.setActionLevel()` to properly produce errors and prevent invalid action levels from being set.
2022-08-26 20:59:26 +02:00
hydroflame 2463fc2012 Merge pull request #4028 from Snarling/scpAndWriteDocFix
NETSCRIPT: Update netscript definition file for scp, write, read, and flags
2022-08-25 16:37:07 -03:00
Snarling 650db2dee7 Add type fix for flags 2022-08-24 19:09:18 -04:00
Alain Bryden 359def2b61 Don't stringify answer if already a string 2022-08-24 11:09:35 -03:00
Snarling 445e365959 debounce updateRAM 2022-08-23 16:38:30 -04:00
Olivier Gagnon 89aa23f4b3 Add dummy function to generate a mock server or player for formulas stuff 2022-08-23 16:01:34 -04:00
Olivier Gagnon 7cb48f4612 fix compile error 2022-08-23 12:04:09 -04:00
hydroflame fe3e34408d Merge branch 'dev' into dev 2022-08-23 13:01:13 -03:00
hydroflame 486ab7aad8 Merge branch 'dev' into contractFix 2022-08-23 12:44:21 -03:00
hydroflame 6969ff52c7 Merge pull request #4010 from Risenafis/fix-create-corp
NETSCRIPT: Correct missing ! for boolean coercion in Corporation.createCorporation().
2022-08-23 12:10:49 -03:00
hydroflame 1d3eb2ffb5 Merge pull request #4000 from MageKing17/patch-2
NETSCRIPT: Correct missing `!` for boolean coercion in `singularity.workForCompany()`.
2022-08-23 12:09:49 -03:00
Risenafis b224321222 fix selfFund was reversed 2022-08-20 23:37:39 +09:00
Snarling 4001b4cbb0 refactor stock for ctx instead of workerScript 2022-08-19 19:32:30 -04:00
MageKing17 28d7284323 Correct missing ! for boolean coercion.
`singularity.workForCompany()` was negating its `_focus` argument, unlike similar functions, which used double-negation to coerce to boolean. This was almost certainly a typo, since before PR-#3967 it used `_ctx.helper.boolean()` without negation, just like the other singularity functions.
2022-08-18 22:04:11 -07:00
Olivier Gagnon a8bef50ef5 Added a few formulas to calculate work gains 2022-08-17 14:32:52 -04:00
Snarling ea7c2c4981 fixing other commits after rebase 2022-08-09 18:25:02 -04:00
Snarling 648b7e84bf Some cleanup 2022-08-09 18:09:26 -04:00