Compare commits

..

No commits in common. "4504b95977342e993b4e0b47879b89377c3a83ea" and "eb3acad59866d6c52d1e6adea4fe730313c25200" have entirely different histories.

10 changed files with 4 additions and 78 deletions

View File

@ -8,7 +8,6 @@ import {
ExportRecipes,
ExportResources,
ExportSentinels,
ExportSyndicates,
ExportUpgrades,
ExportWarframes,
ExportWeapons
@ -37,7 +36,6 @@ const getItemListsController: RequestHandler = (req, response) => {
res.SpaceSuits = [];
res.MechSuits = [];
res.miscitems = [];
res.Syndicates = [];
for (const [uniqueName, item] of Object.entries(ExportWarframes)) {
if (
item.productCategory == "Suits" ||
@ -162,12 +160,6 @@ const getItemListsController: RequestHandler = (req, response) => {
badItems[uniqueName] = true;
}
}
for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) {
res.Syndicates.push({
uniqueName,
name: getString(syndicate.name, lang)
});
}
response.json({
badItems,

View File

@ -125,7 +125,6 @@ favouriteLoadoutSchema.set("toJSON", {
const tailorShopSchema = new Schema<ITailorShopDatabase>(
{
FavouriteLoadouts: [favouriteLoadoutSchema],
Colors: { type: colorSchema, required: false },
CustomJson: String,
LevelDecosVisible: Boolean,
Rooms: [roomSchema]

View File

@ -229,9 +229,6 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
if (client.FocusUpgrades !== undefined) {
db.FocusUpgrades = client.FocusUpgrades;
}
if (client.EvolutionProgress !== undefined) {
db.EvolutionProgress = client.EvolutionProgress;
}
if (client.InfestedFoundry !== undefined) {
db.InfestedFoundry = convertInfestedFoundry(client.InfestedFoundry);
}

View File

@ -347,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;
}

View File

@ -28,13 +28,7 @@ export const setShipCustomizations = async (
}
} else {
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;
}
await personalRooms.save();
}
};

View File

@ -84,15 +84,12 @@ export interface ISetShipCustomizationsRequest {
Customization: Customization;
IsExterior: boolean;
AirSupportPower?: string;
IsShop?: boolean;
}
export interface Customization {
SkinFlavourItem: string;
Colors: IColor;
ShipAttachments: ShipAttachments;
LevelDecosVisible: boolean;
CustomJson: string;
}
//TODO: check for more attachments
@ -158,12 +155,12 @@ export interface IFavouriteLoadoutDatabase {
export interface ITailorShopDatabase {
FavouriteLoadouts: IFavouriteLoadoutDatabase[];
Colors?: IColor;
CustomJson: string;
CustomJson: "{}"; // ???
LevelDecosVisible: boolean;
Rooms: IRoom[];
}
export interface ITailorShop extends Omit<ITailorShopDatabase, "FavouriteLoadouts"> {
FavouriteLoadouts: IFavouriteLoadout[];
Colors?: []; // ???
}

View File

@ -465,15 +465,6 @@
<div class="card-body">
<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>
<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>

View File

@ -191,15 +191,6 @@ function fetchItemList() {
});
} else if (type == "uniqueLevelCaps") {
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") {
items.forEach(item => {
if (item.uniqueName in data.badItems) {
@ -533,8 +524,6 @@ function updateInventory() {
single.loadRoute("/webui/inventory");
}
}
document.getElementById("changeSyndicate").value = data.SupportedSyndicate ?? "";
});
});
}
@ -1107,12 +1096,3 @@ function doImport() {
});
});
}
function doChangeSupportedSyndicate() {
const uniqueName = document.getElementById("changeSyndicate").value;
revalidateAuthz(() => {
$.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () {
updateInventory();
});
});
}

View File

@ -106,9 +106,6 @@ dict = {
cheats_account: `Account`,
cheats_unlockAllFocusSchools: `Unlock All Focus Schools`,
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_submit: `Submit`,
}

View File

@ -107,9 +107,6 @@ dict = {
cheats_account: `Аккаунт`,
cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`,
cheats_helminthUnlockAll: `Полностью улучшить Гельминта`,
cheats_changeSupportedSyndicate: `Поддерживаемый синдикат`,
cheats_changeButton: `Изменить`,
cheats_none: `Отсутствует`,
import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
import_submit: `Отправить`,
}