update PE+
This commit is contained in:
parent
a5fc6cd99d
commit
de655943fc
8
package-lock.json
generated
8
package-lock.json
generated
@ -12,7 +12,7 @@
|
|||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"express": "^5",
|
"express": "^5",
|
||||||
"mongoose": "^8.11.0",
|
"mongoose": "^8.11.0",
|
||||||
"warframe-public-export-plus": "^0.5.39",
|
"warframe-public-export-plus": "^0.5.40",
|
||||||
"warframe-riven-info": "^0.1.2",
|
"warframe-riven-info": "^0.1.2",
|
||||||
"winston": "^3.17.0",
|
"winston": "^3.17.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0"
|
"winston-daily-rotate-file": "^5.0.0"
|
||||||
@ -4083,9 +4083,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/warframe-public-export-plus": {
|
"node_modules/warframe-public-export-plus": {
|
||||||
"version": "0.5.39",
|
"version": "0.5.40",
|
||||||
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.39.tgz",
|
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.40.tgz",
|
||||||
"integrity": "sha512-sEGZedtW4I/M2ceoDs6MQ5eHD7sJgv1KRNLt8BWByXLuDa7qTR3Y9px5TGxqt/rBHKGUyPO1LUxu4bDGZi6yXw=="
|
"integrity": "sha512-/qr46LE/KqDdEkW4z52EG0vZP0Z8U26FscFJ2G5K5ewbQdlSVxtf5fpOnzRkAO7jWWKfgoqx7l5WUgaLSPDj0g=="
|
||||||
},
|
},
|
||||||
"node_modules/warframe-riven-info": {
|
"node_modules/warframe-riven-info": {
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"express": "^5",
|
"express": "^5",
|
||||||
"mongoose": "^8.11.0",
|
"mongoose": "^8.11.0",
|
||||||
"warframe-public-export-plus": "^0.5.39",
|
"warframe-public-export-plus": "^0.5.40",
|
||||||
"warframe-riven-info": "^0.1.2",
|
"warframe-riven-info": "^0.1.2",
|
||||||
"winston": "^3.17.0",
|
"winston": "^3.17.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0"
|
"winston-daily-rotate-file": "^5.0.0"
|
||||||
|
@ -7,7 +7,7 @@ import { IDojoContributable } from "@/src/types/guildTypes";
|
|||||||
import { IMiscItem } from "@/src/types/inventoryTypes/inventoryTypes";
|
import { IMiscItem } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||||
import { IInventoryChanges } from "@/src/types/purchaseTypes";
|
import { IInventoryChanges } from "@/src/types/purchaseTypes";
|
||||||
import { RequestHandler } from "express";
|
import { RequestHandler } from "express";
|
||||||
import { ExportDojoRecipes, IDojoRecipe } from "warframe-public-export-plus";
|
import { ExportDojoRecipes, IDojoBuild } from "warframe-public-export-plus";
|
||||||
|
|
||||||
interface IContributeToDojoComponentRequest {
|
interface IContributeToDojoComponentRequest {
|
||||||
ComponentId: string;
|
ComponentId: string;
|
||||||
@ -57,7 +57,7 @@ const processContribution = (
|
|||||||
request: IContributeToDojoComponentRequest,
|
request: IContributeToDojoComponentRequest,
|
||||||
inventory: TInventoryDatabaseDocument,
|
inventory: TInventoryDatabaseDocument,
|
||||||
inventoryChanges: IInventoryChanges,
|
inventoryChanges: IInventoryChanges,
|
||||||
meta: IDojoRecipe,
|
meta: IDojoBuild,
|
||||||
component: IDojoContributable
|
component: IDojoContributable
|
||||||
): void => {
|
): void => {
|
||||||
component.RegularCredits ??= 0;
|
component.RegularCredits ??= 0;
|
||||||
|
@ -3,7 +3,7 @@ import { getInventory, updateCurrency } from "@/src/services/inventoryService";
|
|||||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||||
import { IDojoContributable } from "@/src/types/guildTypes";
|
import { IDojoContributable } from "@/src/types/guildTypes";
|
||||||
import { RequestHandler } from "express";
|
import { RequestHandler } from "express";
|
||||||
import { ExportDojoRecipes, IDojoRecipe } from "warframe-public-export-plus";
|
import { ExportDojoRecipes, IDojoBuild } from "warframe-public-export-plus";
|
||||||
|
|
||||||
interface IDojoComponentRushRequest {
|
interface IDojoComponentRushRequest {
|
||||||
DecoType?: string;
|
DecoType?: string;
|
||||||
@ -40,7 +40,7 @@ export const dojoComponentRushController: RequestHandler = async (req, res) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const processContribution = (component: IDojoContributable, meta: IDojoRecipe, platinumDonated: number): void => {
|
const processContribution = (component: IDojoContributable, meta: IDojoBuild, platinumDonated: number): void => {
|
||||||
const fullPlatinumCost = scaleRequiredCount(meta.skipTimePrice);
|
const fullPlatinumCost = scaleRequiredCount(meta.skipTimePrice);
|
||||||
const fullDurationSeconds = meta.time;
|
const fullDurationSeconds = meta.time;
|
||||||
const secondsPerPlatinum = fullDurationSeconds / fullPlatinumCost;
|
const secondsPerPlatinum = fullDurationSeconds / fullPlatinumCost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user