mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
WORK: FIX #2721 Singularity faction work logging.
fixes #2721 Player's faction-work-related property were reset to 0 before the singularity's log message was formatted. I anticipate (really) minor conflict with Work System rework PR.
This commit is contained in:
parent
b2659318c8
commit
8e94878380
@ -993,6 +993,7 @@ export function finishFactionWork(this: IPlayer, cancelled: boolean, sing = fals
|
|||||||
faction.playerReputation += this.workRepGained;
|
faction.playerReputation += this.workRepGained;
|
||||||
|
|
||||||
this.updateSkillLevels();
|
this.updateSkillLevels();
|
||||||
|
let res = "";
|
||||||
|
|
||||||
if (!sing) {
|
if (!sing) {
|
||||||
dialogBoxCreate(
|
dialogBoxCreate(
|
||||||
@ -1013,12 +1014,8 @@ export function finishFactionWork(this: IPlayer, cancelled: boolean, sing = fals
|
|||||||
<br />
|
<br />
|
||||||
</>,
|
</>,
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
|
res =
|
||||||
this.isWorking = false;
|
|
||||||
this.resetWorkStatus();
|
|
||||||
if (sing) {
|
|
||||||
const res =
|
|
||||||
"You worked for your faction " +
|
"You worked for your faction " +
|
||||||
faction.name +
|
faction.name +
|
||||||
" for a total of " +
|
" for a total of " +
|
||||||
@ -1039,10 +1036,11 @@ export function finishFactionWork(this: IPlayer, cancelled: boolean, sing = fals
|
|||||||
" agi exp, and " +
|
" agi exp, and " +
|
||||||
numeralWrapper.formatExp(this.workChaExpGained) +
|
numeralWrapper.formatExp(this.workChaExpGained) +
|
||||||
" cha exp.";
|
" cha exp.";
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
return "";
|
|
||||||
|
this.isWorking = false;
|
||||||
|
this.resetWorkStatus();
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Money gained per game cycle
|
//Money gained per game cycle
|
||||||
|
Loading…
Reference in New Issue
Block a user