Sleeves earnings is now tracked in Character Stats Money

This commit is contained in:
Olivier Gagnon 2021-05-17 22:03:48 -04:00
parent 7a1fdd6c28
commit 218a9dd250
4 changed files with 4 additions and 0 deletions

@ -266,5 +266,6 @@ export const CONSTANTS: IMap<any> = {
* It is now possible to suppress bladeburner "action stopped" popup.
* Updated several dependencies (who cares, I know)
* ls no longer prints lingering newline.
* Money earned/spent by sleeves is now tracked under Character>Money
`,
}

@ -334,6 +334,7 @@ export class Sleeve extends Person {
this.earningsForTask.money += gain;
this.earningsForPlayer.money += gain;
p.gainMoney(gain);
p.recordMoneySource(gain, 'sleeves');
}
/**

@ -61,6 +61,7 @@ export function CharacterInfo(p: IPlayer): React.ReactElement {
if (src.infiltration) { parts.push([`Infiltration:`, Money(src.infiltration)]) }
if (src.stock) { parts.push([`Stock Market:`, Money(src.stock)]) }
if (src.casino) { parts.push([`Casino:`, Money(src.casino)]) }
if (src.sleeves) { parts.push([`Sleeves:`, Money(src.sleeves)]) }
return StatsTable(parts, "");
}

@ -19,6 +19,7 @@ export class MoneySourceTracker {
hacknetnode = 0;
hospitalization = 0;
infiltration = 0;
sleeves = 0;
stock = 0;
total = 0;
work = 0;