diff --git a/work-for-factions.js b/work-for-factions.js index 8048703a..1a8e0336 100644 --- a/work-for-factions.js +++ b/work-for-factions.js @@ -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