feat: claiming of tennolive relay's secret (#2569)

Reviewed-on: OpenWF/SpaceNinjaServer#2569
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-07-30 01:51:07 -07:00 committed by Sainan
parent 0a28eab65d
commit 541ec3d702
2 changed files with 11 additions and 2 deletions

View File

@ -1342,7 +1342,7 @@ export const addStanding = (
// TODO: AffiliationMods support (Nightwave). // TODO: AffiliationMods support (Nightwave).
export const updateGeneric = async (data: IGenericUpdate, accountId: string): Promise<IUpdateNodeIntrosResponse> => { export const updateGeneric = async (data: IGenericUpdate, accountId: string): Promise<IUpdateNodeIntrosResponse> => {
const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems"); const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems ShipDecorations");
// Make it an array for easier parsing. // Make it an array for easier parsing.
if (typeof data.NodeIntrosCompleted === "string") { if (typeof data.NodeIntrosCompleted === "string") {
@ -1351,7 +1351,15 @@ export const updateGeneric = async (data: IGenericUpdate, accountId: string): Pr
const inventoryChanges: IInventoryChanges = {}; const inventoryChanges: IInventoryChanges = {};
for (const node of data.NodeIntrosCompleted) { for (const node of data.NodeIntrosCompleted) {
if (node == "KayaFirstVisitPack") { if (node == "TC2025") {
inventoryChanges.ShipDecorations = [
{
ItemType: "/Lotus/Types/Items/ShipDecos/TauGrineerLancerBobbleHead",
ItemCount: 1
}
];
addShipDecorations(inventory, inventoryChanges.ShipDecorations);
} else if (node == "KayaFirstVisitPack") {
inventoryChanges.MiscItems = [ inventoryChanges.MiscItems = [
{ {
ItemType: "/Lotus/Types/Items/MiscItems/1999FixedStickersPack", ItemType: "/Lotus/Types/Items/MiscItems/1999FixedStickersPack",

View File

@ -74,6 +74,7 @@ export type IInventoryChanges = {
InfestedFoundry?: IInfestedFoundryClient; InfestedFoundry?: IInfestedFoundryClient;
Drones?: IDroneClient[]; Drones?: IDroneClient[];
MiscItems?: IMiscItem[]; MiscItems?: IMiscItem[];
ShipDecorations?: ITypeCount[];
EmailItems?: ITypeCount[]; EmailItems?: ITypeCount[];
CrewShipRawSalvage?: ITypeCount[]; CrewShipRawSalvage?: ITypeCount[];
Nemesis?: Partial<INemesisClient>; Nemesis?: Partial<INemesisClient>;