CORPORATION: Use accounting methods for all funds transactions (#949)

This commit is contained in:
Jesse Clark
2023-12-07 18:22:21 -08:00
committed by GitHub
parent b114fb9eed
commit 902306530c
12 changed files with 93 additions and 64 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
const repGain = amountCash / corpConstants.bribeAmountPerReputation;
faction.playerReputation += repGain;
corporation.funds = corporation.funds - amountCash;
corporation.loseFunds(amountCash, "bribery");
return true;
}