返回提交历史
Modified
src/services/purchaseService.ts
+1
-0
Modified
src/types/purchaseTypes.ts
+25
-25
XFEstudio/XFESpaceNinjaServer
fix: fill in ExpectedPrice for arsenal purchases too (#3848)
Closes #3847 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3848 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
8067e717
代码差异
2 个文件
+26
-25
@@ -217,6 +217,7 @@ export const handlePurchase = async (
217
217
218
218
switch (purchaseRequest.PurchaseParams.Source) {
219
219
case PurchaseSource.Market:
220
case PurchaseSource.Arsenal:
220
221
if (!purchaseRequest.PurchaseParams.ExpectedPrice) {
221
222
logger.debug(`client didn't provide ExpectedPrice`);
222
223
purchaseRequest.PurchaseParams.ExpectedPrice = getPrice(
@@ -17,31 +17,31 @@ import type {
17
17
} from "./inventoryTypes/inventoryTypes.ts";
18
18
19
19
export enum PurchaseSource {
20
Market = 0,
21
VoidTrader = 1,
22
SyndicateFavor = 2,
23
DailyDeal = 3,
24
Arsenal = 4,
25
Profile = 5,
26
Hub = 6,
27
Vendor = 7,
28
AppearancePreview = 8,
29
Museum = 9,
30
Operator = 10,
31
PlayerShip = 11,
32
Crewship = 12,
33
MenuStyle = 13,
34
MenuHud = 14,
35
Chat = 15,
36
Inventory = 16,
37
StarChart = 17,
38
PrimeVaultTrader = 18,
39
Incubator = 19,
40
Prompt = 20,
41
Kaithe = 21,
42
DuviriWeapon = 22,
43
UpdateScreen = 23,
44
Motorcycle = 24
20
Market = 0, // platinum, from metadata
21
VoidTrader = 1, // ducat + credits
22
SyndicateFavor = 2, // standing
23
DailyDeal = 3, // platinum, from server
24
Arsenal = 4, // platinum, from metadata
25
Profile = 5, // ???
26
Hub = 6, // ???
27
Vendor = 7, // variable, from manifest
28
AppearancePreview = 8, // platinum?
29
Museum = 9, // credits
30
Operator = 10, // ???
31
PlayerShip = 11, // ???
32
Crewship = 12, // ???
33
MenuStyle = 13, // platinum?
34
MenuHud = 14, // platinum?
35
Chat = 15, // ???
36
Inventory = 16, // ???
37
StarChart = 17, // ???
38
PrimeVaultTrader = 18, // aya + regal aya, from server
39
Incubator = 19, // ???
40
Prompt = 20, // ???
41
Kaithe = 21, // ???
42
DuviriWeapon = 22, // ???
43
UpdateScreen = 23, // ???
44
Motorcycle = 24 // ???
45
45
}
46
46
47
47
export interface IPurchaseRequest {