Merge pull request #3660 from Undeemiss/stanek-error

STANEK: Stanek NS functions correctly throw errors when stanek not installed
This commit is contained in:
hydroflame 2022-05-19 01:40:48 -04:00 committed by GitHub
commit 2cb02bf445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,7 @@ export function NetscriptStanek(
): InternalAPI<IStanek> {
function checkStanekAPIAccess(func: string): void {
if (!player.hasAugmentation(AugmentationNames.StaneksGift1, true)) {
helper.makeRuntimeErrorMsg(func, "Requires Stanek's Gift installed.");
throw helper.makeRuntimeErrorMsg(func, "Stanek's Gift is not installed");
}
}