merge upstream
This commit is contained in:
commit
1ccfb64496
@ -10,6 +10,8 @@ To get an idea of what functionality you can expect to be missing [have a look t
|
||||
|
||||
## config.json
|
||||
|
||||
SpaceNinjaServer requires a `config.json`. To set it up, you can copy the [config.json.example](config.json.example), which has most cheats disabled.
|
||||
|
||||
- `logger.level` can be `fatal`, `error`, `warn`, `info`, `http`, `debug`, or `trace`.
|
||||
- `myIrcAddresses` can be used to point to an IRC server. If not provided, defaults to `[ myAddress ]`.
|
||||
- `worldState.lockTime` will lock the time provided in worldState if nonzero, e.g. `1743202800` for night in POE.
|
||||
|
@ -29,6 +29,7 @@
|
||||
"unlockExilusEverywhere": false,
|
||||
"unlockArcanesEverywhere": false,
|
||||
"noDailyStandingLimits": false,
|
||||
"noDailyFocusLimit": false,
|
||||
"noArgonCrystalDecay": false,
|
||||
"noMasteryRankUpCooldown": false,
|
||||
"noVendorPurchaseLimits": true,
|
||||
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -18,7 +18,7 @@
|
||||
"morgan": "^1.10.0",
|
||||
"ncp": "^2.0.0",
|
||||
"typescript": "^5.5",
|
||||
"warframe-public-export-plus": "^0.5.54",
|
||||
"warframe-public-export-plus": "^0.5.55",
|
||||
"warframe-riven-info": "^0.1.2",
|
||||
"winston": "^3.17.0",
|
||||
"winston-daily-rotate-file": "^5.0.0"
|
||||
@ -3789,9 +3789,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/warframe-public-export-plus": {
|
||||
"version": "0.5.54",
|
||||
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.54.tgz",
|
||||
"integrity": "sha512-27r6qLErr3P8UVDiEzhDAs/BjdAS3vI2CQ58jSI+LClDlj6QL+y1jQe8va/npl3Ft2K8PywLkZ8Yso0j9YzvOA=="
|
||||
"version": "0.5.55",
|
||||
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.55.tgz",
|
||||
"integrity": "sha512-Gnd4FCBVuxm2xWGfu8xxxqPIPSnnTqiEWlpP3rsFpVlQs09RNFnW2PEX9rCZt0f3SvHBv5ssDDrFlzgBHS1yrA=="
|
||||
},
|
||||
"node_modules/warframe-riven-info": {
|
||||
"version": "0.1.2",
|
||||
|
@ -25,7 +25,7 @@
|
||||
"morgan": "^1.10.0",
|
||||
"ncp": "^2.0.0",
|
||||
"typescript": "^5.5",
|
||||
"warframe-public-export-plus": "^0.5.54",
|
||||
"warframe-public-export-plus": "^0.5.55",
|
||||
"warframe-riven-info": "^0.1.2",
|
||||
"winston": "^3.17.0",
|
||||
"winston-daily-rotate-file": "^5.0.0"
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { toMongoDate } from "@/src/helpers/inventoryHelpers";
|
||||
import { getJSONfromString } from "@/src/helpers/stringHelpers";
|
||||
import { Guild, GuildMember } from "@/src/models/guildModel";
|
||||
import { config } from "@/src/services/configService";
|
||||
import { createMessage } from "@/src/services/inboxService";
|
||||
import { Guild } from "@/src/models/guildModel";
|
||||
import { checkClanAscensionHasRequiredContributors } from "@/src/services/guildService";
|
||||
import { getInventory } from "@/src/services/inventoryService";
|
||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import { RequestHandler } from "express";
|
||||
@ -31,43 +30,7 @@ export const contributeGuildClassController: RequestHandler = async (req, res) =
|
||||
|
||||
guild.CeremonyContributors.push(new Types.ObjectId(accountId));
|
||||
|
||||
// Once required contributor count is hit, the class is committed and there's 72 hours to claim endo.
|
||||
if (guild.CeremonyContributors.length == payload.RequiredContributors) {
|
||||
guild.Class = guild.CeremonyClass!;
|
||||
guild.CeremonyClass = undefined;
|
||||
guild.CeremonyResetDate = new Date(Date.now() + (config.fastClanAscension ? 5_000 : 72 * 3600_000));
|
||||
if (!config.fastClanAscension) {
|
||||
// Send message to all active guild members
|
||||
const members = await GuildMember.find({ guildId: payload.GuildId, status: 0 }, "accountId");
|
||||
for (const member of members) {
|
||||
// somewhat unfaithful as on live the "msg" is not a loctag, but since we don't have the string, we'll let the client fill it in with "arg".
|
||||
await createMessage(member.accountId, [
|
||||
{
|
||||
sndr: guild.Name,
|
||||
msg: "/Lotus/Language/Clan/Clan_AscensionCeremonyInProgressDetails",
|
||||
arg: [
|
||||
{
|
||||
Key: "RESETDATE",
|
||||
Tag:
|
||||
guild.CeremonyResetDate.getUTCMonth() +
|
||||
"/" +
|
||||
guild.CeremonyResetDate.getUTCDate() +
|
||||
"/" +
|
||||
(guild.CeremonyResetDate.getUTCFullYear() % 100) +
|
||||
" " +
|
||||
guild.CeremonyResetDate.getUTCHours().toString().padStart(2, "0") +
|
||||
":" +
|
||||
guild.CeremonyResetDate.getUTCMinutes().toString().padStart(2, "0")
|
||||
}
|
||||
],
|
||||
sub: "/Lotus/Language/Clan/Clan_AscensionCeremonyInProgress",
|
||||
icon: "/Lotus/Interface/Graphics/ClanTileImages/ClanEnterDojo.png",
|
||||
highPriority: true
|
||||
}
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
await checkClanAscensionHasRequiredContributors(guild);
|
||||
|
||||
await guild.save();
|
||||
|
||||
|
41
src/controllers/api/crewShipIdentifySalvageController.ts
Normal file
41
src/controllers/api/crewShipIdentifySalvageController.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import { addCrewShipSalvagedWeaponSkin, addCrewShipRawSalvage, getInventory } from "@/src/services/inventoryService";
|
||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import { RequestHandler } from "express";
|
||||
import { IInnateDamageFingerprint } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import { ExportCustoms } from "warframe-public-export-plus";
|
||||
import { IFingerprintStat } from "@/src/helpers/rivenHelper";
|
||||
import { getJSONfromString } from "@/src/helpers/stringHelpers";
|
||||
import { IInventoryChanges } from "@/src/types/purchaseTypes";
|
||||
|
||||
export const crewShipIdentifySalvageController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
const inventory = await getInventory(accountId, "CrewShipSalvagedWeaponSkins CrewShipRawSalvage");
|
||||
const payload = getJSONfromString<ICrewShipIdentifySalvageRequest>(String(req.body));
|
||||
|
||||
const buffs: IFingerprintStat[] = [];
|
||||
for (const upgrade of ExportCustoms[payload.ItemType].randomisedUpgrades!) {
|
||||
buffs.push({ Tag: upgrade.tag, Value: Math.trunc(Math.random() * 0x40000000) });
|
||||
}
|
||||
const inventoryChanges: IInventoryChanges = addCrewShipSalvagedWeaponSkin(
|
||||
inventory,
|
||||
payload.ItemType,
|
||||
JSON.stringify({ compat: payload.ItemType, buffs } satisfies IInnateDamageFingerprint)
|
||||
);
|
||||
|
||||
inventoryChanges.CrewShipRawSalvage = [
|
||||
{
|
||||
ItemType: payload.ItemType,
|
||||
ItemCount: -1
|
||||
}
|
||||
];
|
||||
addCrewShipRawSalvage(inventory, inventoryChanges.CrewShipRawSalvage);
|
||||
|
||||
await inventory.save();
|
||||
res.json({
|
||||
InventoryChanges: inventoryChanges
|
||||
});
|
||||
};
|
||||
|
||||
interface ICrewShipIdentifySalvageRequest {
|
||||
ItemType: string;
|
||||
}
|
@ -1,14 +1,12 @@
|
||||
import { Inventory } from "@/src/models/inventoryModels/inventoryModel";
|
||||
import { generateRewardSeed } from "@/src/services/inventoryService";
|
||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import { logger } from "@/src/utils/logger";
|
||||
import { RequestHandler } from "express";
|
||||
|
||||
export const getNewRewardSeedController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
|
||||
const rewardSeed = generateRewardSeed();
|
||||
logger.debug(`generated new reward seed: ${rewardSeed}`);
|
||||
await Inventory.updateOne(
|
||||
{
|
||||
accountOwnerId: accountId
|
||||
|
@ -16,7 +16,7 @@ export const giveQuestKeyRewardController: RequestHandler = async (req, res) =>
|
||||
const inventory = await getInventory(accountId);
|
||||
const inventoryChanges = await addItem(inventory, reward.ItemType, reward.Amount);
|
||||
await inventory.save();
|
||||
res.json(inventoryChanges.InventoryChanges);
|
||||
res.json(inventoryChanges);
|
||||
//TODO: consider whishlist changes
|
||||
};
|
||||
|
20
src/controllers/api/giveShipDecoAndLoreFragmentController.ts
Normal file
20
src/controllers/api/giveShipDecoAndLoreFragmentController.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { getJSONfromString } from "@/src/helpers/stringHelpers";
|
||||
import { addLoreFragmentScans, addShipDecorations, getInventory } from "@/src/services/inventoryService";
|
||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import { ILoreFragmentScan, ITypeCount } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import { RequestHandler } from "express";
|
||||
|
||||
export const giveShipDecoAndLoreFragmentController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
const inventory = await getInventory(accountId, "LoreFragmentScans ShipDecorations");
|
||||
const data = getJSONfromString<IGiveShipDecoAndLoreFragmentRequest>(String(req.body));
|
||||
addLoreFragmentScans(inventory, data.LoreFragmentScans);
|
||||
addShipDecorations(inventory, data.ShipDecorations);
|
||||
await inventory.save();
|
||||
res.end();
|
||||
};
|
||||
|
||||
interface IGiveShipDecoAndLoreFragmentRequest {
|
||||
LoreFragmentScans: ILoreFragmentScan[];
|
||||
ShipDecorations: ITypeCount[];
|
||||
}
|
@ -14,20 +14,23 @@ import {
|
||||
import { ExportDojoRecipes } from "warframe-public-export-plus";
|
||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import {
|
||||
addCrewShipWeaponSkin,
|
||||
addItem,
|
||||
addMiscItems,
|
||||
addRecipes,
|
||||
combineInventoryChanges,
|
||||
getInventory,
|
||||
occupySlot,
|
||||
updateCurrency
|
||||
} from "@/src/services/inventoryService";
|
||||
import { IMiscItem } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import { IMiscItem, InventorySlot } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import { IInventoryChanges } from "@/src/types/purchaseTypes";
|
||||
import { config } from "@/src/services/configService";
|
||||
import { GuildPermission, ITechProjectClient } from "@/src/types/guildTypes";
|
||||
import { GuildMember } from "@/src/models/guildModel";
|
||||
import { toMongoDate } from "@/src/helpers/inventoryHelpers";
|
||||
import { logger } from "@/src/utils/logger";
|
||||
import { TInventoryDatabaseDocument } from "@/src/models/inventoryModels/inventoryModel";
|
||||
|
||||
export const guildTechController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
@ -99,6 +102,8 @@ export const guildTechController: RequestHandler = async (req, res) => {
|
||||
State: 0,
|
||||
ReqCredits: recipe.price,
|
||||
ItemType: data.RecipeType,
|
||||
ProductCategory: data.TechProductCategory,
|
||||
CategoryItemId: data.CategoryItemId,
|
||||
ReqItems: recipe.ingredients
|
||||
}) - 1
|
||||
];
|
||||
@ -222,12 +227,16 @@ export const guildTechController: RequestHandler = async (req, res) => {
|
||||
});
|
||||
}
|
||||
} else if (data.Action.split(",")[0] == "Buy") {
|
||||
const purchase = data as IGuildTechBuyRequest;
|
||||
if (purchase.Mode == "Guild") {
|
||||
const guild = await getGuildForRequestEx(req, inventory);
|
||||
if (!hasAccessToDojo(inventory) || !(await hasGuildPermission(guild, accountId, GuildPermission.Fabricator))) {
|
||||
if (
|
||||
!hasAccessToDojo(inventory) ||
|
||||
!(await hasGuildPermission(guild, accountId, GuildPermission.Fabricator))
|
||||
) {
|
||||
res.status(400).send("-1").end();
|
||||
return;
|
||||
}
|
||||
const purchase = data as IGuildTechBuyRequest;
|
||||
const quantity = parseInt(data.Action.split(",")[1]);
|
||||
const recipeChanges = [
|
||||
{
|
||||
@ -249,6 +258,13 @@ export const guildTechController: RequestHandler = async (req, res) => {
|
||||
Recipes: recipeChanges
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const inventoryChanges = claimSalvagedComponent(inventory, purchase.CategoryItemId!);
|
||||
await inventory.save();
|
||||
res.json({
|
||||
inventoryChanges: inventoryChanges
|
||||
});
|
||||
}
|
||||
} else if (data.Action == "Fabricate") {
|
||||
const guild = await getGuildForRequestEx(req, inventory);
|
||||
if (!hasAccessToDojo(inventory) || !(await hasGuildPermission(guild, accountId, GuildPermission.Fabricator))) {
|
||||
@ -289,9 +305,18 @@ export const guildTechController: RequestHandler = async (req, res) => {
|
||||
guild.ActiveDojoColorResearch = data.RecipeType;
|
||||
await guild.save();
|
||||
res.end();
|
||||
} else if (data.Action == "Rush" && data.CategoryItemId) {
|
||||
const inventoryChanges: IInventoryChanges = {
|
||||
...updateCurrency(inventory, 20, true),
|
||||
...claimSalvagedComponent(inventory, data.CategoryItemId)
|
||||
};
|
||||
await inventory.save();
|
||||
res.json({
|
||||
inventoryChanges: inventoryChanges
|
||||
});
|
||||
} else {
|
||||
logger.debug(`data provided to ${req.path}: ${String(req.body)}`);
|
||||
throw new Error(`unknown guildTech action: ${data.Action}`);
|
||||
throw new Error(`unhandled guildTech request`);
|
||||
}
|
||||
};
|
||||
|
||||
@ -301,15 +326,15 @@ type TGuildTechRequest =
|
||||
| IGuildTechContributeRequest;
|
||||
|
||||
interface IGuildTechBasicRequest {
|
||||
Action: "Start" | "Fabricate" | "Pause" | "Unpause";
|
||||
Action: "Start" | "Fabricate" | "Pause" | "Unpause" | "Cancel" | "Rush";
|
||||
Mode: "Guild" | "Personal";
|
||||
RecipeType: string;
|
||||
TechProductCategory?: string;
|
||||
CategoryItemId?: string;
|
||||
}
|
||||
|
||||
interface IGuildTechBuyRequest {
|
||||
interface IGuildTechBuyRequest extends Omit<IGuildTechBasicRequest, "Action"> {
|
||||
Action: string;
|
||||
Mode: "Guild";
|
||||
RecipeType: string;
|
||||
}
|
||||
|
||||
interface IGuildTechContributeRequest {
|
||||
@ -321,3 +346,30 @@ interface IGuildTechContributeRequest {
|
||||
VaultCredits: number;
|
||||
VaultMiscItems: IMiscItem[];
|
||||
}
|
||||
|
||||
const claimSalvagedComponent = (inventory: TInventoryDatabaseDocument, itemId: string): IInventoryChanges => {
|
||||
// delete personal tech project
|
||||
const personalTechProjectIndex = inventory.PersonalTechProjects.findIndex(x => x.CategoryItemId?.equals(itemId));
|
||||
if (personalTechProjectIndex != -1) {
|
||||
inventory.PersonalTechProjects.splice(personalTechProjectIndex, 1);
|
||||
}
|
||||
|
||||
// find salved part & delete it
|
||||
const crewShipSalvagedWeaponSkinsIndex = inventory.CrewShipSalvagedWeaponSkins.findIndex(x => x._id.equals(itemId));
|
||||
const crewShipWeaponSkin = inventory.CrewShipSalvagedWeaponSkins[crewShipSalvagedWeaponSkinsIndex];
|
||||
inventory.CrewShipSalvagedWeaponSkins.splice(crewShipSalvagedWeaponSkinsIndex, 1);
|
||||
|
||||
// add final item
|
||||
const inventoryChanges = {
|
||||
...addCrewShipWeaponSkin(inventory, crewShipWeaponSkin.ItemType, crewShipWeaponSkin.UpgradeFingerprint),
|
||||
...occupySlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS, false)
|
||||
};
|
||||
|
||||
inventoryChanges.RemovedIdItems = [
|
||||
{
|
||||
ItemId: { $oid: itemId }
|
||||
}
|
||||
];
|
||||
|
||||
return inventoryChanges;
|
||||
};
|
||||
|
@ -149,7 +149,7 @@ export const getInventoryResponse = async (
|
||||
inventoryResponse.ShipDecorations = [];
|
||||
for (const [uniqueName, item] of Object.entries(ExportResources)) {
|
||||
if (item.productCategory == "ShipDecorations") {
|
||||
inventoryResponse.ShipDecorations.push({ ItemType: uniqueName, ItemCount: 1 });
|
||||
inventoryResponse.ShipDecorations.push({ ItemType: uniqueName, ItemCount: 999_999 });
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -258,6 +258,10 @@ export const getInventoryResponse = async (
|
||||
}
|
||||
}
|
||||
|
||||
if (config.noDailyFocusLimit) {
|
||||
inventoryResponse.DailyFocus = Math.max(999_999, 250000 + inventoryResponse.PlayerLevel * 5000);
|
||||
}
|
||||
|
||||
if (inventoryResponse.InfestedFoundry) {
|
||||
applyCheatsToInfestedFoundry(inventoryResponse.InfestedFoundry);
|
||||
}
|
||||
|
@ -6,9 +6,12 @@ import {
|
||||
addRecipes,
|
||||
addMiscItems,
|
||||
addConsumables,
|
||||
freeUpSlot
|
||||
freeUpSlot,
|
||||
combineInventoryChanges
|
||||
} from "@/src/services/inventoryService";
|
||||
import { InventorySlot } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import { ExportDojoRecipes } from "warframe-public-export-plus";
|
||||
import { IInventoryChanges } from "@/src/types/purchaseTypes";
|
||||
|
||||
export const sellController: RequestHandler = async (req, res) => {
|
||||
const payload = JSON.parse(String(req.body)) as ISellRequest;
|
||||
@ -48,6 +51,9 @@ export const sellController: RequestHandler = async (req, res) => {
|
||||
if (payload.Items.Hoverboards) {
|
||||
requiredFields.add(InventorySlot.SPACESUITS);
|
||||
}
|
||||
if (payload.Items.CrewShipWeapons) {
|
||||
requiredFields.add(InventorySlot.RJ_COMPONENT_AND_ARMAMENTS);
|
||||
}
|
||||
const inventory = await getInventory(accountId, Array.from(requiredFields).join(" "));
|
||||
|
||||
// Give currency
|
||||
@ -69,10 +75,14 @@ export const sellController: RequestHandler = async (req, res) => {
|
||||
ItemCount: payload.SellPrice
|
||||
}
|
||||
]);
|
||||
} else if (payload.SellCurrency == "SC_Resources") {
|
||||
// Will add appropriate MiscItems from CrewShipWeapons
|
||||
} else {
|
||||
throw new Error("Unknown SellCurrency: " + payload.SellCurrency);
|
||||
}
|
||||
|
||||
const inventoryChanges: IInventoryChanges = {};
|
||||
|
||||
// Remove item(s)
|
||||
if (payload.Items.Suits) {
|
||||
payload.Items.Suits.forEach(sellItem => {
|
||||
@ -145,6 +155,24 @@ export const sellController: RequestHandler = async (req, res) => {
|
||||
inventory.Drones.pull({ _id: sellItem.String });
|
||||
});
|
||||
}
|
||||
if (payload.Items.CrewShipWeapons) {
|
||||
payload.Items.CrewShipWeapons.forEach(sellItem => {
|
||||
const index = inventory.CrewShipWeapons.findIndex(x => x._id.equals(sellItem.String));
|
||||
if (index != -1) {
|
||||
const itemType = inventory.CrewShipWeapons[index].ItemType;
|
||||
const recipe = Object.values(ExportDojoRecipes.fabrications).find(x => x.resultType == itemType)!;
|
||||
const miscItemChanges = recipe.ingredients.map(x => ({
|
||||
ItemType: x.ItemType,
|
||||
ItemCount: Math.trunc(x.ItemCount * 0.8)
|
||||
}));
|
||||
addMiscItems(inventory, miscItemChanges);
|
||||
combineInventoryChanges(inventoryChanges, { MiscItems: miscItemChanges });
|
||||
|
||||
inventory.CrewShipWeapons.splice(index, 1);
|
||||
freeUpSlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (payload.Items.Consumables) {
|
||||
const consumablesChanges = [];
|
||||
for (const sellItem of payload.Items.Consumables) {
|
||||
@ -191,7 +219,9 @@ export const sellController: RequestHandler = async (req, res) => {
|
||||
}
|
||||
|
||||
await inventory.save();
|
||||
res.json({});
|
||||
res.json({
|
||||
inventoryChanges: inventoryChanges // "inventoryChanges" for this response instead of the usual "InventoryChanges"
|
||||
});
|
||||
};
|
||||
|
||||
interface ISellRequest {
|
||||
@ -212,6 +242,7 @@ interface ISellRequest {
|
||||
OperatorAmps?: ISellItem[];
|
||||
Hoverboards?: ISellItem[];
|
||||
Drones?: ISellItem[];
|
||||
CrewShipWeapons?: ISellItem[];
|
||||
};
|
||||
SellPrice: number;
|
||||
SellCurrency:
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||||
import { ISetPlacedDecoInfoRequest } from "@/src/types/shipTypes";
|
||||
import { IPictureFrameInfo, ISetPlacedDecoInfoRequest } from "@/src/types/shipTypes";
|
||||
import { RequestHandler } from "express";
|
||||
import { handleSetPlacedDecoInfo } from "@/src/services/shipCustomizationsService";
|
||||
|
||||
@ -7,5 +7,17 @@ export const setPlacedDecoInfoController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
const payload = JSON.parse(req.body as string) as ISetPlacedDecoInfoRequest;
|
||||
await handleSetPlacedDecoInfo(accountId, payload);
|
||||
res.end();
|
||||
res.json({
|
||||
DecoId: payload.DecoId,
|
||||
IsPicture: true,
|
||||
PictureFrameInfo: payload.PictureFrameInfo,
|
||||
BootLocation: payload.BootLocation
|
||||
} satisfies ISetPlacedDecoInfoResponse);
|
||||
};
|
||||
|
||||
interface ISetPlacedDecoInfoResponse {
|
||||
DecoId: string;
|
||||
IsPicture: boolean;
|
||||
PictureFrameInfo?: IPictureFrameInfo;
|
||||
BootLocation?: string;
|
||||
}
|
||||
|
@ -25,7 +25,13 @@ export const upgradesController: RequestHandler = async (req, res) => {
|
||||
operation.UpgradeRequirement == "/Lotus/Types/Items/MiscItems/CustomizationSlotUnlocker"
|
||||
) {
|
||||
updateCurrency(inventory, 10, true);
|
||||
} else if (operation.OperationType != "UOT_ABILITY_OVERRIDE") {
|
||||
} else if (
|
||||
operation.OperationType != "UOT_SWAP_POLARITY" &&
|
||||
operation.OperationType != "UOT_ABILITY_OVERRIDE"
|
||||
) {
|
||||
if (!operation.UpgradeRequirement) {
|
||||
throw new Error(`${operation.OperationType} operation should be free?`);
|
||||
}
|
||||
addMiscItems(inventory, [
|
||||
{
|
||||
ItemType: operation.UpgradeRequirement,
|
||||
|
@ -3,6 +3,7 @@ import { getDict, getItemName, getString } from "@/src/services/itemDataService"
|
||||
import {
|
||||
ExportArcanes,
|
||||
ExportAvionics,
|
||||
ExportCustoms,
|
||||
ExportDrones,
|
||||
ExportGear,
|
||||
ExportKeys,
|
||||
@ -171,6 +172,12 @@ const getItemListsController: RequestHandler = (req, response) => {
|
||||
name: getString(item.name, lang)
|
||||
});
|
||||
}
|
||||
for (const [uniqueName, item] of Object.entries(ExportCustoms)) {
|
||||
res.miscitems.push({
|
||||
uniqueName: uniqueName,
|
||||
name: getString(item.name, lang)
|
||||
});
|
||||
}
|
||||
|
||||
res.mods = [];
|
||||
for (const [uniqueName, upgrade] of Object.entries(ExportUpgrades)) {
|
||||
|
@ -56,15 +56,12 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
|
||||
break;
|
||||
}
|
||||
case "deleteKey": {
|
||||
if (allQuestKeys.includes(questItemType)) {
|
||||
const questKey = inventory.QuestKeys.find(key => key.ItemType === questItemType);
|
||||
if (!questKey) {
|
||||
logger.error(`Quest key not found in inventory: ${questItemType}`);
|
||||
break;
|
||||
}
|
||||
|
||||
inventory.QuestKeys.pull({ ItemType: questItemType });
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "completeKey": {
|
||||
|
@ -504,6 +504,8 @@ const personalTechProjectSchema = new Schema<IPersonalTechProjectDatabase>({
|
||||
State: Number,
|
||||
ReqCredits: Number,
|
||||
ItemType: String,
|
||||
ProductCategory: String,
|
||||
CategoryItemId: Schema.Types.ObjectId,
|
||||
ReqItems: { type: [typeCountSchema], default: undefined },
|
||||
HasContributions: Boolean,
|
||||
CompletionDate: Date
|
||||
@ -522,6 +524,9 @@ personalTechProjectSchema.set("toJSON", {
|
||||
const db = ret as IPersonalTechProjectDatabase;
|
||||
const client = ret as IPersonalTechProjectClient;
|
||||
|
||||
if (db.CategoryItemId) {
|
||||
client.CategoryItemId = toOid(db.CategoryItemId);
|
||||
}
|
||||
if (db.CompletionDate) {
|
||||
client.CompletionDate = toMongoDate(db.CompletionDate);
|
||||
}
|
||||
@ -1213,7 +1218,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||
accountOwnerId: Schema.Types.ObjectId,
|
||||
SubscribedToEmails: { type: Number, default: 0 },
|
||||
SubscribedToEmailsPersonalized: { type: Number, default: 0 },
|
||||
RewardSeed: Number,
|
||||
RewardSeed: BigInt,
|
||||
|
||||
//Credit
|
||||
RegularCredits: { type: Number, default: 0 },
|
||||
@ -1613,7 +1618,7 @@ export type InventoryDocumentProps = {
|
||||
QuestKeys: Types.DocumentArray<IQuestKeyDatabase>;
|
||||
Drones: Types.DocumentArray<IDroneDatabase>;
|
||||
CrewShipWeaponSkins: Types.DocumentArray<IUpgradeDatabase>;
|
||||
CrewShipSalvagedWeaponsSkins: Types.DocumentArray<IUpgradeDatabase>;
|
||||
CrewShipSalvagedWeaponSkins: Types.DocumentArray<IUpgradeDatabase>;
|
||||
PersonalTechProjects: Types.DocumentArray<IPersonalTechProjectDatabase>;
|
||||
} & { [K in TEquipmentKey]: Types.DocumentArray<IEquipmentDatabase> };
|
||||
|
||||
|
@ -27,6 +27,7 @@ import { contributeToVaultController } from "@/src/controllers/api/contributeToV
|
||||
import { createAllianceController } from "@/src/controllers/api/createAllianceController";
|
||||
import { createGuildController } from "@/src/controllers/api/createGuildController";
|
||||
import { creditsController } from "@/src/controllers/api/creditsController";
|
||||
import { crewShipIdentifySalvageController } from "@/src/controllers/api/crewShipIdentifySalvageController";
|
||||
import { customizeGuildRanksController } from "@/src/controllers/api/customizeGuildRanksController";
|
||||
import { customObstacleCourseLeaderboardController } from "@/src/controllers/api/customObstacleCourseLeaderboardController";
|
||||
import { declineAllianceInviteController } from "@/src/controllers/api/declineAllianceInviteController";
|
||||
@ -61,7 +62,8 @@ import { giftingController } from "@/src/controllers/api/giftingController";
|
||||
import { gildWeaponController } from "@/src/controllers/api/gildWeaponController";
|
||||
import { giveKeyChainTriggeredItemsController } from "@/src/controllers/api/giveKeyChainTriggeredItemsController";
|
||||
import { giveKeyChainTriggeredMessageController } from "@/src/controllers/api/giveKeyChainTriggeredMessageController";
|
||||
import { giveQuestKeyRewardController } from "@/src/controllers/api/giveQuestKey";
|
||||
import { giveQuestKeyRewardController } from "@/src/controllers/api/giveQuestKeyRewardController";
|
||||
import { giveShipDecoAndLoreFragmentController } from "@/src/controllers/api/giveShipDecoAndLoreFragmentController";
|
||||
import { giveStartingGearController } from "@/src/controllers/api/giveStartingGearController";
|
||||
import { guildTechController } from "@/src/controllers/api/guildTechController";
|
||||
import { hostSessionController } from "@/src/controllers/api/hostSessionController";
|
||||
@ -217,6 +219,7 @@ apiRouter.post("/contributeToDojoComponent.php", contributeToDojoComponentContro
|
||||
apiRouter.post("/contributeToVault.php", contributeToVaultController);
|
||||
apiRouter.post("/createAlliance.php", createAllianceController);
|
||||
apiRouter.post("/createGuild.php", createGuildController);
|
||||
apiRouter.post("/crewShipIdentifySalvage.php", crewShipIdentifySalvageController);
|
||||
apiRouter.post("/customizeGuildRanks.php", customizeGuildRanksController);
|
||||
apiRouter.post("/customObstacleCourseLeaderboard.php", customObstacleCourseLeaderboardController);
|
||||
apiRouter.post("/destroyDojoDeco.php", destroyDojoDecoController);
|
||||
@ -239,6 +242,7 @@ apiRouter.post("/gildWeapon.php", gildWeaponController);
|
||||
apiRouter.post("/giveKeyChainTriggeredItems.php", giveKeyChainTriggeredItemsController);
|
||||
apiRouter.post("/giveKeyChainTriggeredMessage.php", giveKeyChainTriggeredMessageController);
|
||||
apiRouter.post("/giveQuestKeyReward.php", giveQuestKeyRewardController);
|
||||
apiRouter.post("/giveShipDecoAndLoreFragment.php", giveShipDecoAndLoreFragmentController);
|
||||
apiRouter.post("/giveStartingGear.php", giveStartingGearController);
|
||||
apiRouter.post("/guildTech.php", guildTechController);
|
||||
apiRouter.post("/hostSession.php", hostSessionController);
|
||||
|
@ -35,6 +35,7 @@ interface IConfig {
|
||||
unlockExilusEverywhere?: boolean;
|
||||
unlockArcanesEverywhere?: boolean;
|
||||
noDailyStandingLimits?: boolean;
|
||||
noDailyFocusLimit?: boolean;
|
||||
noArgonCrystalDecay?: boolean;
|
||||
noMasteryRankUpCooldown?: boolean;
|
||||
noVendorPurchaseLimits?: boolean;
|
||||
|
@ -31,6 +31,7 @@ import { IFusionTreasure, ITypeCount } from "../types/inventoryTypes/inventoryTy
|
||||
import { IInventoryChanges } from "../types/purchaseTypes";
|
||||
import { parallelForeach } from "../utils/async-utils";
|
||||
import allDecoRecipes from "@/static/fixed_responses/allDecoRecipes.json";
|
||||
import { createMessage } from "./inboxService";
|
||||
|
||||
export const getGuildForRequest = async (req: Request): Promise<TGuildDatabaseDocument> => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
@ -601,6 +602,50 @@ const setGuildTier = async (guild: TGuildDatabaseDocument, newTier: number): Pro
|
||||
await processGuildTechProjectContributionsUpdate(guild, project);
|
||||
}
|
||||
}
|
||||
if (guild.CeremonyContributors) {
|
||||
await checkClanAscensionHasRequiredContributors(guild);
|
||||
}
|
||||
};
|
||||
|
||||
export const checkClanAscensionHasRequiredContributors = async (guild: TGuildDatabaseDocument): Promise<void> => {
|
||||
const requiredContributors = [1, 5, 15, 30, 50][guild.Tier - 1];
|
||||
// Once required contributor count is hit, the class is committed and there's 72 hours to claim endo.
|
||||
if (guild.CeremonyContributors!.length >= requiredContributors) {
|
||||
guild.Class = guild.CeremonyClass!;
|
||||
guild.CeremonyClass = undefined;
|
||||
guild.CeremonyResetDate = new Date(Date.now() + (config.fastClanAscension ? 5_000 : 72 * 3600_000));
|
||||
if (!config.fastClanAscension) {
|
||||
// Send message to all active guild members
|
||||
const members = await GuildMember.find({ guildId: guild._id, status: 0 }, "accountId");
|
||||
await parallelForeach(members, async member => {
|
||||
// somewhat unfaithful as on live the "msg" is not a loctag, but since we don't have the string, we'll let the client fill it in with "arg".
|
||||
await createMessage(member.accountId, [
|
||||
{
|
||||
sndr: guild.Name,
|
||||
msg: "/Lotus/Language/Clan/Clan_AscensionCeremonyInProgressDetails",
|
||||
arg: [
|
||||
{
|
||||
Key: "RESETDATE",
|
||||
Tag:
|
||||
guild.CeremonyResetDate!.getUTCMonth() +
|
||||
"/" +
|
||||
guild.CeremonyResetDate!.getUTCDate() +
|
||||
"/" +
|
||||
(guild.CeremonyResetDate!.getUTCFullYear() % 100) +
|
||||
" " +
|
||||
guild.CeremonyResetDate!.getUTCHours().toString().padStart(2, "0") +
|
||||
":" +
|
||||
guild.CeremonyResetDate!.getUTCMinutes().toString().padStart(2, "0")
|
||||
}
|
||||
],
|
||||
sub: "/Lotus/Language/Clan/Clan_AscensionCeremonyInProgress",
|
||||
icon: "/Lotus/Interface/Graphics/ClanTileImages/ClanEnterDojo.png",
|
||||
highPriority: true
|
||||
}
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const removeDojoKeyItems = (inventory: TInventoryDatabaseDocument): IInventoryChanges => {
|
||||
|
@ -21,7 +21,8 @@ import {
|
||||
ICalendarProgress,
|
||||
IDroneClient,
|
||||
IUpgradeClient,
|
||||
TPartialStartingGear
|
||||
TPartialStartingGear,
|
||||
ILoreFragmentScan
|
||||
} from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import { IGenericUpdate, IUpdateNodeIntrosResponse } from "../types/genericUpdate";
|
||||
import { IKeyChainRequest, IMissionInventoryUpdateRequest } from "../types/requestTypes";
|
||||
@ -407,8 +408,32 @@ export const addItem = async (
|
||||
const meta = ExportCustoms[typeName];
|
||||
let inventoryChanges: IInventoryChanges;
|
||||
if (meta.productCategory == "CrewShipWeaponSkins") {
|
||||
inventoryChanges = addCrewShipWeaponSkin(inventory, typeName);
|
||||
if (meta.subroutines || meta.randomisedUpgrades) {
|
||||
// House versions need to be identified to get stats so put them into raw salvage first.
|
||||
const rawSalvageChanges = [
|
||||
{
|
||||
ItemType: typeName,
|
||||
ItemCount: quantity
|
||||
}
|
||||
];
|
||||
addCrewShipRawSalvage(inventory, rawSalvageChanges);
|
||||
inventoryChanges = { CrewShipRawSalvage: rawSalvageChanges };
|
||||
} else {
|
||||
// Sigma versions can be added directly.
|
||||
if (quantity != 1) {
|
||||
throw new Error(
|
||||
`unexpected acquisition quantity of CrewShipWeaponSkin: got ${quantity}, expected 1`
|
||||
);
|
||||
}
|
||||
inventoryChanges = {
|
||||
...addCrewShipWeaponSkin(inventory, typeName, undefined),
|
||||
...occupySlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS, premiumPurchase)
|
||||
};
|
||||
}
|
||||
} else {
|
||||
if (quantity != 1) {
|
||||
throw new Error(`unexpected acquisition quantity of WeaponSkins: got ${quantity}, expected 1`);
|
||||
}
|
||||
inventoryChanges = addSkin(inventory, typeName);
|
||||
}
|
||||
if (meta.additionalItems) {
|
||||
@ -1082,12 +1107,14 @@ export const addSkin = (
|
||||
return inventoryChanges;
|
||||
};
|
||||
|
||||
const addCrewShipWeaponSkin = (
|
||||
export const addCrewShipWeaponSkin = (
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
typeName: string,
|
||||
upgradeFingerprint: string | undefined,
|
||||
inventoryChanges: IInventoryChanges = {}
|
||||
): IInventoryChanges => {
|
||||
const index = inventory.CrewShipWeaponSkins.push({ ItemType: typeName }) - 1;
|
||||
const index =
|
||||
inventory.CrewShipWeaponSkins.push({ ItemType: typeName, UpgradeFingerprint: upgradeFingerprint }) - 1;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
inventoryChanges.CrewShipWeaponSkins ??= [];
|
||||
(inventoryChanges.CrewShipWeaponSkins as IUpgradeClient[]).push(
|
||||
@ -1096,6 +1123,22 @@ const addCrewShipWeaponSkin = (
|
||||
return inventoryChanges;
|
||||
};
|
||||
|
||||
export const addCrewShipSalvagedWeaponSkin = (
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
typeName: string,
|
||||
upgradeFingerprint: string | undefined,
|
||||
inventoryChanges: IInventoryChanges = {}
|
||||
): IInventoryChanges => {
|
||||
const index =
|
||||
inventory.CrewShipSalvagedWeaponSkins.push({ ItemType: typeName, UpgradeFingerprint: upgradeFingerprint }) - 1;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
inventoryChanges.CrewShipSalvagedWeaponSkins ??= [];
|
||||
(inventoryChanges.CrewShipSalvagedWeaponSkins as IUpgradeClient[]).push(
|
||||
inventory.CrewShipSalvagedWeaponSkins[index].toJSON<IUpgradeClient>()
|
||||
);
|
||||
return inventoryChanges;
|
||||
};
|
||||
|
||||
const addCrewShip = (
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
typeName: string,
|
||||
@ -1347,7 +1390,20 @@ export const addFocusXpIncreases = (inventory: TInventoryDatabaseDocument, focus
|
||||
inventory.FocusXP.AP_POWER += focusXpPlus[FocusType.AP_POWER];
|
||||
inventory.FocusXP.AP_WARD += focusXpPlus[FocusType.AP_WARD];
|
||||
|
||||
if (!config.noDailyFocusLimit) {
|
||||
inventory.DailyFocus -= focusXpPlus.reduce((a, b) => a + b, 0);
|
||||
}
|
||||
};
|
||||
|
||||
export const addLoreFragmentScans = (inventory: TInventoryDatabaseDocument, arr: ILoreFragmentScan[]): void => {
|
||||
arr.forEach(clientFragment => {
|
||||
const fragment = inventory.LoreFragmentScans.find(x => x.ItemType == clientFragment.ItemType);
|
||||
if (fragment) {
|
||||
fragment.Progress += clientFragment.Progress;
|
||||
} else {
|
||||
inventory.LoreFragmentScans.push(clientFragment);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export const addChallenges = (
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
} from "warframe-public-export-plus";
|
||||
import { IMissionInventoryUpdateRequest, IRewardInfo } from "../types/requestTypes";
|
||||
import { logger } from "@/src/utils/logger";
|
||||
import { IRngResult, getRandomElement, getRandomReward } from "@/src/services/rngService";
|
||||
import { IRngResult, SRng, getRandomElement, getRandomReward } from "@/src/services/rngService";
|
||||
import { equipmentKeys, TEquipmentKey } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||
import {
|
||||
addBooster,
|
||||
@ -23,6 +23,7 @@ import {
|
||||
addGearExpByCategory,
|
||||
addItem,
|
||||
addLevelKeys,
|
||||
addLoreFragmentScans,
|
||||
addMiscItems,
|
||||
addMissionComplete,
|
||||
addMods,
|
||||
@ -30,6 +31,7 @@ import {
|
||||
addShipDecorations,
|
||||
addStanding,
|
||||
combineInventoryChanges,
|
||||
generateRewardSeed,
|
||||
updateCurrency,
|
||||
updateSyndicate
|
||||
} from "@/src/services/inventoryService";
|
||||
@ -53,7 +55,22 @@ import { Loadout } from "../models/inventoryModels/loadoutModel";
|
||||
import { ILoadoutConfigDatabase } from "../types/saveLoadoutTypes";
|
||||
import { getWorldState } from "./worldStateService";
|
||||
|
||||
const getRotations = (rotationCount: number, tierOverride: number | undefined): number[] => {
|
||||
const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[] => {
|
||||
// For Spy missions, e.g. 3 vaults cracked = A, B, C
|
||||
if (rewardInfo.VaultsCracked) {
|
||||
const rotations: number[] = [];
|
||||
for (let i = 0; i != rewardInfo.VaultsCracked; ++i) {
|
||||
rotations.push(i);
|
||||
}
|
||||
return rotations;
|
||||
}
|
||||
|
||||
// For Rescue missions
|
||||
if (rewardInfo.node in ExportRegions && ExportRegions[rewardInfo.node].missionIndex == 3 && rewardInfo.rewardTier) {
|
||||
return [rewardInfo.rewardTier];
|
||||
}
|
||||
|
||||
const rotationCount = rewardInfo.rewardQualifications?.length || 0;
|
||||
if (rotationCount === 0) return [0];
|
||||
|
||||
const rotationPattern =
|
||||
@ -69,7 +86,12 @@ const getRotations = (rotationCount: number, tierOverride: number | undefined):
|
||||
return rotatedValues;
|
||||
};
|
||||
|
||||
const getRandomRewardByChance = (pool: IReward[]): IRngResult | undefined => {
|
||||
const getRandomRewardByChance = (pool: IReward[], rng?: SRng): IRngResult | undefined => {
|
||||
if (rng) {
|
||||
const res = rng.randomReward(pool as IRngResult[]);
|
||||
rng.randomFloat(); // something related to rewards multiplier
|
||||
return res;
|
||||
}
|
||||
return getRandomReward(pool as IRngResult[]);
|
||||
};
|
||||
|
||||
@ -291,14 +313,7 @@ export const addMissionInventoryUpdates = async (
|
||||
break;
|
||||
}
|
||||
case "LoreFragmentScans":
|
||||
value.forEach(clientFragment => {
|
||||
const fragment = inventory.LoreFragmentScans.find(x => x.ItemType == clientFragment.ItemType);
|
||||
if (fragment) {
|
||||
fragment.Progress += clientFragment.Progress;
|
||||
} else {
|
||||
inventory.LoreFragmentScans.push(clientFragment);
|
||||
}
|
||||
});
|
||||
addLoreFragmentScans(inventory, value);
|
||||
break;
|
||||
case "LibraryScans":
|
||||
value.forEach(scan => {
|
||||
@ -554,6 +569,11 @@ export const addMissionRewards = async (
|
||||
return { MissionRewards: [] };
|
||||
}
|
||||
|
||||
if (rewardInfo.rewardSeed) {
|
||||
// We're using a reward seed, so give the client a new one in the response. On live, missionInventoryUpdate seems to always provide a fresh one in the response.
|
||||
inventory.RewardSeed = generateRewardSeed();
|
||||
}
|
||||
|
||||
//TODO: check double reward merging
|
||||
const MissionRewards: IMissionReward[] = getRandomMissionDrops(rewardInfo, wagerTier);
|
||||
logger.debug("random mission drops:", MissionRewards);
|
||||
@ -567,7 +587,7 @@ export const addMissionRewards = async (
|
||||
const fixedLevelRewards = getLevelKeyRewards(levelKeyName);
|
||||
//logger.debug(`fixedLevelRewards ${fixedLevelRewards}`);
|
||||
if (fixedLevelRewards.levelKeyRewards) {
|
||||
addFixedLevelRewards(fixedLevelRewards.levelKeyRewards, inventory, MissionRewards);
|
||||
addFixedLevelRewards(fixedLevelRewards.levelKeyRewards, inventory, MissionRewards, rewardInfo);
|
||||
}
|
||||
if (fixedLevelRewards.levelKeyRewards2) {
|
||||
for (const reward of fixedLevelRewards.levelKeyRewards2) {
|
||||
@ -592,7 +612,14 @@ export const addMissionRewards = async (
|
||||
const node = ExportRegions[missions.Tag];
|
||||
|
||||
//node based credit rewards for mission completion
|
||||
if (node.missionIndex !== 28) {
|
||||
if (
|
||||
node.missionIndex != 23 && // junction
|
||||
node.missionIndex != 28 && // open world
|
||||
missions.Tag != "SolNode761" && // the index
|
||||
missions.Tag != "SolNode762" && // the index
|
||||
missions.Tag != "SolNode763" && // the index
|
||||
missions.Tag != "CrewBattleNode556" // free flight
|
||||
) {
|
||||
const levelCreditReward = getLevelCreditRewards(node);
|
||||
missionCompletionCredits += levelCreditReward;
|
||||
inventory.RegularCredits += levelCreditReward;
|
||||
@ -600,7 +627,20 @@ export const addMissionRewards = async (
|
||||
}
|
||||
|
||||
if (node.missionReward) {
|
||||
missionCompletionCredits += addFixedLevelRewards(node.missionReward, inventory, MissionRewards);
|
||||
missionCompletionCredits += addFixedLevelRewards(node.missionReward, inventory, MissionRewards, rewardInfo);
|
||||
}
|
||||
|
||||
if (missions.Tag == "PlutoToErisJunction") {
|
||||
await createMessage(inventory.accountOwnerId, [
|
||||
{
|
||||
sndr: "/Lotus/Language/G1Quests/GolemQuestJordasName",
|
||||
msg: "/Lotus/Language/G1Quests/GolemQuestIntroBody",
|
||||
att: ["/Lotus/Types/Keys/GolemQuest/GolemQuestKeyChainItem"],
|
||||
sub: "/Lotus/Language/G1Quests/GolemQuestIntroTitle",
|
||||
icon: "/Lotus/Interface/Icons/Npcs/JordasPortrait.png",
|
||||
highPriority: true
|
||||
}
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -711,14 +751,12 @@ export const addMissionRewards = async (
|
||||
|
||||
if (rewardInfo.JobStage != undefined && rewardInfo.jobId) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [jobType, tierStr, hubNode, syndicateId, locationTag] = rewardInfo.jobId.split("_");
|
||||
const tier = Number(tierStr);
|
||||
|
||||
const [jobType, unkIndex, hubNode, syndicateId, locationTag] = rewardInfo.jobId.split("_");
|
||||
const worldState = getWorldState();
|
||||
let syndicateEntry = worldState.SyndicateMissions.find(m => m._id.$oid === syndicateId);
|
||||
if (!syndicateEntry) syndicateEntry = worldState.SyndicateMissions.find(m => m.Tag === syndicateId); // Sometimes syndicateId can be tag
|
||||
if (syndicateEntry && syndicateEntry.Jobs) {
|
||||
let currentJob = syndicateEntry.Jobs[tier];
|
||||
let currentJob = syndicateEntry.Jobs[rewardInfo.JobTier!];
|
||||
if (syndicateEntry.Tag === "EntratiSyndicate") {
|
||||
const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
|
||||
if (vault) currentJob = vault;
|
||||
@ -743,7 +781,7 @@ export const addMissionRewards = async (
|
||||
});
|
||||
SyndicateXPItemReward = medallionAmount;
|
||||
} else {
|
||||
if (tier >= 0) {
|
||||
if (rewardInfo.JobTier! >= 0) {
|
||||
AffiliationMods.push(
|
||||
addStanding(inventory, syndicateEntry.Tag, currentJob.xpAmounts[rewardInfo.JobStage])
|
||||
);
|
||||
@ -843,7 +881,8 @@ export const addCredits = (
|
||||
export const addFixedLevelRewards = (
|
||||
rewards: IMissionRewardExternal,
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
MissionRewards: IMissionReward[]
|
||||
MissionRewards: IMissionReward[],
|
||||
rewardInfo?: IRewardInfo
|
||||
): number => {
|
||||
let missionBonusCredits = 0;
|
||||
if (rewards.credits) {
|
||||
@ -873,14 +912,17 @@ export const addFixedLevelRewards = (
|
||||
}
|
||||
if (rewards.droptable) {
|
||||
if (rewards.droptable in ExportRewards) {
|
||||
logger.debug(`rolling ${rewards.droptable} for level key rewards`);
|
||||
const reward = getRandomRewardByChance(ExportRewards[rewards.droptable][0]);
|
||||
const rotations: number[] = rewardInfo ? getRotations(rewardInfo) : [0];
|
||||
logger.debug(`rolling ${rewards.droptable} for level key rewards`, { rotations });
|
||||
for (const tier of rotations) {
|
||||
const reward = getRandomRewardByChance(ExportRewards[rewards.droptable][tier]);
|
||||
if (reward) {
|
||||
MissionRewards.push({
|
||||
StoreItem: reward.type,
|
||||
ItemCount: reward.itemCount
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logger.error(`unknown droptable ${rewards.droptable}`);
|
||||
}
|
||||
@ -898,6 +940,12 @@ function getLevelCreditRewards(node: IRegion): number {
|
||||
|
||||
function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | undefined): IMissionReward[] {
|
||||
const drops: IMissionReward[] = [];
|
||||
if (RewardInfo.periodicMissionTag?.startsWith("HardDaily")) {
|
||||
drops.push({
|
||||
StoreItem: "/Lotus/StoreItems/Types/Items/MiscItems/SteelEssence",
|
||||
ItemCount: 5
|
||||
});
|
||||
}
|
||||
if (RewardInfo.node in ExportRegions) {
|
||||
const region = ExportRegions[RewardInfo.node];
|
||||
let rewardManifests: string[] =
|
||||
@ -909,8 +957,7 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
if (RewardInfo.jobId) {
|
||||
if (RewardInfo.JobStage! >= 0) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [jobType, tierStr, hubNode, syndicateId, locationTag] = RewardInfo.jobId.split("_");
|
||||
const tier = Number(tierStr);
|
||||
const [jobType, unkIndex, hubNode, syndicateId, locationTag] = RewardInfo.jobId.split("_");
|
||||
let isEndlessJob = false;
|
||||
if (syndicateId) {
|
||||
const worldState = getWorldState();
|
||||
@ -918,11 +965,11 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
if (!syndicateEntry) syndicateEntry = worldState.SyndicateMissions.find(m => m.Tag === syndicateId);
|
||||
|
||||
if (syndicateEntry && syndicateEntry.Jobs) {
|
||||
let job = syndicateEntry.Jobs[tier];
|
||||
let job = syndicateEntry.Jobs[RewardInfo.JobTier!];
|
||||
|
||||
if (syndicateEntry.Tag === "EntratiSyndicate") {
|
||||
const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
|
||||
if (vault) job = vault;
|
||||
if (vault && locationTag) job = vault;
|
||||
// if (
|
||||
// [
|
||||
// "DeimosRuinsExterminateBounty",
|
||||
@ -997,12 +1044,15 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
(RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&
|
||||
!isEndlessJob
|
||||
) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (ExportRewards[job.rewards]) {
|
||||
rewardManifests.push(job.rewards);
|
||||
rotations.push(ExportRewards[job.rewards].length - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (RewardInfo.challengeMissionId) {
|
||||
const rewardTables: Record<string, string[]> = {
|
||||
EntratiLabSyndicate: [
|
||||
@ -1041,24 +1091,23 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
} else {
|
||||
logger.error(`Unknown syndicate or tier: ${RewardInfo.challengeMissionId}`);
|
||||
}
|
||||
} else if (RewardInfo.VaultsCracked) {
|
||||
// For Spy missions, e.g. 3 vaults cracked = A, B, C
|
||||
for (let i = 0; i != RewardInfo.VaultsCracked; ++i) {
|
||||
rotations.push(i);
|
||||
}
|
||||
} else {
|
||||
const rotationCount = RewardInfo.rewardQualifications?.length || 0;
|
||||
rotations = getRotations(rotationCount, tierOverride);
|
||||
rotations = getRotations(RewardInfo, tierOverride);
|
||||
}
|
||||
if (rewardManifests.length != 0) {
|
||||
logger.debug(`generating random mission rewards`, { rewardManifests, rotations });
|
||||
}
|
||||
rewardManifests
|
||||
.map(name => ExportRewards[name])
|
||||
.forEach(table => {
|
||||
const rng = new SRng(BigInt(RewardInfo.rewardSeed ?? generateRewardSeed()) ^ 0xffffffffffffffffn);
|
||||
rewardManifests.forEach(name => {
|
||||
const table = ExportRewards[name];
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (!table) {
|
||||
logger.error(`unknown droptable: ${name}`);
|
||||
return;
|
||||
}
|
||||
for (const rotation of rotations) {
|
||||
const rotationRewards = table[rotation];
|
||||
const drop = getRandomRewardByChance(rotationRewards);
|
||||
const drop = getRandomRewardByChance(rotationRewards, rng);
|
||||
if (drop) {
|
||||
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount });
|
||||
}
|
||||
@ -1092,6 +1141,32 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount });
|
||||
}
|
||||
}
|
||||
|
||||
if (RewardInfo.PurgatoryRewardQualifications) {
|
||||
for (const encodedQualification of RewardInfo.PurgatoryRewardQualifications) {
|
||||
const qualification = parseInt(encodedQualification) - 1;
|
||||
if (qualification < 0 || qualification > 8) {
|
||||
logger.error(`unexpected purgatory reward qualification: ${qualification}`);
|
||||
} else {
|
||||
const drop = getRandomRewardByChance(
|
||||
ExportRewards[
|
||||
[
|
||||
"/Lotus/Types/Game/MissionDecks/PurgatoryMissionRewards/PurgatoryBlackTokenRewards",
|
||||
"/Lotus/Types/Game/MissionDecks/PurgatoryMissionRewards/PurgatoryGoldTokenRewards",
|
||||
"/Lotus/Types/Game/MissionDecks/PurgatoryMissionRewards/PurgatoryBlueTokenRewards"
|
||||
][Math.trunc(qualification / 3)]
|
||||
][qualification % 3]
|
||||
);
|
||||
if (drop) {
|
||||
drops.push({
|
||||
StoreItem: drop.type,
|
||||
ItemCount: drop.itemCount,
|
||||
FromEnemyCache: true // to show "identified"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return drops;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ const getRewardAtPercentage = <T extends { probability: number }>(pool: T[], per
|
||||
return item;
|
||||
}
|
||||
}
|
||||
throw new Error("What the fuck?");
|
||||
return pool[pool.length - 1];
|
||||
};
|
||||
|
||||
export const getRandomReward = <T extends { probability: number }>(pool: T[]): T | undefined => {
|
||||
@ -142,4 +142,8 @@ export class SRng {
|
||||
this.state = (0x5851f42d4c957f2dn * this.state + 0x14057b7ef767814fn) & 0xffffffffffffffffn;
|
||||
return (Number(this.state >> 38n) & 0xffffff) * 0.000000059604645;
|
||||
}
|
||||
|
||||
randomReward<T extends { probability: number }>(pool: T[]): T | undefined {
|
||||
return getRewardAtPercentage(pool, this.randomFloat());
|
||||
}
|
||||
}
|
||||
|
@ -8,8 +8,7 @@ import { unixTimesInMs } from "@/src/constants/timeConstants";
|
||||
import { config } from "@/src/services/configService";
|
||||
import { CRng } from "@/src/services/rngService";
|
||||
import { eMissionType, ExportNightwave, ExportRegions } from "warframe-public-export-plus";
|
||||
import { ISeasonChallenge, IWorldState } from "../types/worldStateTypes";
|
||||
import { logger } from "../utils/logger";
|
||||
import { ISeasonChallenge, ISortie, IWorldState } from "../types/worldStateTypes";
|
||||
|
||||
const sortieBosses = [
|
||||
"SORTIE_BOSS_HYENA",
|
||||
@ -80,8 +79,7 @@ const sortieBossNode: Record<string, string> = {
|
||||
SORTIE_BOSS_INFALAD: "SolNode705"
|
||||
};
|
||||
|
||||
const jobSets: string[][] = [
|
||||
[
|
||||
const eidolonJobs = [
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/AssassinateBountyAss",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/AssassinateBountyCap",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/AttritionBountySab",
|
||||
@ -95,14 +93,16 @@ const jobSets: string[][] = [
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/CaptureBountyCapTwo",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/SabotageBountySab",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/RescueBountyResc"
|
||||
],
|
||||
[
|
||||
];
|
||||
|
||||
const eidolonNarmerJobs = [
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/Narmer/AssassinateBountyAss",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/Narmer/AttritionBountyExt",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/Narmer/ReclamationBountyTheft",
|
||||
"/Lotus/Types/Gameplay/Eidolon/Jobs/Narmer/AttritionBountyLib"
|
||||
],
|
||||
[
|
||||
];
|
||||
|
||||
const venusJobs = [
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/VenusArtifactJobAmbush",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/VenusArtifactJobExcavation",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/VenusArtifactJobRecovery",
|
||||
@ -126,14 +126,16 @@ const jobSets: string[][] = [
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/VenusPreservationJobResource",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/VenusWetworkJobAssassinate",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/VenusWetworkJobSpy"
|
||||
],
|
||||
[
|
||||
];
|
||||
|
||||
const venusNarmerJobs = [
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/Narmer/NarmerVenusCullJobAssassinate",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/Narmer/NarmerVenusCullJobExterminate",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/Narmer/NarmerVenusPreservationJobDefense",
|
||||
"/Lotus/Types/Gameplay/Venus/Jobs/Narmer/NarmerVenusTheftJobExcavation"
|
||||
],
|
||||
[
|
||||
];
|
||||
|
||||
const microplanetJobs = [
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosAreaDefenseBounty",
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosAssassinateBounty",
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosCrpSurvivorBounty",
|
||||
@ -141,16 +143,20 @@ const jobSets: string[][] = [
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosKeyPiecesBounty",
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosExcavateBounty",
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosPurifyBounty"
|
||||
],
|
||||
[
|
||||
];
|
||||
|
||||
const microplanetEndlessJobs = [
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosEndlessAreaDefenseBounty",
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosEndlessExcavateBounty",
|
||||
"/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosEndlessPurifyBounty"
|
||||
]
|
||||
];
|
||||
|
||||
const EPOCH = 1734307200 * 1000; // Monday, Dec 16, 2024 @ 00:00 UTC+0; should logically be winter in 1999 iteration 0
|
||||
|
||||
const isBeforeNextExpectedWorldStateRefresh = (date: number): boolean => {
|
||||
return Date.now() + 300_000 > date;
|
||||
};
|
||||
|
||||
const getSortieTime = (day: number): number => {
|
||||
const dayStart = EPOCH + day * 86400000;
|
||||
const date = new Date(dayStart);
|
||||
@ -165,253 +171,17 @@ const getSortieTime = (day: number): number => {
|
||||
return dayStart + (isDst ? 16 : 17) * 3600000;
|
||||
};
|
||||
|
||||
const dailyChallenges = Object.keys(ExportNightwave.challenges).filter(x =>
|
||||
x.startsWith("/Lotus/Types/Challenges/Seasons/Daily/")
|
||||
);
|
||||
const pushSortieIfRelevant = (out: ISortie[], day: number): void => {
|
||||
const dayStart = getSortieTime(day);
|
||||
if (!isBeforeNextExpectedWorldStateRefresh(dayStart)) {
|
||||
return;
|
||||
}
|
||||
const dayEnd = getSortieTime(day + 1);
|
||||
if (Date.now() >= dayEnd) {
|
||||
return;
|
||||
}
|
||||
|
||||
const getSeasonDailyChallenge = (day: number): ISeasonChallenge => {
|
||||
const dayStart = EPOCH + day * 86400000;
|
||||
const dayEnd = EPOCH + (day + 3) * 86400000;
|
||||
const rng = new CRng(day);
|
||||
return {
|
||||
_id: { $oid: "67e1b5ca9d00cb47" + day.toString().padStart(8, "0") },
|
||||
Daily: true,
|
||||
Activation: { $date: { $numberLong: dayStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: dayEnd.toString() } },
|
||||
Challenge: rng.randomElement(dailyChallenges)
|
||||
};
|
||||
};
|
||||
|
||||
const weeklyChallenges = Object.keys(ExportNightwave.challenges).filter(
|
||||
x =>
|
||||
x.startsWith("/Lotus/Types/Challenges/Seasons/Weekly/") &&
|
||||
!x.startsWith("/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanent")
|
||||
);
|
||||
|
||||
const getSeasonWeeklyChallenge = (week: number, id: number): ISeasonChallenge => {
|
||||
const weekStart = EPOCH + week * 604800000;
|
||||
const weekEnd = weekStart + 604800000;
|
||||
const challengeId = week * 7 + id;
|
||||
const rng = new CRng(challengeId);
|
||||
return {
|
||||
_id: { $oid: "67e1bb2d9d00cb47" + challengeId.toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: rng.randomElement(weeklyChallenges)
|
||||
};
|
||||
};
|
||||
|
||||
const weeklyHardChallenges = Object.keys(ExportNightwave.challenges).filter(x =>
|
||||
x.startsWith("/Lotus/Types/Challenges/Seasons/WeeklyHard/")
|
||||
);
|
||||
|
||||
const getSeasonWeeklyHardChallenge = (week: number, id: number): ISeasonChallenge => {
|
||||
const weekStart = EPOCH + week * 604800000;
|
||||
const weekEnd = weekStart + 604800000;
|
||||
const challengeId = week * 7 + id;
|
||||
const rng = new CRng(challengeId);
|
||||
return {
|
||||
_id: { $oid: "67e1bb2d9d00cb47" + challengeId.toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: rng.randomElement(weeklyHardChallenges)
|
||||
};
|
||||
};
|
||||
|
||||
export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
const day = Math.trunc((Date.now() - EPOCH) / 86400000);
|
||||
const week = Math.trunc(day / 7);
|
||||
const weekStart = EPOCH + week * 604800000;
|
||||
const weekEnd = weekStart + 604800000;
|
||||
|
||||
const worldState: IWorldState = {
|
||||
BuildLabel: typeof buildLabel == "string" ? buildLabel.split(" ").join("+") : buildConfig.buildLabel,
|
||||
Time: config.worldState?.lockTime || Math.round(Date.now() / 1000),
|
||||
Goals: [],
|
||||
GlobalUpgrades: [],
|
||||
Sorties: [],
|
||||
LiteSorties: [],
|
||||
EndlessXpChoices: [],
|
||||
SeasonInfo: {
|
||||
Activation: { $date: { $numberLong: "1715796000000" } },
|
||||
Expiry: { $date: { $numberLong: "2000000000000" } },
|
||||
AffiliationTag: "RadioLegionIntermission12Syndicate",
|
||||
Season: 14,
|
||||
Phase: 0,
|
||||
Params: "",
|
||||
ActiveChallenges: [
|
||||
getSeasonDailyChallenge(day - 2),
|
||||
getSeasonDailyChallenge(day - 1),
|
||||
getSeasonDailyChallenge(day - 0),
|
||||
getSeasonWeeklyChallenge(week, 0),
|
||||
getSeasonWeeklyChallenge(week, 1),
|
||||
getSeasonWeeklyHardChallenge(week, 2),
|
||||
getSeasonWeeklyHardChallenge(week, 3),
|
||||
{
|
||||
_id: { $oid: "67e1b96e9d00cb47" + (week * 7 + 0).toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge:
|
||||
"/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanentCompleteMissions" + (week - 12)
|
||||
},
|
||||
{
|
||||
_id: { $oid: "67e1b96e9d00cb47" + (week * 7 + 1).toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: "/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanentKillEximus" + (week - 12)
|
||||
},
|
||||
{
|
||||
_id: { $oid: "67e1b96e9d00cb47" + (week * 7 + 2).toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: "/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanentKillEnemies" + (week - 12)
|
||||
}
|
||||
]
|
||||
},
|
||||
...staticWorldState
|
||||
};
|
||||
|
||||
if (config.worldState?.starDays) {
|
||||
worldState.Goals.push({
|
||||
_id: { $oid: "67a4dcce2a198564d62e1647" },
|
||||
Activation: { $date: { $numberLong: "1738868400000" } },
|
||||
Expiry: { $date: { $numberLong: "2000000000000" } },
|
||||
Count: 0,
|
||||
Goal: 0,
|
||||
Success: 0,
|
||||
Personal: true,
|
||||
Desc: "/Lotus/Language/Events/ValentinesFortunaName",
|
||||
ToolTip: "/Lotus/Language/Events/ValentinesFortunaName",
|
||||
Icon: "/Lotus/Interface/Icons/WorldStatePanel/ValentinesEventIcon.png",
|
||||
Tag: "FortunaValentines",
|
||||
Node: "SolarisUnitedHub1"
|
||||
});
|
||||
}
|
||||
|
||||
// Elite Sanctuary Onslaught cycling every week
|
||||
worldState.NodeOverrides.find(x => x.Node == "SolNode802")!.Seed = week; // unfaithful
|
||||
|
||||
// Holdfast, Cavia, & Hex bounties cycling every 2.5 hours; unfaithful implementation
|
||||
const bountyCycle = Math.trunc(Date.now() / 9000000);
|
||||
const bountyCycleStart = bountyCycle * 9000000;
|
||||
const bountyCycleEnd = bountyCycleStart + 9000000;
|
||||
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "ZarimanSyndicate")] = {
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000029" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
||||
Tag: "ZarimanSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: []
|
||||
};
|
||||
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "EntratiLabSyndicate")] = {
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000004" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
||||
Tag: "EntratiLabSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: []
|
||||
};
|
||||
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "HexSyndicate")] = {
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000006" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
||||
Tag: "HexSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: []
|
||||
};
|
||||
for (const syndicateInfo of worldState.SyndicateMissions) {
|
||||
if (syndicateInfo.Jobs && syndicateInfo.Seed != bountyCycle) {
|
||||
syndicateInfo.Activation.$date.$numberLong = bountyCycleStart.toString(10);
|
||||
syndicateInfo.Expiry.$date.$numberLong = bountyCycleEnd.toString(10);
|
||||
syndicateInfo.Seed = bountyCycle;
|
||||
logger.debug(`refreshing jobs for ${syndicateInfo.Tag}`);
|
||||
const rng = new CRng(bountyCycle);
|
||||
const table = String.fromCharCode(65 + (bountyCycle % 3));
|
||||
const vaultTable = String.fromCharCode(65 + ((bountyCycle + 1) % 3));
|
||||
const deimosDTable = String.fromCharCode(65 + (bountyCycle % 2));
|
||||
//console.log({ bountyCycleStart, bountyCycleEnd, table, vaultTable, deimosDTable });
|
||||
for (const jobInfo of syndicateInfo.Jobs) {
|
||||
if (jobInfo.jobType) {
|
||||
let found = false;
|
||||
for (const jobSet of jobSets) {
|
||||
if (jobSet.indexOf(jobInfo.jobType) != -1) {
|
||||
jobInfo.jobType = rng.randomElement(jobSet);
|
||||
// TODO: xpAmounts seems like it might need to differ depending on the job?
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
logger.warn(`no job set found for type ${jobInfo.jobType}`);
|
||||
}
|
||||
}
|
||||
if (jobInfo.endless || jobInfo.isVault) {
|
||||
jobInfo.rewards = jobInfo.rewards.replace(/Table.Rewards/, `Table${vaultTable}Rewards`);
|
||||
} else if (jobInfo.rewards.startsWith("/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierD")) {
|
||||
jobInfo.rewards = jobInfo.rewards.replace(/Table.Rewards/, `Table${deimosDTable}Rewards`);
|
||||
} else if (!jobInfo.rewards.startsWith("/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierE")) {
|
||||
jobInfo.rewards = jobInfo.rewards.replace(/Table.Rewards/, `Table${table}Rewards`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (config.worldState?.creditBoost) {
|
||||
worldState.GlobalUpgrades.push({
|
||||
_id: { $oid: "5b23106f283a555109666672" },
|
||||
Activation: { $date: { $numberLong: "1740164400000" } },
|
||||
ExpiryDate: { $date: { $numberLong: "2000000000000" } },
|
||||
UpgradeType: "GAMEPLAY_MONEY_REWARD_AMOUNT",
|
||||
OperationType: "MULTIPLY",
|
||||
Value: 2,
|
||||
LocalizeTag: "",
|
||||
LocalizeDescTag: ""
|
||||
});
|
||||
}
|
||||
if (config.worldState?.affinityBoost) {
|
||||
worldState.GlobalUpgrades.push({
|
||||
_id: { $oid: "5b23106f283a555109666673" },
|
||||
Activation: { $date: { $numberLong: "1740164400000" } },
|
||||
ExpiryDate: { $date: { $numberLong: "2000000000000" } },
|
||||
UpgradeType: "GAMEPLAY_KILL_XP_AMOUNT",
|
||||
OperationType: "MULTIPLY",
|
||||
Value: 2,
|
||||
LocalizeTag: "",
|
||||
LocalizeDescTag: ""
|
||||
});
|
||||
}
|
||||
if (config.worldState?.resourceBoost) {
|
||||
worldState.GlobalUpgrades.push({
|
||||
_id: { $oid: "5b23106f283a555109666674" },
|
||||
Activation: { $date: { $numberLong: "1740164400000" } },
|
||||
ExpiryDate: { $date: { $numberLong: "2000000000000" } },
|
||||
UpgradeType: "GAMEPLAY_PICKUP_AMOUNT",
|
||||
OperationType: "MULTIPLY",
|
||||
Value: 2,
|
||||
LocalizeTag: "",
|
||||
LocalizeDescTag: ""
|
||||
});
|
||||
}
|
||||
|
||||
// Sortie cycling every day
|
||||
{
|
||||
let genDay;
|
||||
let dayStart;
|
||||
let dayEnd;
|
||||
const sortieRolloverToday = getSortieTime(day);
|
||||
if (Date.now() < sortieRolloverToday) {
|
||||
// Early in the day, generate sortie for `day - 1`, expiring at `sortieRolloverToday`.
|
||||
genDay = day - 1;
|
||||
dayStart = getSortieTime(genDay);
|
||||
dayEnd = sortieRolloverToday;
|
||||
} else {
|
||||
// Late in the day, generate sortie for `day`, expiring at `getSortieTime(day + 1)`.
|
||||
genDay = day;
|
||||
dayStart = sortieRolloverToday;
|
||||
dayEnd = getSortieTime(day + 1);
|
||||
}
|
||||
|
||||
const rng = new CRng(genDay);
|
||||
|
||||
const boss = rng.randomElement(sortieBosses);
|
||||
|
||||
@ -518,18 +288,460 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
missionTypes.add(missionType);
|
||||
}
|
||||
|
||||
worldState.Sorties.push({
|
||||
out.push({
|
||||
_id: { $oid: Math.trunc(dayStart / 1000).toString(16) + "d4d932c97c0a3acd" },
|
||||
Activation: { $date: { $numberLong: dayStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: dayEnd.toString() } },
|
||||
Reward: "/Lotus/Types/Game/MissionDecks/SortieRewards",
|
||||
Seed: genDay,
|
||||
Seed: day,
|
||||
Boss: boss,
|
||||
Variants: selectedNodes
|
||||
});
|
||||
};
|
||||
|
||||
const dailyChallenges = Object.keys(ExportNightwave.challenges).filter(x =>
|
||||
x.startsWith("/Lotus/Types/Challenges/Seasons/Daily/")
|
||||
);
|
||||
|
||||
const getSeasonDailyChallenge = (day: number): ISeasonChallenge => {
|
||||
const dayStart = EPOCH + day * 86400000;
|
||||
const dayEnd = EPOCH + (day + 3) * 86400000;
|
||||
const rng = new CRng(day);
|
||||
return {
|
||||
_id: { $oid: "67e1b5ca9d00cb47" + day.toString().padStart(8, "0") },
|
||||
Daily: true,
|
||||
Activation: { $date: { $numberLong: dayStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: dayEnd.toString() } },
|
||||
Challenge: rng.randomElement(dailyChallenges)
|
||||
};
|
||||
};
|
||||
|
||||
const weeklyChallenges = Object.keys(ExportNightwave.challenges).filter(
|
||||
x =>
|
||||
x.startsWith("/Lotus/Types/Challenges/Seasons/Weekly/") &&
|
||||
!x.startsWith("/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanent")
|
||||
);
|
||||
|
||||
const getSeasonWeeklyChallenge = (week: number, id: number): ISeasonChallenge => {
|
||||
const weekStart = EPOCH + week * 604800000;
|
||||
const weekEnd = weekStart + 604800000;
|
||||
const challengeId = week * 7 + id;
|
||||
const rng = new CRng(challengeId);
|
||||
return {
|
||||
_id: { $oid: "67e1bb2d9d00cb47" + challengeId.toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: rng.randomElement(weeklyChallenges)
|
||||
};
|
||||
};
|
||||
|
||||
const weeklyHardChallenges = Object.keys(ExportNightwave.challenges).filter(x =>
|
||||
x.startsWith("/Lotus/Types/Challenges/Seasons/WeeklyHard/")
|
||||
);
|
||||
|
||||
const getSeasonWeeklyHardChallenge = (week: number, id: number): ISeasonChallenge => {
|
||||
const weekStart = EPOCH + week * 604800000;
|
||||
const weekEnd = weekStart + 604800000;
|
||||
const challengeId = week * 7 + id;
|
||||
const rng = new CRng(challengeId);
|
||||
return {
|
||||
_id: { $oid: "67e1bb2d9d00cb47" + challengeId.toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: rng.randomElement(weeklyHardChallenges)
|
||||
};
|
||||
};
|
||||
|
||||
export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
const day = Math.trunc((Date.now() - EPOCH) / 86400000);
|
||||
const week = Math.trunc(day / 7);
|
||||
const weekStart = EPOCH + week * 604800000;
|
||||
const weekEnd = weekStart + 604800000;
|
||||
|
||||
const worldState: IWorldState = {
|
||||
BuildLabel: typeof buildLabel == "string" ? buildLabel.split(" ").join("+") : buildConfig.buildLabel,
|
||||
Time: config.worldState?.lockTime || Math.round(Date.now() / 1000),
|
||||
Goals: [],
|
||||
Alerts: [],
|
||||
Sorties: [],
|
||||
LiteSorties: [],
|
||||
GlobalUpgrades: [],
|
||||
EndlessXpChoices: [],
|
||||
SeasonInfo: {
|
||||
Activation: { $date: { $numberLong: "1715796000000" } },
|
||||
Expiry: { $date: { $numberLong: "2000000000000" } },
|
||||
AffiliationTag: "RadioLegionIntermission12Syndicate",
|
||||
Season: 14,
|
||||
Phase: 0,
|
||||
Params: "",
|
||||
ActiveChallenges: []
|
||||
},
|
||||
...staticWorldState,
|
||||
SyndicateMissions: [...staticWorldState.SyndicateMissions]
|
||||
};
|
||||
|
||||
if (config.worldState?.starDays) {
|
||||
worldState.Goals.push({
|
||||
_id: { $oid: "67a4dcce2a198564d62e1647" },
|
||||
Activation: { $date: { $numberLong: "1738868400000" } },
|
||||
Expiry: { $date: { $numberLong: "2000000000000" } },
|
||||
Count: 0,
|
||||
Goal: 0,
|
||||
Success: 0,
|
||||
Personal: true,
|
||||
Desc: "/Lotus/Language/Events/ValentinesFortunaName",
|
||||
ToolTip: "/Lotus/Language/Events/ValentinesFortunaName",
|
||||
Icon: "/Lotus/Interface/Icons/WorldStatePanel/ValentinesEventIcon.png",
|
||||
Tag: "FortunaValentines",
|
||||
Node: "SolarisUnitedHub1"
|
||||
});
|
||||
}
|
||||
|
||||
// Nightwave Challenges
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day - 2));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day - 1));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day - 0));
|
||||
if (isBeforeNextExpectedWorldStateRefresh(EPOCH + (day + 1) * 86400000)) {
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonDailyChallenge(day + 1));
|
||||
}
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonWeeklyChallenge(week, 0));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonWeeklyChallenge(week, 1));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonWeeklyHardChallenge(week, 2));
|
||||
worldState.SeasonInfo.ActiveChallenges.push(getSeasonWeeklyHardChallenge(week, 3));
|
||||
worldState.SeasonInfo.ActiveChallenges.push({
|
||||
_id: { $oid: "67e1b96e9d00cb47" + (week * 7 + 0).toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: "/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanentCompleteMissions" + (week - 12)
|
||||
});
|
||||
worldState.SeasonInfo.ActiveChallenges.push({
|
||||
_id: { $oid: "67e1b96e9d00cb47" + (week * 7 + 1).toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: "/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanentKillEximus" + (week - 12)
|
||||
});
|
||||
worldState.SeasonInfo.ActiveChallenges.push({
|
||||
_id: { $oid: "67e1b96e9d00cb47" + (week * 7 + 2).toString().padStart(8, "0") },
|
||||
Activation: { $date: { $numberLong: weekStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: weekEnd.toString() } },
|
||||
Challenge: "/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanentKillEnemies" + (week - 12)
|
||||
});
|
||||
// TODO: Provide upcoming weekly acts if rollover is imminent
|
||||
|
||||
// Elite Sanctuary Onslaught cycling every week
|
||||
worldState.NodeOverrides.find(x => x.Node == "SolNode802")!.Seed = week; // unfaithful
|
||||
|
||||
// Holdfast, Cavia, & Hex bounties cycling every 2.5 hours; unfaithful implementation
|
||||
let bountyCycle = Math.trunc(Date.now() / 9000000);
|
||||
let bountyCycleEnd: number | undefined;
|
||||
do {
|
||||
const bountyCycleStart = bountyCycle * 9000000;
|
||||
bountyCycleEnd = bountyCycleStart + 9000000;
|
||||
worldState.SyndicateMissions.push({
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000029" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
||||
Tag: "ZarimanSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: []
|
||||
});
|
||||
worldState.SyndicateMissions.push({
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000004" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
||||
Tag: "EntratiLabSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: []
|
||||
});
|
||||
worldState.SyndicateMissions.push({
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000006" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
||||
Tag: "HexSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: []
|
||||
});
|
||||
|
||||
const table = String.fromCharCode(65 + (bountyCycle % 3));
|
||||
const vaultTable = String.fromCharCode(65 + ((bountyCycle + 1) % 3));
|
||||
const deimosDTable = String.fromCharCode(65 + (bountyCycle % 2));
|
||||
|
||||
// TODO: xpAmounts need to be calculated based on the jobType somehow?
|
||||
|
||||
{
|
||||
const rng = new CRng(bountyCycle);
|
||||
worldState.SyndicateMissions.push({
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000008" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
||||
Tag: "CetusSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: [],
|
||||
Jobs: [
|
||||
{
|
||||
jobType: rng.randomElement(eidolonJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierATable${table}Rewards`,
|
||||
masteryReq: 0,
|
||||
minEnemyLevel: 5,
|
||||
maxEnemyLevel: 15,
|
||||
xpAmounts: [430, 430, 430]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(eidolonJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierBTable${table}Rewards`,
|
||||
masteryReq: 1,
|
||||
minEnemyLevel: 10,
|
||||
maxEnemyLevel: 30,
|
||||
xpAmounts: [620, 620, 620]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(eidolonJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierCTable${table}Rewards`,
|
||||
masteryReq: 2,
|
||||
minEnemyLevel: 20,
|
||||
maxEnemyLevel: 40,
|
||||
xpAmounts: [670, 670, 670, 990]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(eidolonJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierDTable${table}Rewards`,
|
||||
masteryReq: 3,
|
||||
minEnemyLevel: 30,
|
||||
maxEnemyLevel: 50,
|
||||
xpAmounts: [570, 570, 570, 570, 1110]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(eidolonJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierETable${table}Rewards`,
|
||||
masteryReq: 5,
|
||||
minEnemyLevel: 40,
|
||||
maxEnemyLevel: 60,
|
||||
xpAmounts: [740, 740, 740, 740, 1450]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(eidolonJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierETable${table}Rewards`,
|
||||
masteryReq: 10,
|
||||
minEnemyLevel: 100,
|
||||
maxEnemyLevel: 100,
|
||||
xpAmounts: [840, 840, 840, 840, 1660]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(eidolonNarmerJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/NarmerTable${table}Rewards`,
|
||||
masteryReq: 0,
|
||||
minEnemyLevel: 50,
|
||||
maxEnemyLevel: 70,
|
||||
xpAmounts: [840, 840, 840, 840, 1650]
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
{
|
||||
const rng = new CRng(bountyCycle);
|
||||
worldState.SyndicateMissions.push({
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000025" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
||||
Tag: "SolarisSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: [],
|
||||
Jobs: [
|
||||
{
|
||||
jobType: rng.randomElement(venusJobs),
|
||||
rewards: `Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierATable${table}Rewards`,
|
||||
masteryReq: 0,
|
||||
minEnemyLevel: 5,
|
||||
maxEnemyLevel: 15,
|
||||
xpAmounts: [340, 340, 340]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(venusJobs),
|
||||
rewards: `Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierBTable${table}Rewards`,
|
||||
masteryReq: 1,
|
||||
minEnemyLevel: 10,
|
||||
maxEnemyLevel: 30,
|
||||
xpAmounts: [660, 660, 660]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(venusJobs),
|
||||
rewards: `Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierCTable${table}Rewards`,
|
||||
masteryReq: 2,
|
||||
minEnemyLevel: 20,
|
||||
maxEnemyLevel: 40,
|
||||
xpAmounts: [610, 610, 610, 900]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(venusJobs),
|
||||
rewards: `Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierDTable${table}Rewards`,
|
||||
masteryReq: 3,
|
||||
minEnemyLevel: 30,
|
||||
maxEnemyLevel: 50,
|
||||
xpAmounts: [600, 600, 600, 600, 1170]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(venusJobs),
|
||||
rewards: `Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierETable${table}Rewards`,
|
||||
masteryReq: 5,
|
||||
minEnemyLevel: 40,
|
||||
maxEnemyLevel: 60,
|
||||
xpAmounts: [690, 690, 690, 690, 1350]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(venusJobs),
|
||||
rewards: `Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierETable${table}Rewards`,
|
||||
masteryReq: 10,
|
||||
minEnemyLevel: 100,
|
||||
maxEnemyLevel: 100,
|
||||
xpAmounts: [840, 840, 840, 840, 1660]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(venusNarmerJobs),
|
||||
rewards: "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/NarmerTableBRewards",
|
||||
masteryReq: 0,
|
||||
minEnemyLevel: 50,
|
||||
maxEnemyLevel: 70,
|
||||
xpAmounts: [780, 780, 780, 780, 1540]
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
{
|
||||
const rng = new CRng(bountyCycle);
|
||||
worldState.SyndicateMissions.push({
|
||||
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000002" },
|
||||
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
||||
Tag: "EntratiSyndicate",
|
||||
Seed: bountyCycle,
|
||||
Nodes: [],
|
||||
Jobs: [
|
||||
{
|
||||
jobType: rng.randomElement(microplanetJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierATable${table}Rewards`,
|
||||
masteryReq: 0,
|
||||
minEnemyLevel: 5,
|
||||
maxEnemyLevel: 15,
|
||||
xpAmounts: [5, 5, 5]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(microplanetJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierCTable${table}Rewards`,
|
||||
masteryReq: 1,
|
||||
minEnemyLevel: 15,
|
||||
maxEnemyLevel: 25,
|
||||
xpAmounts: [12, 12, 12]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(microplanetEndlessJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierBTable${table}Rewards`,
|
||||
masteryReq: 5,
|
||||
minEnemyLevel: 25,
|
||||
maxEnemyLevel: 30,
|
||||
endless: true,
|
||||
xpAmounts: [14, 14, 14]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(microplanetJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierDTable${deimosDTable}Rewards`,
|
||||
masteryReq: 2,
|
||||
minEnemyLevel: 30,
|
||||
maxEnemyLevel: 40,
|
||||
xpAmounts: [17, 17, 17, 25]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(microplanetJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierETableARewards`,
|
||||
masteryReq: 3,
|
||||
minEnemyLevel: 40,
|
||||
maxEnemyLevel: 60,
|
||||
xpAmounts: [22, 22, 22, 22, 43]
|
||||
},
|
||||
{
|
||||
jobType: rng.randomElement(microplanetJobs),
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierETableARewards`,
|
||||
masteryReq: 10,
|
||||
minEnemyLevel: 100,
|
||||
maxEnemyLevel: 100,
|
||||
xpAmounts: [25, 25, 25, 25, 50]
|
||||
},
|
||||
{
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/VaultBountyTierATable${vaultTable}Rewards`,
|
||||
masteryReq: 5,
|
||||
minEnemyLevel: 30,
|
||||
maxEnemyLevel: 40,
|
||||
xpAmounts: [2, 2, 2, 4],
|
||||
locationTag: "ChamberB",
|
||||
isVault: true
|
||||
},
|
||||
{
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/VaultBountyTierBTable${vaultTable}Rewards`,
|
||||
masteryReq: 5,
|
||||
minEnemyLevel: 40,
|
||||
maxEnemyLevel: 50,
|
||||
xpAmounts: [4, 4, 4, 5],
|
||||
locationTag: "ChamberA",
|
||||
isVault: true
|
||||
},
|
||||
{
|
||||
rewards: `/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/VaultBountyTierCTable${vaultTable}Rewards`,
|
||||
masteryReq: 5,
|
||||
minEnemyLevel: 50,
|
||||
maxEnemyLevel: 60,
|
||||
xpAmounts: [5, 5, 5, 7],
|
||||
locationTag: "ChamberC",
|
||||
isVault: true
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
} while (isBeforeNextExpectedWorldStateRefresh(bountyCycleEnd) && ++bountyCycle);
|
||||
|
||||
if (config.worldState?.creditBoost) {
|
||||
worldState.GlobalUpgrades.push({
|
||||
_id: { $oid: "5b23106f283a555109666672" },
|
||||
Activation: { $date: { $numberLong: "1740164400000" } },
|
||||
ExpiryDate: { $date: { $numberLong: "2000000000000" } },
|
||||
UpgradeType: "GAMEPLAY_MONEY_REWARD_AMOUNT",
|
||||
OperationType: "MULTIPLY",
|
||||
Value: 2,
|
||||
LocalizeTag: "",
|
||||
LocalizeDescTag: ""
|
||||
});
|
||||
}
|
||||
if (config.worldState?.affinityBoost) {
|
||||
worldState.GlobalUpgrades.push({
|
||||
_id: { $oid: "5b23106f283a555109666673" },
|
||||
Activation: { $date: { $numberLong: "1740164400000" } },
|
||||
ExpiryDate: { $date: { $numberLong: "2000000000000" } },
|
||||
UpgradeType: "GAMEPLAY_KILL_XP_AMOUNT",
|
||||
OperationType: "MULTIPLY",
|
||||
Value: 2,
|
||||
LocalizeTag: "",
|
||||
LocalizeDescTag: ""
|
||||
});
|
||||
}
|
||||
if (config.worldState?.resourceBoost) {
|
||||
worldState.GlobalUpgrades.push({
|
||||
_id: { $oid: "5b23106f283a555109666674" },
|
||||
Activation: { $date: { $numberLong: "1740164400000" } },
|
||||
ExpiryDate: { $date: { $numberLong: "2000000000000" } },
|
||||
UpgradeType: "GAMEPLAY_PICKUP_AMOUNT",
|
||||
OperationType: "MULTIPLY",
|
||||
Value: 2,
|
||||
LocalizeTag: "",
|
||||
LocalizeDescTag: ""
|
||||
});
|
||||
}
|
||||
|
||||
// Sortie cycling every day
|
||||
pushSortieIfRelevant(worldState.Sorties, day - 1);
|
||||
pushSortieIfRelevant(worldState.Sorties, day);
|
||||
|
||||
// Archon Hunt cycling every week
|
||||
// TODO: Handle imminent rollover
|
||||
{
|
||||
const boss = ["SORTIE_BOSS_AMAR", "SORTIE_BOSS_NIRA", "SORTIE_BOSS_BOREAL"][week % 3];
|
||||
const showdownNode = ["SolNode99", "SolNode53", "SolNode24"][week % 3];
|
||||
@ -622,6 +834,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
});
|
||||
|
||||
// 1999 Calendar Season cycling every week + YearIteration every 4 weeks
|
||||
// TODO: Handle imminent rollover
|
||||
worldState.KnownCalendarSeasons[0].Activation = { $date: { $numberLong: weekStart.toString() } };
|
||||
worldState.KnownCalendarSeasons[0].Expiry = { $date: { $numberLong: weekEnd.toString() } };
|
||||
worldState.KnownCalendarSeasons[0].Season = ["CST_WINTER", "CST_SPRING", "CST_SUMMER", "CST_FALL"][week % 4];
|
||||
|
@ -194,7 +194,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
|
||||
Mailbox?: IMailboxClient;
|
||||
SubscribedToEmails: number;
|
||||
Created: IMongoDate;
|
||||
RewardSeed: number;
|
||||
RewardSeed: number | bigint;
|
||||
RegularCredits: number;
|
||||
PremiumCredits: number;
|
||||
PremiumCreditsFree: number;
|
||||
@ -947,15 +947,17 @@ export interface IPersonalTechProjectDatabase {
|
||||
State: number;
|
||||
ReqCredits: number;
|
||||
ItemType: string;
|
||||
ProductCategory?: string;
|
||||
CategoryItemId?: Types.ObjectId;
|
||||
ReqItems: ITypeCount[];
|
||||
HasContributions?: boolean;
|
||||
CompletionDate?: Date;
|
||||
}
|
||||
|
||||
export interface IPersonalTechProjectClient extends Omit<IPersonalTechProjectDatabase, "CompletionDate"> {
|
||||
CompletionDate?: IMongoDate;
|
||||
ProductCategory?: string;
|
||||
export interface IPersonalTechProjectClient
|
||||
extends Omit<IPersonalTechProjectDatabase, "CategoryItemId" | "CompletionDate"> {
|
||||
CategoryItemId?: IOid;
|
||||
CompletionDate?: IMongoDate;
|
||||
ItemId: IOid;
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,7 @@ export type IInventoryChanges = {
|
||||
Drones?: IDroneClient[];
|
||||
MiscItems?: IMiscItem[];
|
||||
EmailItems?: ITypeCount[];
|
||||
CrewShipRawSalvage?: ITypeCount[];
|
||||
Nemesis?: Partial<INemesisClient>;
|
||||
NewVendorPurchase?: IRecentVendorPurchaseClient; // >= 38.5.0
|
||||
RecentVendorPurchases?: IRecentVendorPurchaseClient; // < 38.5.0
|
||||
|
@ -141,7 +141,7 @@ export interface IRewardInfo {
|
||||
EOM_AFK?: number;
|
||||
rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
|
||||
PurgatoryRewardQualifications?: string;
|
||||
rewardSeed?: number;
|
||||
rewardSeed?: number | bigint;
|
||||
periodicMissionTag?: string;
|
||||
|
||||
// for bounties, only EOM_AFK and node are given from above, plus:
|
||||
|
@ -5,10 +5,11 @@ export interface IWorldState {
|
||||
BuildLabel: string;
|
||||
Time: number;
|
||||
Goals: IGoal[];
|
||||
SyndicateMissions: ISyndicateMissionInfo[];
|
||||
GlobalUpgrades: IGlobalUpgrade[];
|
||||
Alerts: [];
|
||||
Sorties: ISortie[];
|
||||
LiteSorties: ILiteSortie[];
|
||||
SyndicateMissions: ISyndicateMissionInfo[];
|
||||
GlobalUpgrades: IGlobalUpgrade[];
|
||||
NodeOverrides: INodeOverride[];
|
||||
EndlessXpChoices: IEndlessXpChoice[];
|
||||
SeasonInfo: {
|
||||
|
@ -278,248 +278,6 @@
|
||||
"Tag": "SteelMeridianSyndicate",
|
||||
"Seed": 42366,
|
||||
"Nodes": ["SolNode27", "SolNode107", "SolNode214", "SettlementNode1", "SolNode177", "SolNode141", "SolNode408"]
|
||||
},
|
||||
{
|
||||
"_id": { "$oid": "663a71c80000000000000002" },
|
||||
"Activation": { "$date": { "$numberLong": "1715106248403" } },
|
||||
"Expiry": { "$date": { "$numberLong": "2000000000000" } },
|
||||
"Tag": "EntratiSyndicate",
|
||||
"Seed": 99561,
|
||||
"Nodes": [],
|
||||
"Jobs": [
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosGrnSurvivorBounty",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierATableBRewards",
|
||||
"masteryReq": 0,
|
||||
"minEnemyLevel": 5,
|
||||
"maxEnemyLevel": 15,
|
||||
"xpAmounts": [5, 5, 5]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosAreaDefenseBounty",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierCTableBRewards",
|
||||
"masteryReq": 1,
|
||||
"minEnemyLevel": 15,
|
||||
"maxEnemyLevel": 25,
|
||||
"xpAmounts": [12, 12, 12]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosEndlessExcavateBounty",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierBTableARewards",
|
||||
"masteryReq": 5,
|
||||
"minEnemyLevel": 25,
|
||||
"maxEnemyLevel": 30,
|
||||
"endless": true,
|
||||
"xpAmounts": [14, 14, 14]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosAssassinateBounty",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierDTableBRewards",
|
||||
"masteryReq": 2,
|
||||
"minEnemyLevel": 30,
|
||||
"maxEnemyLevel": 40,
|
||||
"xpAmounts": [17, 17, 17, 25]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosKeyPiecesBounty",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierETableARewards",
|
||||
"masteryReq": 3,
|
||||
"minEnemyLevel": 40,
|
||||
"maxEnemyLevel": 60,
|
||||
"xpAmounts": [22, 22, 22, 22, 43]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/InfestedMicroplanet/Jobs/DeimosExcavateBounty",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/TierETableARewards",
|
||||
"masteryReq": 10,
|
||||
"minEnemyLevel": 100,
|
||||
"maxEnemyLevel": 100,
|
||||
"xpAmounts": [25, 25, 25, 25, 50]
|
||||
},
|
||||
{
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/VaultBountyTierATableCRewards",
|
||||
"masteryReq": 5,
|
||||
"minEnemyLevel": 30,
|
||||
"maxEnemyLevel": 40,
|
||||
"xpAmounts": [2, 2, 2, 4],
|
||||
"locationTag": "ChamberB",
|
||||
"isVault": true
|
||||
},
|
||||
{
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/VaultBountyTierBTableCRewards",
|
||||
"masteryReq": 5,
|
||||
"minEnemyLevel": 40,
|
||||
"maxEnemyLevel": 50,
|
||||
"xpAmounts": [4, 4, 4, 5],
|
||||
"locationTag": "ChamberA",
|
||||
"isVault": true
|
||||
},
|
||||
{
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/DeimosMissionRewards/VaultBountyTierCTableCRewards",
|
||||
"masteryReq": 5,
|
||||
"minEnemyLevel": 50,
|
||||
"maxEnemyLevel": 60,
|
||||
"xpAmounts": [5, 5, 5, 7],
|
||||
"locationTag": "ChamberC",
|
||||
"isVault": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": { "$oid": "663a71c80000000000000004" },
|
||||
"Activation": { "$date": { "$numberLong": "1715106248403" } },
|
||||
"Expiry": { "$date": { "$numberLong": "2000000000000" } },
|
||||
"Tag": "EntratiLabSyndicate",
|
||||
"Seed": 99562,
|
||||
"Nodes": []
|
||||
},
|
||||
{
|
||||
"_id": { "$oid": "663a71c80000000000000008" },
|
||||
"Activation": { "$date": { "$numberLong": "1715106248403" } },
|
||||
"Expiry": { "$date": { "$numberLong": "2000000000000" } },
|
||||
"Tag": "CetusSyndicate",
|
||||
"Seed": 99561,
|
||||
"Nodes": [],
|
||||
"Jobs": [
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/AssassinateBountyCap",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierATableBRewards",
|
||||
"masteryReq": 0,
|
||||
"minEnemyLevel": 5,
|
||||
"maxEnemyLevel": 15,
|
||||
"xpAmounts": [430, 430, 430]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/AttritionBountyLib",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierBTableBRewards",
|
||||
"masteryReq": 1,
|
||||
"minEnemyLevel": 10,
|
||||
"maxEnemyLevel": 30,
|
||||
"xpAmounts": [620, 620, 620]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/RescueBountyResc",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierCTableBRewards",
|
||||
"masteryReq": 2,
|
||||
"minEnemyLevel": 20,
|
||||
"maxEnemyLevel": 40,
|
||||
"xpAmounts": [670, 670, 670, 990]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/CaptureBountyCapTwo",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierDTableBRewards",
|
||||
"masteryReq": 3,
|
||||
"minEnemyLevel": 30,
|
||||
"maxEnemyLevel": 50,
|
||||
"xpAmounts": [570, 570, 570, 570, 1110]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/ReclamationBountyCache",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierETableBRewards",
|
||||
"masteryReq": 5,
|
||||
"minEnemyLevel": 40,
|
||||
"maxEnemyLevel": 60,
|
||||
"xpAmounts": [740, 740, 740, 740, 1450]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/AttritionBountyCap",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/TierETableBRewards",
|
||||
"masteryReq": 10,
|
||||
"minEnemyLevel": 100,
|
||||
"maxEnemyLevel": 100,
|
||||
"xpAmounts": [840, 840, 840, 840, 1660]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Eidolon/Jobs/Narmer/AssassinateBountyAss",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/NarmerTableBRewards",
|
||||
"masteryReq": 0,
|
||||
"minEnemyLevel": 50,
|
||||
"maxEnemyLevel": 70,
|
||||
"xpAmounts": [840, 840, 840, 840, 1650]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": { "$oid": "663a71c80000000000000025" },
|
||||
"Activation": { "$date": { "$numberLong": "1715106248403" } },
|
||||
"Expiry": { "$date": { "$numberLong": "2000000000000" } },
|
||||
"Tag": "SolarisSyndicate",
|
||||
"Seed": 99561,
|
||||
"Nodes": [],
|
||||
"Jobs": [
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/VenusIntelJobSpy",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierATableBRewards",
|
||||
"masteryReq": 0,
|
||||
"minEnemyLevel": 5,
|
||||
"maxEnemyLevel": 15,
|
||||
"xpAmounts": [340, 340, 340]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/VenusCullJobResource",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierBTableBRewards",
|
||||
"masteryReq": 1,
|
||||
"minEnemyLevel": 10,
|
||||
"maxEnemyLevel": 30,
|
||||
"xpAmounts": [660, 660, 660]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/VenusIntelJobRecovery",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierCTableBRewards",
|
||||
"masteryReq": 2,
|
||||
"minEnemyLevel": 20,
|
||||
"maxEnemyLevel": 40,
|
||||
"xpAmounts": [610, 610, 610, 900]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/VenusHelpingJobCaches",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierDTableBRewards",
|
||||
"masteryReq": 3,
|
||||
"minEnemyLevel": 30,
|
||||
"maxEnemyLevel": 50,
|
||||
"xpAmounts": [600, 600, 600, 600, 1170]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/VenusArtifactJobAmbush",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierETableBRewards",
|
||||
"masteryReq": 5,
|
||||
"minEnemyLevel": 40,
|
||||
"maxEnemyLevel": 60,
|
||||
"xpAmounts": [690, 690, 690, 690, 1350]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/VenusChaosJobExcavation",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/VenusJobMissionRewards/VenusTierETableBRewards",
|
||||
"masteryReq": 10,
|
||||
"minEnemyLevel": 100,
|
||||
"maxEnemyLevel": 100,
|
||||
"xpAmounts": [840, 840, 840, 840, 1660]
|
||||
},
|
||||
{
|
||||
"jobType": "/Lotus/Types/Gameplay/Venus/Jobs/Narmer/NarmerVenusCullJobExterminate",
|
||||
"rewards": "/Lotus/Types/Game/MissionDecks/EidolonJobMissionRewards/NarmerTableBRewards",
|
||||
"masteryReq": 0,
|
||||
"minEnemyLevel": 50,
|
||||
"maxEnemyLevel": 70,
|
||||
"xpAmounts": [780, 780, 780, 780, 1540]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": { "$oid": "663a71c80000000000000029" },
|
||||
"Activation": { "$date": { "$numberLong": "1715106248403" } },
|
||||
"Expiry": { "$date": { "$numberLong": "2000000000000" } },
|
||||
"Tag": "ZarimanSyndicate",
|
||||
"Seed": 99562,
|
||||
"Nodes": []
|
||||
},
|
||||
{
|
||||
"_id": { "$oid": "676b8d340000000000000006" },
|
||||
"Activation": { "$date": { "$numberLong": "1735101748215" } },
|
||||
"Expiry": { "$date": { "$numberLong": "2000000000000" } },
|
||||
"Tag": "HexSyndicate",
|
||||
"Seed": 33872,
|
||||
"Nodes": []
|
||||
}
|
||||
],
|
||||
"ActiveMissions": [
|
||||
|
@ -595,6 +595,10 @@
|
||||
<input class="form-check-input" type="checkbox" id="noDailyStandingLimits" />
|
||||
<label class="form-check-label" for="noDailyStandingLimits" data-loc="cheats_noDailyStandingLimits"></label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="noDailyFocusLimit" />
|
||||
<label class="form-check-label" for="noDailyFocusLimit" data-loc="cheats_noDailyFocusLimit"></label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="noArgonCrystalDecay" />
|
||||
<label class="form-check-label" for="noArgonCrystalDecay" data-loc="cheats_noArgonCrystalDecay"></label>
|
||||
|
@ -133,13 +133,14 @@ dict = {
|
||||
cheats_unlockDoubleCapacityPotatoesEverywhere: `Orokin Reaktor & Beschleuniger überall`,
|
||||
cheats_unlockExilusEverywhere: `Exilus-Adapter überall`,
|
||||
cheats_unlockArcanesEverywhere: `Arkana-Adapter überall`,
|
||||
cheats_noDailyStandingLimits: `Kein tägliches Ansehenslimit`,
|
||||
cheats_noDailyStandingLimits: `Kein tägliches Ansehen Limit`,
|
||||
cheats_noDailyFocusLimit: `Kein tägliches Fokus-Limit`,
|
||||
cheats_noArgonCrystalDecay: `Argon-Kristalle verschwinden niemals`,
|
||||
cheats_noMasteryRankUpCooldown: `Keine Wartezeit beim Meisterschaftsrangaufstieg`,
|
||||
cheats_noVendorPurchaseLimits: `Keine Kaufbeschränkungen bei Händlern`,
|
||||
cheats_noKimCooldowns: `Keine Wartezeit bei KIM`,
|
||||
cheats_instantResourceExtractorDrones: `Sofortige Ressourcen-Extraktor-Drohnen`,
|
||||
cheats_noResourceExtractorDronesDamage: `[UNTRANSLATED] No Resource Extractor Drones Damage`,
|
||||
cheats_noResourceExtractorDronesDamage: `Kein Schaden für Ressourcen-Extraktor-Drohnen`,
|
||||
cheats_noDojoRoomBuildStage: `Kein Dojo-Raum-Bauvorgang`,
|
||||
cheats_noDojoDecoBuildStage: `Kein Dojo-Deko-Bauvorgang`,
|
||||
cheats_fastDojoRoomDestruction: `Schnelle Dojo-Raum-Zerstörung`,
|
||||
|
@ -133,6 +133,7 @@ dict = {
|
||||
cheats_unlockExilusEverywhere: `Exilus Adapters Everywhere`,
|
||||
cheats_unlockArcanesEverywhere: `Arcane Adapters Everywhere`,
|
||||
cheats_noDailyStandingLimits: `No Daily Standing Limits`,
|
||||
cheats_noDailyFocusLimit: `No Daily Focus Limit`,
|
||||
cheats_noArgonCrystalDecay: `No Argon Crystal Decay`,
|
||||
cheats_noMasteryRankUpCooldown: `No Mastery Rank Up Cooldown`,
|
||||
cheats_noVendorPurchaseLimits: `No Vendor Purchase Limits`,
|
||||
|
@ -134,6 +134,7 @@ dict = {
|
||||
cheats_unlockExilusEverywhere: `Adaptadores Exilus en todas partes`,
|
||||
cheats_unlockArcanesEverywhere: `Adaptadores de Arcanos en todas partes`,
|
||||
cheats_noDailyStandingLimits: `Sin límite diario de reputación`,
|
||||
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
|
||||
cheats_noArgonCrystalDecay: `Sin descomposición de cristal de Argón`,
|
||||
cheats_noMasteryRankUpCooldown: `Sin tiempo de espera para rango de maestría`,
|
||||
cheats_noVendorPurchaseLimits: `Sin límite de compras de vendedores`,
|
||||
|
@ -134,6 +134,7 @@ dict = {
|
||||
cheats_unlockExilusEverywhere: `Adaptateurs Exilus partout`,
|
||||
cheats_unlockArcanesEverywhere: `Adaptateur d'Arcanes partout`,
|
||||
cheats_noDailyStandingLimits: `Pas de limite de réputation journalière`,
|
||||
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
|
||||
cheats_noArgonCrystalDecay: `[UNTRANSLATED] No Argon Crystal Decay`,
|
||||
cheats_noMasteryRankUpCooldown: `[UNTRANSLATED] No Mastery Rank Up Cooldown`,
|
||||
cheats_noVendorPurchaseLimits: `[UNTRANSLATED] No Vendor Purchase Limits`,
|
||||
|
@ -134,6 +134,7 @@ dict = {
|
||||
cheats_unlockExilusEverywhere: `Адаптеры Эксилус везде`,
|
||||
cheats_unlockArcanesEverywhere: `Адаптеры для мистификаторов везде`,
|
||||
cheats_noDailyStandingLimits: `Без ежедневных ограничений репутации`,
|
||||
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
|
||||
cheats_noArgonCrystalDecay: `Без распада аргоновых кристаллов`,
|
||||
cheats_noMasteryRankUpCooldown: `Повышение ранга мастерства без кулдауна`,
|
||||
cheats_noVendorPurchaseLimits: `Отсутствие лимитов на покупки у вендоров`,
|
||||
|
@ -134,6 +134,7 @@ dict = {
|
||||
cheats_unlockExilusEverywhere: `全物品自带适配器`,
|
||||
cheats_unlockArcanesEverywhere: `全物品自带赋能适配器`,
|
||||
cheats_noDailyStandingLimits: `无每日声望限制`,
|
||||
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
|
||||
cheats_noArgonCrystalDecay: `[UNTRANSLATED] No Argon Crystal Decay`,
|
||||
cheats_noMasteryRankUpCooldown: `[UNTRANSLATED] No Mastery Rank Up Cooldown`,
|
||||
cheats_noVendorPurchaseLimits: `[UNTRANSLATED] No Vendor Purchase Limits`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user