Commit Graph

42 Commits

Author SHA1 Message Date
Snarling 6732549196 ENUMS: Initial Enum Helper rework + Reorganization (#596) 2023-06-12 00:34:20 -04:00
Snarling fb1f95c26e VARIOUS: Various changes prior to release 2.2 (#271)
See PR #271 description
2022-12-29 20:28:53 -05:00
Snarling 8e0e0eaa88 NETSCRIPT: ns.sleeve.getSleeve added. getPlayer and getSleeve can both be used for formulas. (#200)
* BREAKING CHANGE: Removed getSleeveStats and getSleeveInformation because this info is provided by getSleeve in a more usable form.
* BREAKING CHANGE: Removed tor, inBladeburner, and hasCorporation fields from ns.getPlayer. Functionality still exists via added functions ns.hasTorRouter, ns.corporation.hasCorporation, and ns.bladeburner.inBladeburner.
* Separated ns definitions for Person, Sleeve, and Player interfaces with both Player and Sleeve just extending Person.
Added getSleeve, which provides a Sleeve object similar to getPlayer.
* Renamed the sleeve ns layer's interface as sleeve lowercase because of name conflict. todo: May move all the ns layers interface names to lowercase for consistency
* Added ns.formulas.work.crimeSuccessChance and reworked to allow both sleeve and player calculations.
* Removed internal Person.getIntelligenceBonus function which was just a wrapper for calculateIntelligenceBonus. Any use of the former in formulas creates a conflict where ns-provided Person objects throw an error.
* Renamed helpers.player to helpers.person for netscript person validation. Reduced number of fields validated due to Person being a smaller interface.
* Fixed bug in bladeburner where Player multipliers and int were being used no matter which person was performing the task
* Fixed leak of Player.jobs at ns.getPlayer
* Person / Player / Sleeve classes now implement the netscript equivalent interfaces. Netscript helper for person no longer asserts that it's a real Person class member, only that it's a Person interface. Functions that use netscript persons have been changed to expect just a person interface to prevent needing this incorrect type assertion.
2022-11-09 07:26:26 -05: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 81412db02e format & lint fix 2022-09-27 16:09:32 -04:00
Snarling c510e47885 Player is now a Person
Use correct class inheritance, use class as type and remove IPlayer
2022-09-27 15:35:41 -04:00
Olivier Gagnon fb197be206 Fix hostname generation being weird about dash 0 added 2022-09-23 12:04:21 -04:00
Olivier Gagnon f78c0d6a6d Fix intelligence bugf 2022-08-15 09:38:10 -04:00
Olivier Gagnon 326d9fd7ef Move player skills and exp to their struct 2022-07-26 23:54:17 -04:00
Olivier Gagnon a9d5ff9bc9 lint 2022-07-18 03:31:17 -04:00
Olivier Gagnon 5629c16def extract multipliers in its own type 2022-07-14 18:43:33 -04:00
Olivier Gagnon 0d437e5b73 lint 2022-05-20 18:20:04 -04:00
Olivier Gagnon 27a8582df8 balance infiltrate synthoids 2022-05-20 18:18:42 -04:00
Olivier Gagnon 34b099c050 rm reviver from person 2022-05-20 17:44:20 -04:00
rderfler e381e857a5 Merge remote-tracking branch 'upstream/dev' into dev 2022-04-25 13:32:38 -04:00
rderfler 332b803332 Fmt and lint 2022-04-14 15:28:13 -04:00
rderfler 0406272942 Clean up
linter
2022-04-14 11:57:01 -04:00
rderfler 2613948bad Add bladeburner actions to sleeves
This adds bladeburner actions to sleeves. In addition this bulked out the IPerson functionality and updated bladeburner functions to be more sleeve compatible
2022-04-14 11:40:59 -04:00
phyzical 90d1c22aca changes all references to "heath reduction to damage reduction" 2022-04-13 18:54:13 +08:00
phyzical 7f28158005 moved over to player stats
* added new augmentations
2022-03-27 12:26:43 +08:00
nickofolas ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
Olivier Gagnon 88b4a7d862 bugfix 2021-11-05 17:12:52 -04:00
Olivier Gagnon 2a13db39c7 fix sleeve memory bug 2021-09-08 23:47:34 -04:00
David Edmondson cfbdae6def Switch ts and babel for swc-loader
Replace old <> assertion syntax
2021-09-04 16:57:49 -07:00
Olivier Gagnon a18bdd6afc prettify, sorry for the big ass commit 2021-09-04 19:09:30 -04:00
Olivier Gagnon d745150c45 all the lints 2021-05-01 03:17:31 -04:00
Olivier Gagnon 3fad505096 run auto fix lint 2021-04-29 23:52:56 -04:00
hydroflame e572c6dad8 v0.51.0 (#826)
* Hash upgrades and Bladeburner skills can now be clicked to copy to clipboard

* Aug purchase confirmation popup displays money in 0.000a format

* Character now displays hacknet server info properly

* Character,Info now displays hacknet server info correctly.

* Formulas (#825)

Formulas API v0.1

* Make all money the same color, same for reputation, format all numbers consistently.

* rename a lot of the formulas function to no longer contain calculate

* added hacking related formulas

* removed unused variable

* v0.51.0
2021-03-31 00:45:21 -04:00
Olivier Gagnon 7232a786ed Intelligence rework, most intelligence gain have been multiplied by at least 100, if not more. All intelligence use have been reviewed and often boosted but by a percentage. Typically this means intelligence gives a 2-6% boost to everything for normal players and around 13% for int farmers. 2021-03-20 05:29:53 -04:00
danielyxie 3f8b9e4a32 Fixed merge conflicts. Rebalanced new Hacknet Node mechanics. Adjusted Hacknet API so that it'll work with hacknet Servers. Fixed Corporation bug with Issuing new Shares 2019-03-29 16:13:58 -07:00
danielyxie 75bc34208c Initial commit for Location Code refactor 2019-03-27 01:31:47 -07:00
danielyxie d54e39c9c6 v0.44.1 Duplicate Sleeve updates 2019-03-04 22:41:31 -08:00
danielyxie a277810095 v0.44.1 Duplicate Sleeve updates 2019-02-26 00:55:22 -08:00
danielyxie 9137c24274 v0.43.1 2019-02-11 16:23:46 -08:00
danielyxie 5573e778bb Fixed bugs with Sleeve mechanics. Updated documentation to use RTD theme 2019-01-20 14:57:38 -08:00
danielyxie 10231b6c66 Finished ResleeveUI implementation (untested) 2019-01-17 07:40:43 -08:00
danielyxie 19f65de555 Started implementing Resleeving UI 2019-01-16 21:15:00 -08:00
danielyxie 6d8d25e0bb Refactored Augmentation implementation to Typescript, and to have the multiplier information in the actrual Augmentation object 2019-01-15 05:11:14 -08:00
danielyxie bcb231a966 Implemented Sleeve UI. Compiled but untested 2019-01-14 19:34:04 -08:00
danielyxie d9b865ef17 Began implementing Sleeve UI page 2019-01-10 00:20:04 -08:00
danielyxie 5c8512c4b6 Convert Locations and Faction implementations to TypeScript. Also restructed directory. Implemented Sleeve, but untested 2018-12-07 02:54:26 -08:00