made staneks gift work with prestiges

This commit is contained in:
Olivier Gagnon
2021-10-08 03:16:51 -04:00
parent f4ecbd9b48
commit 4355420349
16 changed files with 168 additions and 7 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ export function NetscriptStanek(
//checkStanekAPIAccess("charge");
const fragment = staneksGift.fragmentAt(worldX, worldY);
if (!fragment) throw helper.makeRuntimeErrorMsg("stanek.charge", `No fragment at (${worldX}, ${worldY})`);
return netscriptDelay(1000, workerScript).then(function () {
const time = staneksGift.inBonus() ? 200 : 1000;
return netscriptDelay(time, workerScript).then(function () {
if (workerScript.env.stopFlag) {
return Promise.reject(workerScript);
}