Giter VIP home page Giter VIP logo

Comments (2)

alainbryden avatar alainbryden commented on July 30, 2024

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.

alainbryden avatar alainbryden commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.