mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
Fixed bug with Hacknet Nodes production not updating initially. FIxed bug with 'purchase augmentations' btn being displayed for Gang BitNode
This commit is contained in:
@@ -562,6 +562,14 @@ PlayerObject.prototype.canAfford = function(cost) {
|
||||
}
|
||||
|
||||
PlayerObject.prototype.recordMoneySource = function(amt, source) {
|
||||
if (!(this.moneySourceA instanceof MoneySourceTracker)) {
|
||||
console.warn(`Player.moneySourceA was not properly initialized. Resetting`);
|
||||
this.moneySourceA = new MoneySourceTracker();
|
||||
}
|
||||
if (!(this.moneySourceB instanceof MoneySourceTracker)) {
|
||||
console.warn(`Player.moneySourceB was not properly initialized. Resetting`);
|
||||
this.moneySourceB = new MoneySourceTracker();
|
||||
}
|
||||
this.moneySourceA.record(amt, source);
|
||||
this.moneySourceB.record(amt, source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user