mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
IPVGO: Fix non-async promise-returning methods to be more consistent (#1327)
This commit is contained in:
committed by
GitHub
parent
7321d64383
commit
5f6a5c8785
@@ -47,11 +47,11 @@ export function NetscriptGo(): InternalAPI<NSGo> {
|
||||
validateMove(error(ctx), x, y, "makeMove");
|
||||
return makePlayerMove(logger(ctx), error(ctx), x, y);
|
||||
},
|
||||
passTurn: (ctx: NetscriptContext) => (): Promise<Play> => {
|
||||
passTurn: (ctx: NetscriptContext) => async (): Promise<Play> => {
|
||||
validateTurn(error(ctx), "passTurn()");
|
||||
return handlePassTurn(logger(ctx));
|
||||
},
|
||||
opponentNextTurn: (ctx: NetscriptContext) => (_logOpponentMove) => {
|
||||
opponentNextTurn: (ctx: NetscriptContext) => async (_logOpponentMove) => {
|
||||
const logOpponentMove = typeof _logOpponentMove === "boolean" ? _logOpponentMove : true;
|
||||
return getOpponentNextMove(logOpponentMove, logger(ctx));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user