Bad copy pasta from isFocused -> setFocus

This commit is contained in:
Alain Bryden 2021-11-26 23:02:02 -04:00 committed by GitHub
parent 59d5fa9ef5
commit ca2948b854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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