mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
IPVGO: Add getCheatCount(). (#1734)
This commit is contained in:
@@ -100,9 +100,16 @@ export function NetscriptGo(): InternalAPI<NSGo> {
|
||||
},
|
||||
},
|
||||
cheat: {
|
||||
getCheatSuccessChance: (ctx: NetscriptContext) => () => {
|
||||
getCheatSuccessChance:
|
||||
(ctx: NetscriptContext) =>
|
||||
(_cheatCount = Go.currentGame.cheatCount) => {
|
||||
checkCheatApiAccess(error(ctx));
|
||||
const cheatCount = helpers.number(ctx, "cheatCount", _cheatCount);
|
||||
return cheatSuccessChance(cheatCount);
|
||||
},
|
||||
getCheatCount: (ctx: NetscriptContext) => () => {
|
||||
checkCheatApiAccess(error(ctx));
|
||||
return cheatSuccessChance(Go.currentGame.cheatCount);
|
||||
return Go.currentGame.cheatCount;
|
||||
},
|
||||
removeRouter:
|
||||
(ctx: NetscriptContext) =>
|
||||
|
||||
Reference in New Issue
Block a user