Merge pull request #3193 from t-wolfeadam/feature/corp-api-bonustime

Implement getBonusTime in Corporation API
This commit is contained in:
hydroflame
2022-03-20 14:13:35 -04:00
committed by GitHub
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -846,5 +846,9 @@ export function NetscriptCorporation(
const amountShares = helper.number("bribe", "amountShares", aamountShares);
return bribe(factionName, amountCash, amountShares);
},
getBonusTime: function (): number {
checkAccess("getBonusTime");
return Math.round(getCorporation().storedCycles / 5) * 1000;
}
};
}