Merge pull request #1797 from alainbryden/patch-2

Bad copy pasta from isFocused -> setFocus
This commit is contained in:
hydroflame 2021-11-28 13:14:46 -05:00 committed by GitHub
commit 2dfc52351d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1242,8 +1242,8 @@ export function NetscriptSingularity(
return player.focus;
},
setFocus: function (focus: any): void {
helper.updateDynamicRam("isFocused", getRamCost("isFocused"));
helper.checkSingularityAccess("isFocused", 2);
helper.updateDynamicRam("setFocus", getRamCost("setFocus"));
helper.checkSingularityAccess("setFocus", 2);
if (focus === true) {
player.startFocusing();
} else if (focus === false) {