quick fix

forgot to remove a line used for notes
This commit is contained in:
zeddrak 2022-01-28 15:25:03 -08:00 committed by GitHub
parent 9af0ed7dba
commit f8c4d07cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -146,7 +146,6 @@ export function numCycleForGrowthCorrected(server: Server, targetMoney: number,
* @param p - Reference to Player object
* @returns Number of "growth cycles" needed to reverse the described hack
*/
server: Server, targetMoney: number, startMoney: number, p: IPlayer, cores = 1): number
export function numCycleForGrowthByHackAmt(server, hackAmt: number, prehackMoney: number, p: IPlayer, cores = 1) {
if (prehackMoney > server.moneyMax) { preHackAmt = server.moneyMax; }
const posthackAmt = Math.floor(prehackMoney * Math.min(1, Math.max(0, (1 - hackAmt))));