This commit is contained in:
Sainan 2025-01-19 04:01:51 +01:00
parent f93d8e0cee
commit 377e275742
2 changed files with 15 additions and 7 deletions

View File

@ -26,7 +26,11 @@ const getItemListsController: RequestHandler = (req, response) => {
res.miscitems = [];
for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
if (item.totalDamage !== 0) {
if (item.productCategory == "LongGuns" || item.productCategory == "Pistols" || item.productCategory == "Melee") {
if (
item.productCategory == "LongGuns" ||
item.productCategory == "Pistols" ||
item.productCategory == "Melee"
) {
res[item.productCategory].push({
uniqueName,
name: getString(item.name, lang)

View File

@ -553,7 +553,9 @@ $("input[list]").on("input", function () {
function doAcquireWeapon(category) {
const uniqueName = getKey(document.getElementById("acquire-type-" + category));
if (!uniqueName) {
$("#acquire-type-" + category).addClass("is-invalid").focus();
$("#acquire-type-" + category)
.addClass("is-invalid")
.focus();
return;
}
revalidateAuthz(() => {
@ -644,11 +646,13 @@ function maxRankAllWarframes() {
function addMissingWeapons() {
const requests = [];
document.querySelectorAll("#datalist-LongGuns option, #datalist-Pistols option, #datalist-Melee option").forEach(elm => {
if (!document.querySelector("#weapon-list [data-item-type='" + elm.getAttribute("data-key") + "']")) {
requests.push({ type: "Weapon", internalName: elm.getAttribute("data-key") });
}
});
document
.querySelectorAll("#datalist-LongGuns option, #datalist-Pistols option, #datalist-Melee option")
.forEach(elm => {
if (!document.querySelector("#weapon-list [data-item-type='" + elm.getAttribute("data-key") + "']")) {
requests.push({ type: "Weapon", internalName: elm.getAttribute("data-key") });
}
});
if (
requests.length != 0 &&
window.confirm("Are you sure you want to add " + requests.length + " items to your account?")