diff --git a/src/Constants.ts b/src/Constants.ts index 6682dcfca..4799259a7 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -266,5 +266,6 @@ export const CONSTANTS: IMap = { * 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 `, } \ No newline at end of file diff --git a/src/PersonObjects/Sleeve/Sleeve.ts b/src/PersonObjects/Sleeve/Sleeve.ts index 12a34cee4..dc05f57b4 100644 --- a/src/PersonObjects/Sleeve/Sleeve.ts +++ b/src/PersonObjects/Sleeve/Sleeve.ts @@ -334,6 +334,7 @@ export class Sleeve extends Person { this.earningsForTask.money += gain; this.earningsForPlayer.money += gain; p.gainMoney(gain); + p.recordMoneySource(gain, 'sleeves'); } /** diff --git a/src/ui/CharacterInfo.tsx b/src/ui/CharacterInfo.tsx index dcfa2fffb..04f29e4a0 100644 --- a/src/ui/CharacterInfo.tsx +++ b/src/ui/CharacterInfo.tsx @@ -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, ""); } diff --git a/src/utils/MoneySourceTracker.ts b/src/utils/MoneySourceTracker.ts index 891e3389f..e74ef221f 100644 --- a/src/utils/MoneySourceTracker.ts +++ b/src/utils/MoneySourceTracker.ts @@ -19,6 +19,7 @@ export class MoneySourceTracker { hacknetnode = 0; hospitalization = 0; infiltration = 0; + sleeves = 0; stock = 0; total = 0; work = 0;