返回提交历史
Modified
src/services/inventoryService.ts
+10
-2
Modified
src/types/purchaseTypes.ts
+1
-0
XFEstudio/SpaceNinjaServer
feat: claiming of tennolive relay's secret (#2569)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2569 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
541ec3d7
代码差异
2 个文件
+11
-2
@@ -1342,7 +1342,7 @@ export const addStanding = (
1342
1342
1343
1343
// TODO: AffiliationMods support (Nightwave).
1344
1344
export const updateGeneric = async (data: IGenericUpdate, accountId: string): Promise<IUpdateNodeIntrosResponse> => {
1345
const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems");
1345
const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems ShipDecorations");
1346
1346
1347
1347
// Make it an array for easier parsing.
1348
1348
if (typeof data.NodeIntrosCompleted === "string") {
@@ -1351,7 +1351,15 @@ export const updateGeneric = async (data: IGenericUpdate, accountId: string): Pr
1351
1351
1352
1352
const inventoryChanges: IInventoryChanges = {};
1353
1353
for (const node of data.NodeIntrosCompleted) {
1354
if (node == "KayaFirstVisitPack") {
1354
if (node == "TC2025") {
1355
inventoryChanges.ShipDecorations = [
1356
{
1357
ItemType: "/Lotus/Types/Items/ShipDecos/TauGrineerLancerBobbleHead",
1358
ItemCount: 1
1359
}
1360
];
1361
addShipDecorations(inventory, inventoryChanges.ShipDecorations);
1362
} else if (node == "KayaFirstVisitPack") {
1355
1363
inventoryChanges.MiscItems = [
1356
1364
{
1357
1365
ItemType: "/Lotus/Types/Items/MiscItems/1999FixedStickersPack",
@@ -74,6 +74,7 @@ export type IInventoryChanges = {
74
74
InfestedFoundry?: IInfestedFoundryClient;
75
75
Drones?: IDroneClient[];
76
76
MiscItems?: IMiscItem[];
77
ShipDecorations?: ITypeCount[];
77
78
EmailItems?: ITypeCount[];
78
79
CrewShipRawSalvage?: ITypeCount[];
79
80
Nemesis?: Partial<INemesisClient>;