Compare commits
No commits in common. "a03c987f69df99a67f63c3a8d39e3a1e8fb2323a" and "eb3acad59866d6c52d1e6adea4fe730313c25200" have entirely different histories.
a03c987f69
...
eb3acad598
@ -1,17 +0,0 @@
|
|||||||
import { RequestHandler } from "express";
|
|
||||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
|
||||||
import { getInventory } from "@/src/services/inventoryService";
|
|
||||||
|
|
||||||
export const addCurrencyController: RequestHandler = async (req, res) => {
|
|
||||||
const accountId = await getAccountIdForRequest(req);
|
|
||||||
const inventory = await getInventory(accountId);
|
|
||||||
const request = req.body as IAddCurrencyRequest;
|
|
||||||
inventory[request.currency] += request.delta;
|
|
||||||
await inventory.save();
|
|
||||||
res.end();
|
|
||||||
};
|
|
||||||
|
|
||||||
interface IAddCurrencyRequest {
|
|
||||||
currency: "RegularCredits" | "PremiumCredits" | "FusionPoints" | "PrimeTokens";
|
|
||||||
delta: number;
|
|
||||||
}
|
|
@ -8,7 +8,6 @@ import {
|
|||||||
ExportRecipes,
|
ExportRecipes,
|
||||||
ExportResources,
|
ExportResources,
|
||||||
ExportSentinels,
|
ExportSentinels,
|
||||||
ExportSyndicates,
|
|
||||||
ExportUpgrades,
|
ExportUpgrades,
|
||||||
ExportWarframes,
|
ExportWarframes,
|
||||||
ExportWeapons
|
ExportWeapons
|
||||||
@ -37,7 +36,6 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
res.SpaceSuits = [];
|
res.SpaceSuits = [];
|
||||||
res.MechSuits = [];
|
res.MechSuits = [];
|
||||||
res.miscitems = [];
|
res.miscitems = [];
|
||||||
res.Syndicates = [];
|
|
||||||
for (const [uniqueName, item] of Object.entries(ExportWarframes)) {
|
for (const [uniqueName, item] of Object.entries(ExportWarframes)) {
|
||||||
if (
|
if (
|
||||||
item.productCategory == "Suits" ||
|
item.productCategory == "Suits" ||
|
||||||
@ -162,12 +160,6 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
badItems[uniqueName] = true;
|
badItems[uniqueName] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) {
|
|
||||||
res.Syndicates.push({
|
|
||||||
uniqueName,
|
|
||||||
name: getString(syndicate.name, lang)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
badItems,
|
badItems,
|
||||||
|
@ -125,7 +125,6 @@ favouriteLoadoutSchema.set("toJSON", {
|
|||||||
const tailorShopSchema = new Schema<ITailorShopDatabase>(
|
const tailorShopSchema = new Schema<ITailorShopDatabase>(
|
||||||
{
|
{
|
||||||
FavouriteLoadouts: [favouriteLoadoutSchema],
|
FavouriteLoadouts: [favouriteLoadoutSchema],
|
||||||
Colors: { type: colorSchema, required: false },
|
|
||||||
CustomJson: String,
|
CustomJson: String,
|
||||||
LevelDecosVisible: Boolean,
|
LevelDecosVisible: Boolean,
|
||||||
Rooms: [roomSchema]
|
Rooms: [roomSchema]
|
||||||
|
@ -12,7 +12,7 @@ cacheRouter.get(/^\/origin\/[a-zA-Z0-9]+\/[0-9]+\/H\.Cache\.bin.*$/, (req, res)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
cacheRouter.get(/^\/0\/.+!.+$/, async (req, res) => {
|
cacheRouter.get(/^\/0\/Lotus\/.+!.+$/, async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const dir = req.path.substr(0, req.path.lastIndexOf("/"));
|
const dir = req.path.substr(0, req.path.lastIndexOf("/"));
|
||||||
const file = req.path.substr(dir.length + 1);
|
const file = req.path.substr(dir.length + 1);
|
||||||
|
@ -8,14 +8,13 @@ import { deleteAccountController } from "@/src/controllers/custom/deleteAccountC
|
|||||||
import { renameAccountController } from "@/src/controllers/custom/renameAccountController";
|
import { renameAccountController } from "@/src/controllers/custom/renameAccountController";
|
||||||
|
|
||||||
import { createAccountController } from "@/src/controllers/custom/createAccountController";
|
import { createAccountController } from "@/src/controllers/custom/createAccountController";
|
||||||
import { createMessageController } from "@/src/controllers/custom/createMessageController";
|
|
||||||
import { addCurrencyController } from "../controllers/custom/addCurrencyController";
|
|
||||||
import { addItemsController } from "@/src/controllers/custom/addItemsController";
|
import { addItemsController } from "@/src/controllers/custom/addItemsController";
|
||||||
import { addXpController } from "@/src/controllers/custom/addXpController";
|
import { addXpController } from "@/src/controllers/custom/addXpController";
|
||||||
import { importController } from "@/src/controllers/custom/importController";
|
import { importController } from "@/src/controllers/custom/importController";
|
||||||
|
|
||||||
import { getConfigDataController } from "@/src/controllers/custom/getConfigDataController";
|
import { getConfigDataController } from "@/src/controllers/custom/getConfigDataController";
|
||||||
import { updateConfigDataController } from "@/src/controllers/custom/updateConfigDataController";
|
import { updateConfigDataController } from "@/src/controllers/custom/updateConfigDataController";
|
||||||
|
import { createMessageController } from "@/src/controllers/custom/createMessageController";
|
||||||
|
|
||||||
const customRouter = express.Router();
|
const customRouter = express.Router();
|
||||||
|
|
||||||
@ -28,7 +27,6 @@ customRouter.get("/renameAccount", renameAccountController);
|
|||||||
|
|
||||||
customRouter.post("/createAccount", createAccountController);
|
customRouter.post("/createAccount", createAccountController);
|
||||||
customRouter.post("/createMessage", createMessageController);
|
customRouter.post("/createMessage", createMessageController);
|
||||||
customRouter.post("/addCurrency", addCurrencyController);
|
|
||||||
customRouter.post("/addItems", addItemsController);
|
customRouter.post("/addItems", addItemsController);
|
||||||
customRouter.post("/addXp", addXpController);
|
customRouter.post("/addXp", addXpController);
|
||||||
customRouter.post("/import", importController);
|
customRouter.post("/import", importController);
|
||||||
|
@ -229,9 +229,6 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
|
|||||||
if (client.FocusUpgrades !== undefined) {
|
if (client.FocusUpgrades !== undefined) {
|
||||||
db.FocusUpgrades = client.FocusUpgrades;
|
db.FocusUpgrades = client.FocusUpgrades;
|
||||||
}
|
}
|
||||||
if (client.EvolutionProgress !== undefined) {
|
|
||||||
db.EvolutionProgress = client.EvolutionProgress;
|
|
||||||
}
|
|
||||||
if (client.InfestedFoundry !== undefined) {
|
if (client.InfestedFoundry !== undefined) {
|
||||||
db.InfestedFoundry = convertInfestedFoundry(client.InfestedFoundry);
|
db.InfestedFoundry = convertInfestedFoundry(client.InfestedFoundry);
|
||||||
}
|
}
|
||||||
|
@ -83,19 +83,6 @@ export const addMissionInventoryUpdates = (
|
|||||||
if (inventoryUpdates.MissionFailed === true) {
|
if (inventoryUpdates.MissionFailed === true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (inventoryUpdates.RewardInfo && inventoryUpdates.RewardInfo.periodicMissionTag) {
|
|
||||||
const tag = inventoryUpdates.RewardInfo.periodicMissionTag;
|
|
||||||
const existingCompletion = inventory.PeriodicMissionCompletions.find(completion => completion.tag === tag);
|
|
||||||
|
|
||||||
if (existingCompletion) {
|
|
||||||
existingCompletion.date = new Date();
|
|
||||||
} else {
|
|
||||||
inventory.PeriodicMissionCompletions.push({
|
|
||||||
tag: tag,
|
|
||||||
date: new Date()
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (const [key, value] of getEntriesUnsafe(inventoryUpdates)) {
|
for (const [key, value] of getEntriesUnsafe(inventoryUpdates)) {
|
||||||
if (value === undefined) {
|
if (value === undefined) {
|
||||||
logger.error(`Inventory update key ${key} has no value `);
|
logger.error(`Inventory update key ${key} has no value `);
|
||||||
@ -191,22 +178,6 @@ export const addMissionInventoryUpdates = (
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "SyndicateId": {
|
|
||||||
inventory.CompletedSyndicates.push(value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case "SortieId": {
|
|
||||||
inventory.CompletedSorties.push(value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case "SeasonChallengeCompletions":
|
|
||||||
const processedCompletions = value.map(({ challenge, id }) => ({
|
|
||||||
challenge: challenge.substring(challenge.lastIndexOf("/") + 1),
|
|
||||||
id
|
|
||||||
}));
|
|
||||||
|
|
||||||
inventory.SeasonChallengeHistory.push(...processedCompletions);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
// Equipment XP updates
|
// Equipment XP updates
|
||||||
if (equipmentKeys.includes(key as TEquipmentKey)) {
|
if (equipmentKeys.includes(key as TEquipmentKey)) {
|
||||||
@ -376,24 +347,6 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo): IRngResult[] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RewardInfo.nightmareMode) {
|
|
||||||
const deck = ExportRewards["/Lotus/Types/Game/MissionDecks/NightmareModeRewards"];
|
|
||||||
let rotation = 0;
|
|
||||||
|
|
||||||
if (region.missionIndex === 3 && RewardInfo.rewardTier) {
|
|
||||||
rotation = RewardInfo.rewardTier;
|
|
||||||
} else if ([6, 7, 8, 10, 11].includes(region.systemIndex)) {
|
|
||||||
rotation = 2;
|
|
||||||
} else if ([4, 9, 12, 14, 15, 16, 17, 18].includes(region.systemIndex)) {
|
|
||||||
rotation = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
const drop = getRandomRewardByChance(deck[rotation]);
|
|
||||||
if (drop) {
|
|
||||||
drops.push(drop);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return drops;
|
return drops;
|
||||||
}
|
}
|
||||||
|
@ -28,13 +28,7 @@ export const setShipCustomizations = async (
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const personalRooms = await getPersonalRooms(accountId);
|
const personalRooms = await getPersonalRooms(accountId);
|
||||||
if (shipCustomization.IsShop) {
|
|
||||||
personalRooms.TailorShop.Colors = shipCustomization.Customization.Colors;
|
|
||||||
personalRooms.TailorShop.LevelDecosVisible = shipCustomization.Customization.LevelDecosVisible;
|
|
||||||
personalRooms.TailorShop.CustomJson = shipCustomization.Customization.CustomJson;
|
|
||||||
} else {
|
|
||||||
personalRooms.ShipInteriorColors = shipCustomization.Customization.Colors;
|
personalRooms.ShipInteriorColors = shipCustomization.Customization.Colors;
|
||||||
}
|
|
||||||
await personalRooms.save();
|
await personalRooms.save();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -44,9 +44,6 @@ export type IMissionInventoryUpdateRequest = {
|
|||||||
CrewShipAmmo?: ITypeCount[];
|
CrewShipAmmo?: ITypeCount[];
|
||||||
BonusMiscItems?: ITypeCount[];
|
BonusMiscItems?: ITypeCount[];
|
||||||
|
|
||||||
SyndicateId?: string;
|
|
||||||
SortieId?: string;
|
|
||||||
SeasonChallengeCompletions?: ISeasonChallenge[];
|
|
||||||
AffiliationChanges?: IAffiliationChange[];
|
AffiliationChanges?: IAffiliationChange[];
|
||||||
crossPlaySetting?: string;
|
crossPlaySetting?: string;
|
||||||
rewardsMultiplier?: number;
|
rewardsMultiplier?: number;
|
||||||
@ -103,7 +100,6 @@ export interface IRewardInfo {
|
|||||||
rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
|
rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
|
||||||
PurgatoryRewardQualifications?: string;
|
PurgatoryRewardQualifications?: string;
|
||||||
rewardSeed?: number;
|
rewardSeed?: number;
|
||||||
periodicMissionTag?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IMissionStatus = "GS_SUCCESS" | "GS_FAILURE" | "GS_DUMPED" | "GS_QUIT" | "GS_INTERRUPTED";
|
export type IMissionStatus = "GS_SUCCESS" | "GS_FAILURE" | "GS_DUMPED" | "GS_QUIT" | "GS_INTERRUPTED";
|
||||||
|
@ -84,15 +84,12 @@ export interface ISetShipCustomizationsRequest {
|
|||||||
Customization: Customization;
|
Customization: Customization;
|
||||||
IsExterior: boolean;
|
IsExterior: boolean;
|
||||||
AirSupportPower?: string;
|
AirSupportPower?: string;
|
||||||
IsShop?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Customization {
|
export interface Customization {
|
||||||
SkinFlavourItem: string;
|
SkinFlavourItem: string;
|
||||||
Colors: IColor;
|
Colors: IColor;
|
||||||
ShipAttachments: ShipAttachments;
|
ShipAttachments: ShipAttachments;
|
||||||
LevelDecosVisible: boolean;
|
|
||||||
CustomJson: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: check for more attachments
|
//TODO: check for more attachments
|
||||||
@ -158,12 +155,12 @@ export interface IFavouriteLoadoutDatabase {
|
|||||||
|
|
||||||
export interface ITailorShopDatabase {
|
export interface ITailorShopDatabase {
|
||||||
FavouriteLoadouts: IFavouriteLoadoutDatabase[];
|
FavouriteLoadouts: IFavouriteLoadoutDatabase[];
|
||||||
Colors?: IColor;
|
CustomJson: "{}"; // ???
|
||||||
CustomJson: string;
|
|
||||||
LevelDecosVisible: boolean;
|
LevelDecosVisible: boolean;
|
||||||
Rooms: IRoom[];
|
Rooms: IRoom[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITailorShop extends Omit<ITailorShopDatabase, "FavouriteLoadouts"> {
|
export interface ITailorShop extends Omit<ITailorShopDatabase, "FavouriteLoadouts"> {
|
||||||
FavouriteLoadouts: IFavouriteLoadout[];
|
FavouriteLoadouts: IFavouriteLoadout[];
|
||||||
|
Colors?: []; // ???
|
||||||
}
|
}
|
||||||
|
@ -94,56 +94,6 @@
|
|||||||
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
|
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="row g-3">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="card mb-3">
|
|
||||||
<h5 class="card-header" data-loc="currency_RegularCredits"></h5>
|
|
||||||
<div class="card-body">
|
|
||||||
<p class="card-text" id="RegularCredits-owned"></p>
|
|
||||||
<form class="input-group" onsubmit="doAddCurrency('RegularCredits');return false;">
|
|
||||||
<input class="form-control" id="RegularCredits-delta" type="number" value="1000000" step="1000000" />
|
|
||||||
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="card mb-3">
|
|
||||||
<h5 class="card-header" data-loc="currency_PremiumCredits"></h5>
|
|
||||||
<div class="card-body">
|
|
||||||
<p class="card-text" id="PremiumCredits-owned"></p>
|
|
||||||
<form class="input-group" onsubmit="doAddCurrency('PremiumCredits');return false;">
|
|
||||||
<input class="form-control" id="PremiumCredits-delta" type="number" value="100" step="100" />
|
|
||||||
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="card mb-3">
|
|
||||||
<h5 class="card-header" data-loc="currency_FusionPoints"></h5>
|
|
||||||
<div class="card-body">
|
|
||||||
<p class="card-text" id="FusionPoints-owned"></p>
|
|
||||||
<form class="input-group" onsubmit="doAddCurrency('FusionPoints');return false;">
|
|
||||||
<input class="form-control" id="FusionPoints-delta" type="number" value="1000" step="1000" />
|
|
||||||
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="card mb-3">
|
|
||||||
<h5 class="card-header" data-loc="currency_PrimeTokens"></h5>
|
|
||||||
<div class="card-body">
|
|
||||||
<p class="card-text" id="PrimeTokens-owned"></p>
|
|
||||||
<form class="input-group" onsubmit="doAddCurrency('PrimeTokens');return false;">
|
|
||||||
<input class="form-control" id="PrimeTokens-delta" type="number" value="1" step="1" />
|
|
||||||
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<div class="card mb-3" style="height: 400px;">
|
<div class="card mb-3" style="height: 400px;">
|
||||||
@ -414,7 +364,7 @@
|
|||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<h5 class="card-header" data-loc="cheats_server"></h5>
|
<h5 class="card-header">Server</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div id="server-settings-no-perms" class="d-none">
|
<div id="server-settings-no-perms" class="d-none">
|
||||||
<p class="card-text" data-loc="cheats_administratorRequirement"></p>
|
<p class="card-text" data-loc="cheats_administratorRequirement"></p>
|
||||||
@ -515,15 +465,6 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p><button class="btn btn-primary" onclick="doUnlockAllFocusSchools();" data-loc="cheats_unlockAllFocusSchools"></button></p>
|
<p><button class="btn btn-primary" onclick="doUnlockAllFocusSchools();" data-loc="cheats_unlockAllFocusSchools"></button></p>
|
||||||
<button class="btn btn-primary" onclick="doHelminthUnlockAll();" data-loc="cheats_helminthUnlockAll"></button>
|
<button class="btn btn-primary" onclick="doHelminthUnlockAll();" data-loc="cheats_helminthUnlockAll"></button>
|
||||||
<form class="mt-2" onsubmit="doChangeSupportedSyndicate(); return false;">
|
|
||||||
<label class="form-label" for="changeSyndicate" data-loc="cheats_changeSupportedSyndicate"></label>
|
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="changeSyndicate">
|
|
||||||
<option value="" data-loc="cheats_none"></option>
|
|
||||||
</select>
|
|
||||||
<button class="btn btn-primary" type="submit" data-loc="cheats_changeButton"></button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -191,15 +191,6 @@ function fetchItemList() {
|
|||||||
});
|
});
|
||||||
} else if (type == "uniqueLevelCaps") {
|
} else if (type == "uniqueLevelCaps") {
|
||||||
uniqueLevelCaps = items;
|
uniqueLevelCaps = items;
|
||||||
} else if (type == "Syndicates") {
|
|
||||||
items.forEach(item => {
|
|
||||||
if (item.uniqueName.startsWith("RadioLegion")) item.name += " (" + item.uniqueName + ")";
|
|
||||||
const option = document.createElement("option");
|
|
||||||
option.value = item.uniqueName;
|
|
||||||
option.innerHTML = item.name;
|
|
||||||
document.getElementById("changeSyndicate").appendChild(option);
|
|
||||||
itemMap[item.uniqueName] = { ...item, type };
|
|
||||||
});
|
|
||||||
} else if (type != "badItems") {
|
} else if (type != "badItems") {
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
if (item.uniqueName in data.badItems) {
|
if (item.uniqueName in data.badItems) {
|
||||||
@ -227,15 +218,6 @@ function updateInventory() {
|
|||||||
window.didInitialInventoryUpdate = true;
|
window.didInitialInventoryUpdate = true;
|
||||||
|
|
||||||
// Populate inventory route
|
// Populate inventory route
|
||||||
[
|
|
||||||
"RegularCredits",
|
|
||||||
"PremiumCredits",
|
|
||||||
"FusionPoints",
|
|
||||||
"PrimeTokens"
|
|
||||||
].forEach(currency => {
|
|
||||||
document.getElementById(currency + "-owned").textContent = loc("currency_owned").split("|COUNT|").join(data[currency].toLocaleString());
|
|
||||||
});
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"Suits",
|
"Suits",
|
||||||
"SpaceSuits",
|
"SpaceSuits",
|
||||||
@ -542,8 +524,6 @@ function updateInventory() {
|
|||||||
single.loadRoute("/webui/inventory");
|
single.loadRoute("/webui/inventory");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("changeSyndicate").value = data.SupportedSyndicate ?? "";
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1116,25 +1096,3 @@ function doImport() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function doChangeSupportedSyndicate() {
|
|
||||||
const uniqueName = document.getElementById("changeSyndicate").value;
|
|
||||||
revalidateAuthz(() => {
|
|
||||||
$.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () {
|
|
||||||
updateInventory();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function doAddCurrency(currency) {
|
|
||||||
$.post({
|
|
||||||
url: "/custom/addCurrency?" + window.authz,
|
|
||||||
contentType: "application/json",
|
|
||||||
data: JSON.stringify({
|
|
||||||
currency,
|
|
||||||
delta: document.getElementById(currency + "-delta").valueAsNumber
|
|
||||||
})
|
|
||||||
}).then(function () {
|
|
||||||
updateInventory();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
dict = {
|
dict = {
|
||||||
general_inventoryUpdateNote: `Note: Changes made here will only be applied in-game when the game syncs the inventory. Visiting the navigation should be the easiest way to trigger that.`,
|
general_inventoryUpdateNote: `Note: Changes made here will only be reflected in-game when the game re-downloads your inventory. Visiting the navigation should be the easiest way to trigger that.`,
|
||||||
general_addButton: `Add`,
|
general_addButton: `Add`,
|
||||||
general_bulkActions: `Bulk Actions`,
|
general_bulkActions: `Bulk Actions`,
|
||||||
code_nonValidAuthz: `Your credentials are no longer valid.`,
|
code_nonValidAuthz: `Your credentials are no longer valid.`,
|
||||||
@ -72,11 +72,6 @@ dict = {
|
|||||||
inventory_bulkRankUpSpaceWeapons: `Max Rank All Archwing Weapons`,
|
inventory_bulkRankUpSpaceWeapons: `Max Rank All Archwing Weapons`,
|
||||||
inventory_bulkRankUpSentinels: `Max Rank All Sentinels`,
|
inventory_bulkRankUpSentinels: `Max Rank All Sentinels`,
|
||||||
inventory_bulkRankUpSentinelWeapons: `Max Rank All Sentinel Weapons`,
|
inventory_bulkRankUpSentinelWeapons: `Max Rank All Sentinel Weapons`,
|
||||||
currency_RegularCredits: `Credits`,
|
|
||||||
currency_PremiumCredits: `Platinum`,
|
|
||||||
currency_FusionPoints: `Endo`,
|
|
||||||
currency_PrimeTokens: `Regal Aya`,
|
|
||||||
currency_owned: `You have |COUNT|.`,
|
|
||||||
powersuit_archonShardsLabel: `Archon Shard Slots`,
|
powersuit_archonShardsLabel: `Archon Shard Slots`,
|
||||||
powersuit_archonShardsDescription: `You can use these unlimited slots to apply a wide range of upgrades`,
|
powersuit_archonShardsDescription: `You can use these unlimited slots to apply a wide range of upgrades`,
|
||||||
mods_addRiven: `Add Riven`,
|
mods_addRiven: `Add Riven`,
|
||||||
@ -86,7 +81,6 @@ dict = {
|
|||||||
mods_mods: `Mods`,
|
mods_mods: `Mods`,
|
||||||
mods_bulkAddMods: `Add Missing Mods`,
|
mods_bulkAddMods: `Add Missing Mods`,
|
||||||
cheats_administratorRequirement: `You must be an administrator to use this feature. To become an administrator, add <code>|DISPLAYNAME|</code> to <code>administratorNames</code> in the config.json.`,
|
cheats_administratorRequirement: `You must be an administrator to use this feature. To become an administrator, add <code>|DISPLAYNAME|</code> to <code>administratorNames</code> in the config.json.`,
|
||||||
cheats_server: `Server`,
|
|
||||||
cheats_skipTutorial: `Skip Tutorial`,
|
cheats_skipTutorial: `Skip Tutorial`,
|
||||||
cheats_skipAllDialogue: `Skip All Dialogue`,
|
cheats_skipAllDialogue: `Skip All Dialogue`,
|
||||||
cheats_unlockAllScans: `Unlock All Scans`,
|
cheats_unlockAllScans: `Unlock All Scans`,
|
||||||
@ -112,9 +106,6 @@ dict = {
|
|||||||
cheats_account: `Account`,
|
cheats_account: `Account`,
|
||||||
cheats_unlockAllFocusSchools: `Unlock All Focus Schools`,
|
cheats_unlockAllFocusSchools: `Unlock All Focus Schools`,
|
||||||
cheats_helminthUnlockAll: `Fully Level Up Helminth`,
|
cheats_helminthUnlockAll: `Fully Level Up Helminth`,
|
||||||
cheats_changeSupportedSyndicate: `Supported syndicate`,
|
|
||||||
cheats_changeButton: `Change`,
|
|
||||||
cheats_none: `None`,
|
|
||||||
import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer <b>will be overwritten</b> in your account.`,
|
import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer <b>will be overwritten</b> in your account.`,
|
||||||
import_submit: `Submit`,
|
import_submit: `Submit`,
|
||||||
}
|
}
|
@ -73,11 +73,6 @@ dict = {
|
|||||||
inventory_bulkRankUpSpaceWeapons: `Максимальный ранг всего оружия арчвингов`,
|
inventory_bulkRankUpSpaceWeapons: `Максимальный ранг всего оружия арчвингов`,
|
||||||
inventory_bulkRankUpSentinels: `Максимальный ранг всех стражей`,
|
inventory_bulkRankUpSentinels: `Максимальный ранг всех стражей`,
|
||||||
inventory_bulkRankUpSentinelWeapons: `Максимальный ранг всего оружия стражей`,
|
inventory_bulkRankUpSentinelWeapons: `Максимальный ранг всего оружия стражей`,
|
||||||
currency_RegularCredits: `Кредиты`,
|
|
||||||
currency_PremiumCredits: `Платина`,
|
|
||||||
currency_FusionPoints: `Эндо`,
|
|
||||||
currency_PrimeTokens: `Королевские Айя`,
|
|
||||||
currency_owned: `У тебя есть |COUNT|.`,
|
|
||||||
powersuit_archonShardsLabel: `Ячейки осколков архонта`,
|
powersuit_archonShardsLabel: `Ячейки осколков архонта`,
|
||||||
powersuit_archonShardsDescription: `Вы можете использовать эти неограниченные ячейки для установки множества улучшений.`,
|
powersuit_archonShardsDescription: `Вы можете использовать эти неограниченные ячейки для установки множества улучшений.`,
|
||||||
mods_addRiven: `Добавить Мод Разлома`,
|
mods_addRiven: `Добавить Мод Разлома`,
|
||||||
@ -87,7 +82,6 @@ dict = {
|
|||||||
mods_mods: `Моды`,
|
mods_mods: `Моды`,
|
||||||
mods_bulkAddMods: `Добавить отсутствующие моды`,
|
mods_bulkAddMods: `Добавить отсутствующие моды`,
|
||||||
cheats_administratorRequirement: `Вы должны быть администратором для использования этой функции. Чтобы стать администратором, добавьте <code>\"|DISPLAYNAME|\"</code> в <code>administratorNames</code> в config.json.`,
|
cheats_administratorRequirement: `Вы должны быть администратором для использования этой функции. Чтобы стать администратором, добавьте <code>\"|DISPLAYNAME|\"</code> в <code>administratorNames</code> в config.json.`,
|
||||||
cheats_server: `Сервер`,
|
|
||||||
cheats_skipTutorial: `Пропустить обучение`,
|
cheats_skipTutorial: `Пропустить обучение`,
|
||||||
cheats_skipAllDialogue: `Пропустить все диалоги`,
|
cheats_skipAllDialogue: `Пропустить все диалоги`,
|
||||||
cheats_unlockAllScans: `Разблокировать все сканирования`,
|
cheats_unlockAllScans: `Разблокировать все сканирования`,
|
||||||
@ -113,9 +107,6 @@ dict = {
|
|||||||
cheats_account: `Аккаунт`,
|
cheats_account: `Аккаунт`,
|
||||||
cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`,
|
cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`,
|
||||||
cheats_helminthUnlockAll: `Полностью улучшить Гельминта`,
|
cheats_helminthUnlockAll: `Полностью улучшить Гельминта`,
|
||||||
cheats_changeSupportedSyndicate: `Поддерживаемый синдикат`,
|
|
||||||
cheats_changeButton: `Изменить`,
|
|
||||||
cheats_none: `Отсутствует`,
|
|
||||||
import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
|
import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
|
||||||
import_submit: `Отправить`,
|
import_submit: `Отправить`,
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user