track money more precisely.

This commit is contained in:
Olivier Gagnon
2021-10-27 14:18:33 -04:00
parent 9f6767062b
commit 48988e228e
38 changed files with 90 additions and 100 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ export function purchaseServer(hostname: string, ram: number, cost: number, p: I
homeComputer.serversOnNetwork.push(newServ.hostname);
newServ.serversOnNetwork.push(homeComputer.hostname);
p.loseMoney(cost);
p.loseMoney(cost, "servers");
dialogBoxCreate("Server successfully purchased with hostname " + hostname);
}
@@ -114,5 +114,5 @@ export function purchaseRamForHomeComputer(p: IPlayer): void {
}
homeComputer.maxRam *= 2;
p.loseMoney(cost);
p.loseMoney(cost, "servers");
}