Update codebase for stanek

This commit is contained in:
Olivier Gagnon
2022-05-19 02:48:50 -04:00
parent 4c33ad444b
commit c2b4a5b52a
5 changed files with 628 additions and 944 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ export function NetscriptStanek(
//Charge the fragment
const time = staneksGift.inBonus() ? 200 : 1000;
return netscriptDelay(time, workerScript).then(function () {
const charge = staneksGift.charge(player, fragment, workerScript.scriptRef.threads);
_ctx.log(() => `Charged fragment for ${charge} charge.`);
staneksGift.charge(player, fragment, workerScript.scriptRef.threads);
_ctx.log(() => `Charged fragment with ${_ctx.workerScript.scriptRef.threads} threads.`);
return Promise.resolve();
});
},