bitburner-src/src/Bladeburner
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
..
data Fix tons of typos 2022-10-09 01:25:31 -04:00
ui Make the main player object an alias, makes it easier to import 2022-10-09 18:42:14 -04:00
Action.tsx NETSCRIPT: ns.sleeve.getSleeve added. getPlayer and getSleeve can both be used for formulas. (#200) 2022-11-09 07:26:26 -05:00
ActionIdentifier.ts More classes as types 2022-09-27 15:35:42 -04:00
BlackOperation.ts Using bladeburner and action classes as types 2022-09-27 15:35:41 -04:00
BlackOperations.tsx Commit1 2022-10-03 12:12:16 -04:00
Bladeburner.tsx Update Bladeburner.tsx 2022-10-11 15:33:55 +03:00
City.ts Fix tons of typos 2022-10-09 01:25:31 -04:00
Contract.ts Using bladeburner and action classes as types 2022-09-27 15:35:41 -04:00
GeneralActions.tsx Commit1 2022-10-03 12:12:16 -04:00
Operation.ts Using bladeburner and action classes as types 2022-09-27 15:35:41 -04:00
Skill.ts Refactored the internal calculateCost function for readability 2022-05-29 11:35:28 -05:00
Skills.ts Commit1 2022-10-03 12:12:16 -04:00