Comments (2)
It's a fair point, but a pain to manually put together a list considering how little of our money we typically budget to spend on sleeves.
In my mind, every single aug should have an "importance weighting" based on the stats they offer and how useful it is for a sleeve to have those stats. The weight for CashRoot Starter Kit and TRP would be 0, but other things would perhaps be somewhere between 0 and 1.
from bitburner-scripts.
I started to implement this, but then checked https://github.com/reacocard/bitburner/blob/master/src/PersonObjects/Sleeve/SleeveHelpers.ts and in the #developer channel on discord, and apparently they're on top of this, already working on whittling down the list to only augs sleeves would benefit from.
So I'll dump the code I had in progress here in case it turns out they aren't on top of this, but I think they are.
['ignore-augmentations', []] // Can specify augmentations not to bother purchasing, because they add no value to the Sleeve
//...
// If `ignore-augmentations` were not specified, default this to augmentations we know are not useful
if (options['ignore-augmentations'].length == 0) {
options['ignore-augmentations'].push('CashRoot Starter Kit', 'Neuroreceptor Management Implant', // Note: Let them have TRP, it costs nothing and it gives them hope
/* Netburners */ "Hacknet Node CPU Architecture Neural-Upload", "Hacknet Node Cache Architecture Neural-Upload", "Hacknet Node NIC Architecture Neural-Upload", "Hacknet Node Kernel Direct-Neural Interface", "Hacknet Node Core Direct-Neural Interface",
/* Bladeburners */ "The Blade's Simulacrum", "BLADE-51b Tesla Armor: Unibeam Upgrade", "BLADE-51b Tesla Armor: Omnibeam Upgrade", "Hyperion Plasma Cannon V1", "Hyperion Plasma Cannon V2", "BLADE-51b Tesla Armor: Power Cells Upgrade", "BLADE-51b Tesla Armor: IPU Upgrade",
/* Penalty Augs (Just to be safe) */ "Stanek's Gift - Genesis",
);
}
...
async function manageSleeveAugs(ns, i, budget) {
// Retrieve and cache the set of available sleeve augs (cached temporarily, but not forever, in case rules around this change)
if (availableAugs[i] == null || Date.now() > cacheExpiry[i]) {
cacheExpiry[i] = Date.now() + 60000;
availableAugs[i] = (await getNsDataThroughFile(ns, `ns.sleeve.getSleevePurchasableAugs(ns.args[0])`, // list of { name, cost }
'/Temp/sleeve-augs.txt', [i])).sort((a, b) => a.cost - b.cost);
// Filter out augmentations that we've excluded as being useless
availableAugs[i] = availableAugs[i].filter(a => !options['ignore-augmentations'].includes(a));
}
from bitburner-scripts.
Related Issues (20)
- Autopilot destroy bitnode bug HOT 6
- Suggestion: hacknet ram managment
- Bug in spend-hacknet-hashes.js HOT 3
- Autopilot doesn't hack
- Ascend Without TIX API liquidate error HOT 5
- RAM usage error HOT 2
- Autopilot Warning/Error loops HOT 3
- Make work-for-factions.js display remaining time also considering sleeves. [enhancement] HOT 2
- Daemon settings(?) HOT 1
- Provide an option to sync player stats to an external location HOT 1
- suggestion: better progression understanding HOT 1
- autopilot stuck in constant reset HOT 4
- Git-Pull needs to use current working directory HOT 1
- faction-manager.js: Problem with rep cost estimates HOT 3
- faction-manager.js: Trying to join Netburners while not having to requirements
- Repeating warning with Bitburner v2.5.2 HOT 5
- Daemon.js: Non-integer thread count
- Bitbutner v2.6.0dev: Bladeburner skill cost of "null" breaks script
- Stanek's gift not activated automatically HOT 6
- daemon.js: Errors in late BN12.XXX when server initial values are outside of min/max values.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitburner-scripts.