Skip to content

Commit

Permalink
Merge pull request #407 from rraumberger/main
Browse files Browse the repository at this point in the history
adjust rep requirement for promotion when company server is backdoored
  • Loading branch information
alainbryden authored Oct 25, 2024
2 parents e1a55c7 + c6bf200 commit ecd6c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions work-for-factions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,9 @@ export async function workForMegacorpFactionInvite(ns, factionName, waitForInvit
const nextJob = nextJobName == "it" ? itJob : softwareJob;
const requiredHack = nextJob.reqHack[nextJobTier] === 0 ? 0 : nextJob.reqHack[nextJobTier] + statModifier; // Stat modifier only applies to non-zero reqs
const requiredCha = nextJob.reqCha[nextJobTier] === 0 ? 0 : nextJob.reqCha[nextJobTier] + statModifier; // Stat modifier only applies to non-zero reqs
const requiredRep = nextJob.reqRep[nextJobTier]; // No modifier on rep requirements
const requiredRep = nextJob.reqRep[nextJobTier] * (backdoored ? 0.75 : 1); // Rep requirement is decreased when company server is backdoored
let status = `Next promotion ('${nextJobName}' #${nextJobTier}) at Hack:${requiredHack} Cha:${requiredCha} Rep:${requiredRep?.toLocaleString('en')}` +
(repRequiredForFaction > nextJob.reqRep[nextJobTier] ? '' : `, but we won't need it, because we'll sooner hit ${repRequiredForFaction.toLocaleString('en')} reputation to unlock company faction "${factionName}"!`);
(repRequiredForFaction > requiredRep ? '' : `, but we won't need it, because we'll sooner hit ${repRequiredForFaction.toLocaleString('en')} reputation to unlock company faction "${factionName}"!`);
// Monitor that we are still performing the expected work
let currentWork = await getCurrentWorkInfo(ns);
// We should only study at university if every other requirement is met but Charisma
Expand Down

0 comments on commit ecd6c73

Please sign in to comment.