Implement getBonusTime in Corporation

Used documentation from other 'getBonusTime' methods
This commit is contained in:
t.wolfeadam
2022-03-19 15:22:29 -05:00
parent fc963bb583
commit 5702cb04b6
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;
}
};
}