feat: focus 2.0 #2898
@ -11,7 +11,7 @@ import { version_compare } from "../../helpers/inventoryHelpers.ts";
|
||||
export const focusController: RequestHandler = async (req, res) => {
|
||||
const account = await getAccountForRequest(req);
|
||||
|
||||
let op: string | undefined;
|
||||
let op = req.query.op as string;
|
||||
const focus2 = account.BuildLabel && version_compare(account.BuildLabel, "2022.04.29.12.53") < 0;
|
||||
if (focus2) {
|
||||
// Focus 2.0
|
||||
|
||||
@ -3276,13 +3276,13 @@ function unlockFocusSchool(upgradeType) {
|
||||
return new Promise(resolve => {
|
||||
// Deselect current FocusAbility so we will be able to unlock the way for free
|
||||
$.post({
|
||||
url: "/api/focus.php?" + window.authz + "&op=5",
|
||||
url: "/api/focus.php?" + window.authz + "&op=ActivateWay",
|
||||
contentType: "text/plain",
|
||||
data: JSON.stringify({ FocusType: null })
|
||||
}).done(function () {
|
||||
// Unlock the way now
|
||||
$.post({
|
||||
url: "/api/focus.php?" + window.authz + "&op=2",
|
||||
url: "/api/focus.php?" + window.authz + "&op=UnlockWay",
|
||||
contentType: "text/plain",
|
||||
data: JSON.stringify({
|
||||
FocusType: upgradeType
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user