Skip to content

Commit

Permalink
Bladeburner: Relocate EXP Gain Prediction Closer to Logging (bitburne…
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfrydos committed Aug 21, 2024
1 parent 72c3d17 commit 893dd8a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Bladeburner/Bladeburner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1085,13 +1085,13 @@ export class Bladeburner {
retValue.agiExp = agiExpGain;
this.staminaBonus += staminaGain;

// retValue contains the base EXP gains.
// Multiply by person EXP multipliers to predict the effective gain.
const effectiveGainPrediction = multWorkStats(retValue, person.mults);
// Predict effective stamina gain after applying Skill and Augmentation multipliers.
let effectiveStaminaGainPrediction = staminaGain * this.getSkillMult(BladeburnerMultName.Stamina);
effectiveStaminaGainPrediction *= person.mults.bladeburner_max_stamina;
if (this.logging.general) {
// retValue contains the base EXP gains.
// Multiply by person EXP multipliers to predict the effective gain.
const effectiveGainPrediction = multWorkStats(retValue, person.mults);
// Predict effective stamina gain after applying Skill and Augmentation multipliers.
let effectiveStaminaGainPrediction = staminaGain * this.getSkillMult(BladeburnerMultName.Stamina);
effectiveStaminaGainPrediction *= person.mults.bladeburner_max_stamina;
this.log(
`${person.whoAmI()}: Training completed. Gained: ` +
`${formatExp(effectiveGainPrediction.strExp)} str exp, ` +
Expand Down Expand Up @@ -1124,10 +1124,10 @@ export class Bladeburner {
const rankGain = 0.1 * currentNodeMults.BladeburnerRank;
this.changeRank(person, rankGain);

// retValue contains the base EXP gains.
// Multiply by person EXP multipliers to predict the effective gain.
const effectiveGainPrediction = multWorkStats(retValue, person.mults);
if (this.logging.general) {
// retValue contains the base EXP gains.
// Multiply by person EXP multipliers to predict the effective gain.
const effectiveGainPrediction = multWorkStats(retValue, person.mults);
this.log(
`${person.whoAmI()}: ` +
`Field analysis completed. Gained ${formatBigNumber(rankGain)} rank, ` +
Expand Down

0 comments on commit 893dd8a

Please sign in to comment.