diff --git a/packages/blk/src/index.ts b/packages/blk/src/index.ts index 4e48eec..9e376ad 100644 --- a/packages/blk/src/index.ts +++ b/packages/blk/src/index.ts @@ -12,3 +12,4 @@ export { BlkLabel, decodeBlk, encodeBlk, type SharedNameContext } from './binary export { parseSharedNameMap, type SharedNameMap } from './shared-name-map.ts'; export { appendParam, ensureBlock, findBlock, findParam, setParam, visitParams } from './tree.ts'; export { formatBlkText } from './text/format-text.ts'; +export { singleVehiclePackId, stableGuid } from './stable-guid.ts'; diff --git a/packages/blk/src/stable-guid.ts b/packages/blk/src/stable-guid.ts new file mode 100644 index 0000000..f71e124 --- /dev/null +++ b/packages/blk/src/stable-guid.ts @@ -0,0 +1,18 @@ +/** + * Deterministic GUID derived from a text (SHA-1, formatted 8-4-4-4-12, upper case). The build + * registers `stableGuid()` for the offline vehicle packs in config/gui.blk + * `bundles/guid`, and the local service gives the same GUID to the same store product, so the + * game's `getBundleId` → `get_url_for_purchase` → `item_info.php` chain finds the pack + *. One definition, used by both packages. + */ +import { createHash } from 'node:crypto'; + +export function stableGuid(text: string): string { + const hex = createHash('sha1').update(`wto-bundle:${text}`).digest('hex').toUpperCase(); + return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20, 32)}`; +} + +/** Entitlement name of a single-vehicle offline pack (store-catalogue.ts and the build agree on it). */ +export function singleVehiclePackId(vehicle: string): string { + return `wto_pack_${vehicle}`; +} diff --git a/packages/build/src/cli.ts b/packages/build/src/cli.ts index 1887848..cb44825 100644 --- a/packages/build/src/cli.ts +++ b/packages/build/src/cli.ts @@ -14,6 +14,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { dirname, join } from 'node:path'; import { parseArgs } from 'node:util'; +import { fileURLToPath } from 'node:url'; import { rebuildCharPack } from './char-pack.ts'; import { patchExecutable } from './executable.ts'; import { assertWritableCopy, GAME_FILES } from './game-copy.ts'; @@ -21,6 +22,10 @@ import { rebuildGuiPack } from './gui-pack.ts'; import { rebuildMainPack } from './main-pack.ts'; import { localEndpoint } from './network/local-endpoint.ts'; import { NETWORK_HOOK_LIBRARY, networkHookSettings } from './network/network-hook.ts'; +import { offlinePackBundleGuids } from './store/offline-bundles.ts'; + +/** The local service's default store tuning; its multi-vehicle pack ids get bundle GUIDs too. */ +const STORE_TUNING_PATH = fileURLToPath(new URL('../../local-service/tuning/store.jsonc', import.meta.url)); function main(): number { const { values } = parseArgs({ @@ -53,7 +58,8 @@ function main(): number { return 1; } - const charPack = rebuildCharPack(readFileSync(join(values.game, GAME_FILES.charPack)), endpoint); + const stockCharPack = readFileSync(join(values.game, GAME_FILES.charPack)); + const charPack = rebuildCharPack(stockCharPack, endpoint); console.log(`network.blk: ${charPack.network.addresses.length} address(es) now point to ${endpoint.host}:${endpoint.port}; ` + `environments configured: ${charPack.network.environments.join(', ')}`); if (values.verbose) { @@ -62,7 +68,9 @@ function main(): number { console.log(`game_settings.blk: features on for every player: ${charPack.features.join(', ') || '(already on)'}`); console.log(`shop.blk: ${charPack.revealedVehicles} hidden vehicles shown in the tech tree`); - const mainPack = rebuildMainPack(readFileSync(join(values.game, GAME_FILES.mainPack)), endpoint); + const packBundles = offlinePackBundleGuids(stockCharPack, STORE_TUNING_PATH); + const mainPack = rebuildMainPack(readFileSync(join(values.game, GAME_FILES.mainPack)), endpoint, packBundles); + console.log(`gui.blk: ${packBundles.length} offline vehicle pack bundle GUID(s) registered`); console.log(`settings.blk: ${mainPack.addresses.length} address(es) now point to ${endpoint.host}:${endpoint.port}`); for (const change of mainPack.addresses) console.log(` ${change.path}: ${change.before} -> ${change.after}`); diff --git a/packages/build/src/main-pack.ts b/packages/build/src/main-pack.ts index 1bf1d8d..dafb0e9 100644 --- a/packages/build/src/main-pack.ts +++ b/packages/build/src/main-pack.ts @@ -39,7 +39,11 @@ export interface MainPackResult { readonly addresses: readonly AddressChange[]; } -export function rebuildMainPack(stockPack: Uint8Array, endpoint: LocalEndpoint): MainPackResult { +export function rebuildMainPack( + stockPack: Uint8Array, + endpoint: LocalEndpoint, + extraBundles: ReadonlyArray = [], +): MainPackResult { let addresses: AddressChange[] = []; const pack = editPackBlks(stockPack, [ { @@ -52,15 +56,15 @@ export function rebuildMainPack(stockPack: Uint8Array, endpoint: LocalEndpoint): }, { path: GUI_CONFIG_PATH, - edit: (root) => registerStoreBundleGuids(root), + edit: (root) => registerStoreBundleGuids(root, [...EXTRA_STORE_BUNDLE_GUIDS, ...extraBundles]), }, ]); return { pack, addresses }; } -function registerStoreBundleGuids(guiRoot: BlkBlock): void { +function registerStoreBundleGuids(guiRoot: BlkBlock, bundles: ReadonlyArray): void { const guidBlock = ensureBlock(ensureBlock(guiRoot, 'bundles'), 'guid'); - for (const [entitlement, guid] of EXTRA_STORE_BUNDLE_GUIDS) { + for (const [entitlement, guid] of bundles) { setParam(guidBlock, entitlement, { type: 'string', value: guid }); } } diff --git a/packages/build/src/pack-edit.ts b/packages/build/src/pack-edit.ts index f7f652d..9fb17d0 100644 --- a/packages/build/src/pack-edit.ts +++ b/packages/build/src/pack-edit.ts @@ -36,6 +36,14 @@ export function editPackBlks(stockPack: Uint8Array, edits: readonly BlkEdit[]): return writeArchive(archive); } +/** Read one BLK document of a pack without changing anything. */ +export function readPackBlk(stockPack: Uint8Array, path: string): BlkBlock { + const archive = readArchive(stockPack); + const dictionary = findDictionary(archive); + const names = archive.files.has(NAME_MAP_PATH) ? parseSharedNameMap(getFile(archive, NAME_MAP_PATH), dictionary).names : []; + return decodeBlk(getFile(archive, path), { names, dictionary }); +} + /** The pack's zstd dictionary, if it has one. */ function findDictionary(archive: Archive): Uint8Array | undefined { const dictionaries = [...archive.files.keys()].filter((path) => path.endsWith('.dict')); diff --git a/packages/build/src/store/offline-bundles.ts b/packages/build/src/store/offline-bundles.ts new file mode 100644 index 0000000..752338b --- /dev/null +++ b/packages/build/src/store/offline-bundles.ts @@ -0,0 +1,35 @@ +/** + * Offline store bundle GUIDs for config/gui.blk `bundles/guid`. + * + * The game opens a gift vehicle's own store page only when `getBundleId()` finds a + * GUID for it (scripts/onlineShop/onlineShopModel.nut showUnitGoods → doBrowserPurchaseByGuid); + * the URL then comes from the local service's item_info.php `url` field. Every vehicle carrying + * `gift` in char.vromfs.bin config/wpcost.blk gets `stableGuid(wto_pack_)`, and every + * multi-vehicle pack listed in the local service's tuning/store.jsonc gets `stableGuid()`; + * entries the store does not sell are never looked up, so registering extra ones is harmless. + */ +import { existsSync, readFileSync } from 'node:fs'; +import { singleVehiclePackId, stableGuid, type BlkBlock } from '@wto/blk'; +import { readPackBlk } from '../pack-edit.ts'; + +export const WPCOST_PATH = 'config/wpcost.blk'; + +export function offlinePackBundleGuids(charPack: Uint8Array, storeTuningPath: string): Array { + const ids = new Set(); + for (const vehicle of giftVehicles(readPackBlk(charPack, WPCOST_PATH))) ids.add(singleVehiclePackId(vehicle)); + for (const id of multiVehiclePackIds(storeTuningPath)) ids.add(id); + return [...ids].sort().map((id) => [id, stableGuid(id)] as const); +} + +function giftVehicles(wpcost: BlkBlock): string[] { + return wpcost.blocks.filter((unit) => unit.params.some((param) => param.name === 'gift')).map((unit) => unit.name); +} + +/** Pack ids of `multiVehiclePacks` in tuning/store.jsonc (a plain scan; the file is JSON with comments). */ +function multiVehiclePackIds(storeTuningPath: string): string[] { + if (!existsSync(storeTuningPath)) return []; + const text = readFileSync(storeTuningPath, 'utf8'); + const start = text.indexOf('"multiVehiclePacks"'); + if (start < 0) return []; + return [...text.slice(start).matchAll(/"id"\s*:\s*"([^"]+)"/g)].map((match) => match[1]!); +} diff --git a/packages/local-service/src/inventory/coupons/cosmetic-coupons.ts b/packages/local-service/src/inventory/coupons/cosmetic-coupons.ts index 761a9b5..72196d6 100644 --- a/packages/local-service/src/inventory/coupons/cosmetic-coupons.ts +++ b/packages/local-service/src/inventory/coupons/cosmetic-coupons.ts @@ -14,7 +14,7 @@ import { type LocalizedItemDef, type MarketplaceListing, } from '../itemdef-types.ts'; -import type { MarketplaceTuning } from '../marketplace-tuning.ts'; +import { cosmeticCouponPrice, type MarketplaceTuning } from '../marketplace-tuning.ts'; const ICON_BY_KIND = { skin: '!#ui/gameuiskin#item_type_skin.svg', @@ -84,7 +84,7 @@ function buildSingleDecorCoupon(decor: MarketplaceDecorCoupon, tuning: Marketpla readonly action: CouponAction; readonly listing: MarketplaceListing; } { - const { gjnCents, quality } = tuning.cosmeticCoupons[decor.kind]; + const { gjnCents, quality } = cosmeticCouponPrice(tuning, decor.kind, decor.resourceKey); const color = QUALITY_COLORS[quality] ?? ''; const hashName = `${decor.kind}_${decor.itemdefId}`; const def = makeLocalizedItemDef(decor.itemdefId, { @@ -120,7 +120,7 @@ function buildSingleUnlockCoupon(unlock: MarketplaceUnlockCoupon, tuning: Market readonly action: CouponAction; readonly listing: MarketplaceListing; } { - const { gjnCents, quality } = tuning.cosmeticCoupons.unlock; + const { gjnCents, quality } = cosmeticCouponPrice(tuning, 'unlock', unlock.unlockId); const color = QUALITY_COLORS[quality] ?? ''; const hashName = `unlock_${unlock.itemdefId}`; const def = makeLocalizedItemDef(unlock.itemdefId, { diff --git a/packages/local-service/src/inventory/marketplace-sell.ts b/packages/local-service/src/inventory/marketplace-sell.ts new file mode 100644 index 0000000..8eceeb7 --- /dev/null +++ b/packages/local-service/src/inventory/marketplace-sell.ts @@ -0,0 +1,42 @@ +/** + * Selling marketplace coupons back to the system (offline design, local verification): the player + * gets the listing price minus `sellFeeRate` (tuning/marketplace.jsonc, default 15 % like the + * official market's `market_fee`) credited as GJN; the coupons leave `extInventory`. + */ +import type { BlkBlock } from '@wto/blk'; +import { addGjnCents } from '../profile/profile-currency.ts'; +import { consumeExternalItem, externalInventoryItems } from '../profile/profile-external-inventory.ts'; +import type { InventoryCatalogue } from './itemdef-catalogue.ts'; + +export type MarketSellOutcome = + | { readonly ok: true; readonly creditedCents: number } + | { readonly ok: false; readonly reason: 'NOT_FOUND' | 'NOT_ENOUGH_ITEMS' }; + +/** GJN hundredths the player receives for one coupon of this price. */ +export function sellProceedsCents(priceCents: number, feeRate: number): number { + return Math.floor(priceCents * (1 - feeRate)); +} + +export function sellMarketplaceCoupon( + profile: BlkBlock, + catalogue: InventoryCatalogue, + itemdefId: number, + quantity: number, + feeRate: number, +): MarketSellOutcome { + const listing = catalogue.marketplaceListing(itemdefId); + if (!listing || !Number.isSafeInteger(quantity) || quantity < 1) return { ok: false, reason: 'NOT_FOUND' }; + const stacks = externalInventoryItems(profile).filter((item) => item.itemDefId === itemdefId); + if (stacks.reduce((sum, item) => sum + item.quantity, 0) < quantity) return { ok: false, reason: 'NOT_ENOUGH_ITEMS' }; + + let remaining = quantity; + for (const stack of stacks) { + if (remaining === 0) break; + const take = Math.min(stack.quantity, remaining); + if (!consumeExternalItem(profile, stack.itemId, take)) return { ok: false, reason: 'NOT_ENOUGH_ITEMS' }; + remaining -= take; + } + const credited = sellProceedsCents(listing.gjnCostCents, feeRate) * quantity; + addGjnCents(profile, credited); + return { ok: true, creditedCents: credited }; +} diff --git a/packages/local-service/src/inventory/marketplace-service.ts b/packages/local-service/src/inventory/marketplace-service.ts index 27048f2..954e2af 100644 --- a/packages/local-service/src/inventory/marketplace-service.ts +++ b/packages/local-service/src/inventory/marketplace-service.ts @@ -24,6 +24,8 @@ import { import { buyFreeMarketplaceCoupon, buyMarketplaceCoupon } from './inventory-rules.ts'; import type { InventoryCatalogue } from './itemdef-catalogue.ts'; import type { MarketplaceListing } from './itemdef-types.ts'; +import { sellMarketplaceCoupon, sellProceedsCents, type MarketSellOutcome } from './marketplace-sell.ts'; +import type { MarketplaceTuning } from './marketplace-tuning.ts'; const MARKET_WEB = createStaticWebSite(new URL('./web/', import.meta.url)); @@ -34,19 +36,21 @@ export class MarketplaceService implements Service { readonly #catalogue: InventoryCatalogue; readonly #notifyInventoryChanged: () => void; readonly #maxPerPurchase: number; + readonly #sellFeeRate: number; constructor( accounts: AccountStore, profiles: PlayerProfiles, catalogue: InventoryCatalogue, notifyInventoryChanged: () => void, - maxPerPurchase: number, + tuning: Pick, ) { this.#accounts = accounts; this.#profiles = profiles; this.#catalogue = catalogue; this.#notifyInventoryChanged = notifyInventoryChanged; - this.#maxPerPurchase = maxPerPurchase; + this.#maxPerPurchase = tuning.maxPerPurchase; + this.#sellFeeRate = tuning.sellFeeRate; } accepts(request: ServiceRequest): boolean { @@ -62,6 +66,7 @@ export class MarketplaceService implements Service { if (subPath === '/api/state' && request.method === 'GET') return this.#state(request); if (subPath === '/api/buy' && request.method === 'POST') return this.#buy(request); + if (subPath === '/api/sell' && request.method === 'POST') return this.#sell(request); return MARKET_WEB.serve(subPath, `marketplace web (${request.query.get('n') ?? 'index'})`) ?? { status: 404, headers: { 'content-type': 'text/plain; charset=utf-8' }, body: 'Not found', logNotes: { summary: `marketplace 404: ${subPath}` } }; @@ -82,6 +87,7 @@ export class MarketplaceService implements Service { const listings = this.#catalogue.marketplaceListings().map((listing) => ({ ...listing, + sellCents: sellProceedsCents(listing.gjnCostCents, this.#sellFeeRate), couponCount: heldCounts.get(listing.itemdefId) ?? 0, alreadyActivated: profile ? isListingAlreadyActivated(profile, listing, unlockedSet) : false, })); @@ -90,10 +96,36 @@ export class MarketplaceService implements Service { accounts: this.#accounts.all().map((a) => ({ userId: a.userId, login: a.login, nick: a.nick })), currentUserId: account?.userId ?? '', balance, + sellFeeRate: this.#sellFeeRate, listings, }, `marketplace state (${account?.userId ?? 'no-account'})`); } + #sell(request: ServiceRequest): ServiceResponse { + const body = parseJsonBody(request.body); + const account = requireWebActionAccount(this.#accounts, body.userId); + if (!account) { + return jsonResponse({ ok: false, message: { zh: '没有找到这个账号,请先在右上角选择账号。', en: 'Account not found. Pick an account at the top right first.' } }, 'marketplace sell: unknown account'); + } + const itemdefId = Number(body.itemdefId ?? 0); + const quantity = body.quantity === undefined ? 1 : Number(body.quantity); + let outcome: MarketSellOutcome = { ok: false, reason: 'NOT_FOUND' }; + this.#profiles.updateWhen(account.userId, (saved) => { + outcome = sellMarketplaceCoupon(saved, this.#catalogue, itemdefId, quantity, this.#sellFeeRate); + return outcome.ok; + }); + const result = outcome as MarketSellOutcome; + if (!result.ok) { + return jsonResponse({ ok: false, message: { zh: '库存里没有足够的这张兑换券。', en: 'Not enough of this coupon in your inventory.' } }, `marketplace sell ${itemdefId}: ${result.reason}`); + } + this.#notifyInventoryChanged(); + const amount = gjnText(result.creditedCents); + return jsonResponse({ + ok: true, + message: { zh: `已卖给系统 ×${quantity},到账 ${amount} GJN(已扣 ${Math.round(this.#sellFeeRate * 100)}% 手续费)。`, en: `Sold ${quantity} to the system for ${amount} GJN (after the ${Math.round(this.#sellFeeRate * 100)}% fee).` }, + }, `marketplace sell ${itemdefId} x${quantity} (+${amount} GJN)`); + } + #buy(request: ServiceRequest): ServiceResponse { const body = parseJsonBody(request.body); const account = requireWebActionAccount(this.#accounts, body.userId); diff --git a/packages/local-service/src/inventory/marketplace-tuning.ts b/packages/local-service/src/inventory/marketplace-tuning.ts index ca7013d..0bd2e9f 100644 --- a/packages/local-service/src/inventory/marketplace-tuning.ts +++ b/packages/local-service/src/inventory/marketplace-tuning.ts @@ -15,10 +15,14 @@ interface RankTier { export interface MarketplaceTuning { readonly maxPerPurchase: number; + /** Fraction kept by the system when a player sells a coupon back (0.15 = 15 %). */ + readonly sellFeeRate: number; readonly vehiclePriceByVehicle: ReadonlyMap; readonly vehiclePriceByRank: readonly RankTier[]; readonly vehicleQualityByRank: readonly RankTier[]; readonly cosmeticCoupons: Readonly>; + /** Per-resource GJN-hundredths overrides for decor / unlock coupons (official market snapshot). */ + readonly cosmeticPriceByResource: ReadonlyMap; } const COSMETIC_KINDS: readonly CosmeticCouponKind[] = ['skin', 'decal', 'attachable', 'unlock']; @@ -27,8 +31,10 @@ export function readMarketplaceTuning(file: TuningReader): MarketplaceTuning { const vehicles = file.object('vehicleCoupons'); const prices = vehicles.object('byVehicle'); const cosmetic = file.object('cosmeticCoupons'); + const byResource = cosmetic.object('byResource'); return { maxPerPurchase: file.int('maxPerPurchase', { min: 1 }), + sellFeeRate: file.number('sellFeeRate', { min: 0, max: 0.99 }), vehiclePriceByVehicle: new Map(prices.keys().map((name) => [name, prices.money(name, { min: 0.01 })])), vehiclePriceByRank: rankTiers(vehicles, 'byRank', (entry) => entry.money('gjn', { min: 0.01 })), vehicleQualityByRank: rankTiers(vehicles, 'qualityByRank', (entry) => entry.int('quality', { min: 1, max: 5 })), @@ -36,9 +42,16 @@ export function readMarketplaceTuning(file: TuningReader): MarketplaceTuning { const entry = cosmetic.object(kind); return [kind, { gjnCents: entry.money('gjn', { min: 0.01 }), quality: entry.int('quality', { min: 1, max: 5 }) }]; })) as Record, + cosmeticPriceByResource: new Map(byResource.keys().map((key) => [key, byResource.money(key, { min: 0.01 })])), }; } +/** A decor / unlock coupon's price: the per-resource snapshot price, else the kind's default. */ +export function cosmeticCouponPrice(tuning: MarketplaceTuning, kind: CosmeticCouponKind, resource: string): CouponPrice { + const base = tuning.cosmeticCoupons[kind]; + return { gjnCents: tuning.cosmeticPriceByResource.get(resource) ?? base.gjnCents, quality: base.quality }; +} + /** A vehicle coupon's price in GJN hundredths and its quality. */ export function vehicleCouponPrice(tuning: MarketplaceTuning, vehicle: string, rank: number): CouponPrice { return { diff --git a/packages/local-service/src/local-service.ts b/packages/local-service/src/local-service.ts index d2ead0b..a77173a 100644 --- a/packages/local-service/src/local-service.ts +++ b/packages/local-service/src/local-service.ts @@ -77,7 +77,7 @@ export async function startLocalService(options: LocalServiceOptions): Promise { const content = vehiclePackContent(tuning, vehicle.name, vehicle.rank); const unitLabel = names[vehicle.name] ?? { en: vehicle.name, zh: vehicle.name }; + const id = singleVehiclePackId(vehicle.name); return { - id: `wto_pack_${vehicle.name}`, + id, + guid: stableGuid(id), kind: 'vehicle-pack', chapter: 'bonuses', title: { en: `${unitLabel.en} Pack`, zh: `${unitLabel.zh} 礼包` }, diff --git a/packages/local-service/src/store/store-service.ts b/packages/local-service/src/store/store-service.ts index 60cce2b..b464e35 100644 --- a/packages/local-service/src/store/store-service.ts +++ b/packages/local-service/src/store/store-service.ts @@ -22,8 +22,8 @@ export class StoreService implements Service { readonly #yuplay: YuplayStoreApi; readonly #web: StoreWebApi; - constructor(accounts: AccountStore, profiles: PlayerProfiles, catalogue: StoreCatalogue, redeemCodes: RedeemTuning) { - this.#yuplay = new YuplayStoreApi(accounts, profiles, catalogue, redeemCodes); + constructor(accounts: AccountStore, profiles: PlayerProfiles, catalogue: StoreCatalogue, redeemCodes: RedeemTuning, port: number) { + this.#yuplay = new YuplayStoreApi(accounts, profiles, catalogue, redeemCodes, `http://127.0.0.1:${port}${PAGE_PREFIX}`); this.#web = new StoreWebApi(accounts, profiles, catalogue, redeemCodes); } diff --git a/packages/local-service/src/store/store-web-api.ts b/packages/local-service/src/store/store-web-api.ts index 9383ffd..ad5b198 100644 --- a/packages/local-service/src/store/store-web-api.ts +++ b/packages/local-service/src/store/store-web-api.ts @@ -123,6 +123,7 @@ function webProduct(product: StoreProduct, owned: boolean): Record vehicle.rank))].sort((a, b) => a - b) : undefined; return { id: product.id, + ...(product.guid ? { guid: product.guid } : {}), kind: product.kind, title: product.title, gjnCostCents: product.gjnCostCents, diff --git a/packages/local-service/src/store/yuplay-store-api.ts b/packages/local-service/src/store/yuplay-store-api.ts index 82b3158..63d601b 100644 --- a/packages/local-service/src/store/yuplay-store-api.ts +++ b/packages/local-service/src/store/yuplay-store-api.ts @@ -25,8 +25,11 @@ export class YuplayStoreApi { readonly #profiles: PlayerProfiles; readonly #catalogue: StoreCatalogue; readonly #redeemCodes: RedeemTuning; + /** Base of the local store page, e.g. http://127.0.0.1:47115/store; item_info.php `url` points into it. */ + readonly #storePageBase: string; - constructor(accounts: AccountStore, profiles: PlayerProfiles, catalogue: StoreCatalogue, redeemCodes: RedeemTuning) { + constructor(accounts: AccountStore, profiles: PlayerProfiles, catalogue: StoreCatalogue, redeemCodes: RedeemTuning, storePageBase: string) { + this.#storePageBase = storePageBase; this.#accounts = accounts; this.#profiles = profiles; this.#catalogue = catalogue; @@ -58,7 +61,9 @@ export class YuplayStoreApi { discount_mul: 1.0, discount_till: 0, title: product.title.en, - url: '', + // The game opens this page for the pack's own store entry (onlineShopModel.nut + // doBrowserPurchaseByGuid → get_url_for_purchase → yu_itemInfo.cpp `url`). + url: `${this.#storePageBase}?item=${encodeURIComponent(guid)}`, short_desc: product.title.en, shop_price_curr: 'gjn', multi_purch: product.kind !== 'vehicle-pack', diff --git a/packages/local-service/tuning/marketplace.jsonc b/packages/local-service/tuning/marketplace.jsonc index ffb525a..180ff79 100644 --- a/packages/local-service/tuning/marketplace.jsonc +++ b/packages/local-service/tuning/marketplace.jsonc @@ -4,244 +4,247 @@ // 每次最多买几张 "maxPerPurchase": 20, + // 卖给系统时扣除的手续费比例(0~0.99)。官方交易所的手续费是 15%(classInfo.market_fee = 0.15)。 + "sellFeeRate": 0.15, + // 载具券(shop.blk 里有 marketplaceItemdefId 的载具) "vehicleCoupons": { - // 单辆车的价格(GJN)。来源:原作者项目 data/market-catalog.json 的 referencePriceCents, - // 原作者在官方交易所记录的成交参考价(记录日期 2026-11-02 ~ 2026-11-02)。 + // 单辆车的价格(GJN)。来源:官方交易所快照 implementation notes + // (2026-11-26,取最低卖价;无人在售时取最高求购价);快照里没有的车保留原作者 2026-11-02 的记录。 "byVehicle": { - "a6m6c": 22.99, - "a_7k": 88.0, - "b7a2_homare_23": 20.0, - "beaufighter_mk1_40mm": 14.79, - "bf-109e-7": 1176.48, - "bf-109f-4_hungary": 30.8, - "bf-110c-6": 17.99, - "bi": 160.0, - "boston_mk_1": 63.97, - "buccaneer_s1": 37.0, - "bv-155b-1": 29.99, - "cn_plz_83_130": 37.0, - "cn_qn506": 56.0, - "cn_t_80ud_478be": 24.97, - "cn_type_64": 55.99, - "cn_wz_141": 25.0, - "cr_32_bis": 57.99, - "db_7": 9.49, - "douglas_a_1h": 200.0, - "f-4f": 63.89, - "f-5a": 64.0, - "f-5ag_norway": 41.8, - "f11f_1_late": 40.0, - "f2g-1": 43.99, - "f4d_1": 35.29, - "f4f-4_martlet_mk4": 14.77, - "f4u-6_au-1": 168.0, - "f7f3": 52.19, - "f_100f_china": 54.0, - "f_106a_1972": 39.99, - "f_14a_iriaf": 119.99, - "f_16a_block_5_netherlands": 28.49, - "f_16xl": 41.5, - "f_6c_pakistan": 17.5, - "fj_4b_agm_12b": 30.0, - "fr_amd_35_sa35": 5.93, - "fr_amx_50_1950": 84.99, - "fr_amx_50_surblinde": 1649.95, - "fr_amx_elc_901": 25.74, - "fr_arras_class_amiens": 6.1, - "fr_battleship_strasbourg": 59.75, - "fr_m46_patton": 28.88, - "fr_panhard_ebr_1963": 84.79, - "fr_trident_class_glaive_p671": 9.97, - "fw-189a-1": 13.67, - "fw-190c": 31.5, - "germ_battlecruiser_mackensen_class": 28.24, - "germ_battleship_baden": 60.0, + "a6m6c": 27.96, + "a_7k": 91.9, + "b7a2_homare_23": 24.69, + "beaufighter_mk1_40mm": 15.0, + "bf-109e-7": 1174.99, + "bf-109f-4_hungary": 30.0, + "bf-110c-6": 24.0, + "bi": 176.5, + "boston_mk_1": 57.84, + "buccaneer_s1": 40.0, + "bv-155b-1": 37.49, + "cn_plz_83_130": 38.99, + "cn_qn506": 59.95, + "cn_t_80ud_478be": 27.5, + "cn_type_64": 62.0, + "cn_wz_141": 28.99, + "cr_32_bis": 57.86, + "db_7": 9.29, + "douglas_a_1h": 225.0, + "f-4f": 65.75, + "f-5a": 64.97, + "f-5ag_norway": 45.0, + "f11f_1_late": 45.0, + "f2g-1": 48.99, + "f4d_1": 44.49, + "f4f-4_martlet_mk4": 15.95, + "f4u-6_au-1": 169.89, + "f7f3": 50.0, + "f_100f_china": 55.0, + "f_106a_1972": 48.97, + "f_14a_iriaf": 119.88, + "f_16a_block_5_netherlands": 34.97, + "f_16xl": 45.0, + "f_6c_pakistan": 19.0, + "fj_4b_agm_12b": 41.29, + "fr_amd_35_sa35": 5.85, + "fr_amx_50_1950": 81.87, + "fr_amx_50_surblinde": 1499.77, + "fr_amx_elc_901": 26.73, + "fr_arras_class_amiens": 6.7, + "fr_battleship_strasbourg": 59.99, + "fr_m46_patton": 27.0, + "fr_panhard_ebr_1963": 93.84, + "fr_trident_class_glaive_p671": 13.0, + "fw-189a-1": 12.84, + "fw-190c": 34.47, + "germ_battlecruiser_mackensen_class": 36.0, + "germ_battleship_baden": 62.05, "germ_battleship_ostfriesland": 39.66, - "germ_boxer_3105": 41.0, - "germ_destroyer_class1924_jaguar1941": 16.4, - "germ_frigate_koln_lubeck": 87.46, - "germ_kv_1B_finland": 69.0, - "germ_leopard_2_pt14": 139.8, - "germ_leopard_2av": 46.97, - "germ_leopard_c2_mexas": 74.5, - "germ_panzerjager_tiger_P_elefant": 148.0, - "germ_pzkpfw_VI_ausf_h1_tiger_animal_version": 87.7, - "germ_pzkpfw_VI_tiger_P": 58.99, - "germ_sdkfz_234_1": 41.96, - "germ_sdkfz_234_3": 25.52, - "germ_sdkfz_234_4": 178.95, - "germ_sdkfz_251_10": 27.87, - "germ_spz_12_3": 41.9, - "germ_th_400": 21.6, - "germ_th_800_bismark": 64.0, - "germ_type143_bussard": 35.99, - "germ_vilkas": 35.52, - "germ_vsw_flak_41": 129.0, - "germ_vt_1_2": 346.5, - "h-75a-2_finland": 13.97, - "h_34": 75.0, - "he-177a-3": 39.99, - "he51b_2w": 11.39, + "germ_boxer_3105": 48.0, + "germ_destroyer_class1924_jaguar1941": 29.0, + "germ_frigate_koln_lubeck": 96.0, + "germ_kv_1B_finland": 69.99, + "germ_leopard_2_pt14": 147.99, + "germ_leopard_2av": 57.99, + "germ_leopard_c2_mexas": 89.37, + "germ_panzerjager_tiger_P_elefant": 174.9, + "germ_pzkpfw_VI_ausf_h1_tiger_animal_version": 90.0, + "germ_pzkpfw_VI_tiger_P": 64.43, + "germ_sdkfz_234_1": 38.99, + "germ_sdkfz_234_3": 29.9, + "germ_sdkfz_234_4": 192.97, + "germ_sdkfz_251_10": 26.98, + "germ_spz_12_3": 49.99, + "germ_th_400": 23.98, + "germ_th_800_bismark": 61.0, + "germ_type143_bussard": 49.0, + "germ_vilkas": 40.0, + "germ_vsw_flak_41": 155.0, + "germ_vt_1_2": 348.95, + "h-75a-2_finland": 14.16, + "h_34": 76.95, + "he-177a-3": 46.5, + "he51b_2w": 11.59, "he_112b_2": 198.99, - "i_180": 31.8, - "i_29": 15.55, - "iar_93b": 39.9, - "il_2_m82": 22.87, - "il_8_1944": 14.0, - "il_sholef": 22.99, - "it_albatros_class_f544": 19.81, - "it_aubl_74_60_70m": 45.0, - "it_breda_52_autocannone": 31.98, - "it_cruiser_cadorna_class_cadorna": 17.15, - "it_fiat_6614_firos": 26.9, - "itp_m1": 26.4, - "j6k1": 72.0, - "jaguar_e": 54.0, - "jaguar_is": 28.57, - "jp_armoredcruiser_kurama": 36.85, - "jp_battlecruiser_haruna": 31.99, - "jp_battlecruiser_kirishima": 31.8, - "jp_battleship_tosa": 27.83, - "jp_destroyer_suzutsuki": 4.4, - "jp_destroyer_yugure": 17.5, - "jp_destroyer_yuudachi": 16.87, - "jp_escort_hiburi_class_shisaka": 14.99, - "jp_pzkpfw_VI_ausf_e_tiger": 86.0, - "ju-388j": 74.96, - "kfir_c10_colombia": 32.88, - "kfir_c2": 56.0, - "ki_21_1hei": 29.7, - "ki_48_2_otsu": 6.87, - "ki_94_2": 26.0, - "la_174": 48.0, - "lagg-3-34": 500.0, - "lagg-i-301": 24.0, - "marut_mk1": 17.5, - "mb_152c1": 21.77, - "mbr-2": 30.98, - "me-262a-2a": 64.4, - "meteor_frmk9_iaf": 15.99, - "mig-21_pfm": 54.99, - "mig_23mf_germany": 41.99, - "mig_25pd": 38.0, + "i_180": 36.98, + "i_29": 17.93, + "iar_93b": 39.5, + "il_2_m82": 20.0, + "il_8_1944": 15.1, + "il_sholef": 24.97, + "it_albatros_class_f544": 23.0, + "it_aubl_74_60_70m": 47.64, + "it_breda_52_autocannone": 32.59, + "it_cruiser_cadorna_class_cadorna": 17.0, + "it_fiat_6614_firos": 28.0, + "itp_m1": 27.0, + "j6k1": 69.78, + "jaguar_e": 67.88, + "jaguar_is": 29.42, + "jp_armoredcruiser_kurama": 44.68, + "jp_battlecruiser_haruna": 36.79, + "jp_battlecruiser_kirishima": 32.86, + "jp_battleship_tosa": 31.98, + "jp_destroyer_suzutsuki": 4.98, + "jp_destroyer_yugure": 18.77, + "jp_destroyer_yuudachi": 16.39, + "jp_escort_hiburi_class_shisaka": 15.92, + "jp_pzkpfw_VI_ausf_e_tiger": 86.99, + "ju-388j": 76.99, + "kfir_c10_colombia": 32.0, + "kfir_c2": 65.0, + "ki_21_1hei": 25.54, + "ki_48_2_otsu": 7.39, + "ki_94_2": 29.5, + "la_174": 47.99, + "lagg-3-34": 888.0, + "lagg-i-301": 18.2, + "marut_mk1": 19.38, + "mb_152c1": 20.78, + "mbr-2": 29.99, + "me-262a-2a": 62.0, + "meteor_frmk9_iaf": 17.35, + "mig-21_pfm": 58.84, + "mig_23mf_germany": 49.89, + "mig_25pd": 36.0, "mirage_2000c_s4": 42.0, - "mosquito_j30_sweden": 5.89, - "p-26a_34": 130.0, - "p-38j_marge": 33.29, - "p-39q_25_france": 30.0, - "p-40c": 29.8, - "p-43a-1": 14.0, - "p-51b_7_sweden": 35.49, - "p-51c-10_france": 18.99, - "p-51c-11-nt_china": 9.83, - "p-59a": 50.0, - "p-63c-5_kingcobra_animal_version": 71.76, - "pbm_5a": 11.5, - "po-2m": 18.75, - "pv_2d": 43.7, - "re_2005_vdm": 19.96, - "sb2c_5_thailand": 12.94, + "mosquito_j30_sweden": 7.1, + "p-26a_34": 99.0, + "p-38j_marge": 32.97, + "p-39q_25_france": 31.0, + "p-40c": 27.07, + "p-43a-1": 14.99, + "p-51b_7_sweden": 38.79, + "p-51c-10_france": 18.0, + "p-51c-11-nt_china": 10.98, + "p-59a": 60.0, + "p-63c-5_kingcobra_animal_version": 73.0, + "pbm_5a": 12.0, + "po-2m": 18.9, + "pv_2d": 30.0, + "re_2005_vdm": 21.0, + "sb2c_5_thailand": 12.87, "sb_25j_netherlands": 7.06, - "spitfire_lf_mk9c_cw_greece": 10.4, - "spitfire_mk5b_float": 7.13, - "spitfire_mk9c_4cannons": 57.0, - "strikemaster_mk88": 68.99, - "su-8": 84.64, - "su_25_558arz": 51.8, - "sw_kungstiger": 69.0, - "sw_patria_amv_ctcv_105": 38.5, - "sw_patria_bmp_3": 12.0, - "sw_pbil_m40": 20.06, - "tis_ma": 93.99, - "tornado_ids_de_mfg": 40.99, - "uk_a_13_mk2_1939": 18.49, - "uk_a_22f_mk_7_churchill_crocodile": 68.4, - "uk_a_33_excelsior": 106.98, - "uk_a_34_comet_iron_duke": 35.99, - "uk_alecto_mk_1": 18.87, - "uk_armored_car_aec_mk_2": 34.06, - "uk_battlecruiser_renown": 33.87, - "uk_battleship_q_elizabet_class_barham": 57.99, - "uk_boxer_crv_block2": 17.99, - "uk_centurion_mk_2": 129.99, - "uk_centurion_mk_5_raac": 69.99, - "uk_churchill_avre": 29.65, - "uk_cruiser_tiger": 44.97, - "uk_destroyer_g_garland": 5.29, - "uk_destroyer_tribal_mohawk": 30.49, - "uk_frigate_river": 19.98, - "uk_fv107_scimitar_mk2": 9.18, - "uk_matilda_hedgehog": 15.5, - "uk_mk1_grant": 14.0, - "uk_ram_90mm_aa": 41.8, - "uk_sgb_309": 21.77, - "uk_shir_2": 34.35, - "us_ags_teledyne": 98.0, - "us_battleship_mississippi": 50.0, - "us_battleship_oklahoma": 24.84, - "us_ccvl": 94.0, - "us_cruiser_baltimore_class": 32.0, - "us_cruiser_des_moines_class_newport_news": 30.78, - "us_destroyer_porter_1944": 27.81, - "us_destroyer_somers_davis": 42.0, - "us_efv_p1": 15.85, - "us_losat_ccv": 68.0, - "us_lvt_4_zis_2": 29.9, - "us_m551_76": 99.78, - "us_m60a3_slep": 182.99, - "us_m6a2e1": 287.99, - "us_m8_greyhound": 23.47, - "us_m8a1": 22.59, - "us_merkava_mk_1": 115.88, - "us_merkava_mk_2b_late": 68.96, - "us_merkava_mk_3d": 98.79, - "us_pt811": 35.65, - "us_t18_e2": 77.99, - "us_t30": 97.09, - "us_t86": 11.77, - "us_xm_8": 109.99, - "ussr_a_12_mk_2_matilda_2A_F96": 33.99, - "ussr_ba_11": 32.49, - "ussr_battleship_oktyabrskaya_revolutsiya": 16.0, - "ussr_bm_13n": 79.98, - "ussr_bmd_4": 42.0, - "ussr_bt_7a_f32": 32.0, - "ussr_cruiser_maxim_gorky": 20.0, - "ussr_cruiser_omaha_class_murmansk": 12.49, - "ussr_cruiser_shcherbakov": 37.77, - "ussr_destroyer_leningrad": 235.31, - "ussr_is_7": 1999.99, - "ussr_kv_220": 67.5, - "ussr_kv_2_1940": 62.38, - "ussr_kv_8": 10.67, - "ussr_m3c": 102.86, - "ussr_mbk_161_1943": 15.0, - "ussr_mpk_122bis": 22.97, - "ussr_mpk_201k": 13.37, - "ussr_object_248": 81.4, - "ussr_object_279": 1450.0, - "ussr_object_292": 177.0, - "ussr_pr_205pe_k225": 37.85, - "ussr_pt_76_57": 744.98, - "ussr_pzkpfw_V": 50.0, - "ussr_rbt_5": 64.99, - "ussr_su_76d": 25.19, - "ussr_su_76m_5st_kav_corps": 16.35, - "ussr_su_85a": 37.83, - "ussr_t_10a": 129.99, - "ussr_t_26E": 67.99, - "ussr_t_34E": 33.69, - "ussr_t_34_85_zis_53_v80": 19.39, - "ussr_t_44_po": 25.7, - "ussr_t_72b3_arena": 38.5, - "ussr_t_72m2_moderna": 535.0, - "ussr_t_80um2": 69.0, - "ussr_type_62": 172.99, - "whirlwind_p9": 36.97, - "xf5f": 27.2, - "yak-3_eremin": 35.41, - "yak-9t_france": 41.99 + "spitfire_lf_mk9c_cw_greece": 9.9, + "spitfire_mk5b_float": 8.29, + "spitfire_mk9c_4cannons": 54.9, + "strikemaster_mk88": 67.99, + "su-8": 83.98, + "su_25_558arz": 56.98, + "sw_kungstiger": 72.2, + "sw_patria_amv_ctcv_105": 40.0, + "sw_patria_bmp_3": 13.14, + "sw_pbil_m40": 22.44, + "tis_ma": 95.89, + "tornado_ids_de_mfg": 49.89, + "uk_a_13_mk2_1939": 18.0, + "uk_a_22f_mk_7_churchill_crocodile": 79.99, + "uk_a_33_excelsior": 118.0, + "uk_a_34_comet_iron_duke": 37.5, + "uk_alecto_mk_1": 15.59, + "uk_armored_car_aec_mk_2": 31.85, + "uk_battlecruiser_renown": 35.3, + "uk_battleship_q_elizabet_class_barham": 59.98, + "uk_boxer_crv_block2": 19.88, + "uk_centurion_mk_2": 135.91, + "uk_centurion_mk_5_raac": 79.37, + "uk_churchill_avre": 34.97, + "uk_cruiser_tiger": 42.9, + "uk_destroyer_g_garland": 7.94, + "uk_destroyer_tribal_mohawk": 38.76, + "uk_frigate_river": 22.3, + "uk_fv107_scimitar_mk2": 11.2, + "uk_matilda_hedgehog": 21.0, + "uk_mk1_grant": 17.9, + "uk_ram_90mm_aa": 39.79, + "uk_sgb_309": 22.17, + "uk_shir_2": 38.29, + "us_ags_teledyne": 107.9, + "us_battleship_mississippi": 56.44, + "us_battleship_oklahoma": 29.19, + "us_ccvl": 94.98, + "us_cruiser_baltimore_class": 30.9, + "us_cruiser_des_moines_class_newport_news": 35.0, + "us_destroyer_porter_1944": 28.96, + "us_destroyer_somers_davis": 48.67, + "us_efv_p1": 17.96, + "us_losat_ccv": 79.9, + "us_lvt_4_zis_2": 27.56, + "us_m551_76": 103.65, + "us_m60a3_slep": 165.0, + "us_m6a2e1": 292.97, + "us_m8_greyhound": 24.6, + "us_m8a1": 27.76, + "us_merkava_mk_1": 119.0, + "us_merkava_mk_2b_late": 71.5, + "us_merkava_mk_3d": 104.5, + "us_pt811": 40.0, + "us_t18_e2": 77.78, + "us_t30": 101.0, + "us_t86": 11.97, + "us_xm_8": 122.5, + "ussr_a_12_mk_2_matilda_2A_F96": 33.19, + "ussr_ba_11": 33.87, + "ussr_battleship_oktyabrskaya_revolutsiya": 18.39, + "ussr_bm_13n": 77.0, + "ussr_bmd_4": 49.99, + "ussr_bt_7a_f32": 34.89, + "ussr_cruiser_maxim_gorky": 19.99, + "ussr_cruiser_omaha_class_murmansk": 13.28, + "ussr_cruiser_shcherbakov": 31.87, + "ussr_destroyer_leningrad": 276.0, + "ussr_is_7": 2000.0, + "ussr_kv_220": 61.87, + "ussr_kv_2_1940": 65.47, + "ussr_kv_8": 10.0, + "ussr_m3c": 102.92, + "ussr_mbk_161_1943": 15.37, + "ussr_mpk_122bis": 22.15, + "ussr_mpk_201k": 14.12, + "ussr_object_248": 89.0, + "ussr_object_279": 1649.96, + "ussr_object_292": 188.49, + "ussr_pr_205pe_k225": 41.0, + "ussr_pt_76_57": 749.77, + "ussr_pzkpfw_V": 48.5, + "ussr_rbt_5": 59.99, + "ussr_su_76d": 27.87, + "ussr_su_76m_5st_kav_corps": 17.66, + "ussr_su_85a": 36.9, + "ussr_t_10a": 143.0, + "ussr_t_26E": 67.66, + "ussr_t_34E": 39.0, + "ussr_t_34_85_zis_53_v80": 20.9, + "ussr_t_44_po": 27.96, + "ussr_t_72b3_arena": 40.0, + "ussr_t_72m2_moderna": 549.88, + "ussr_t_80um2": 69.97, + "ussr_type_62": 210.0, + "whirlwind_p9": 39.94, + "xf5f": 27.0, + "yak-3_eremin": 35.0, + "yak-9t_france": 37.8 }, // 上表没有的载具(例如游戏更新新加的)按等级定价:取第一个 upToRank 不小于载具等级的档位。离线版自定。 "byRank": [ @@ -254,6 +257,170 @@ // 外观券和解锁券:每类一个价格(GJN)和品质。离线版自定。 "cosmeticCoupons": { + // 按资源名(贴花、挂件、头像解锁名)单独定价(GJN),来源同上快照;没有的按下面各类默认价。 + "byResource": { + "akms_ag": 0.55, + "aks_74u": 0.88, + "arachis_bull_decal": 0.71, + "atrl_light_west_launcher": 6.3, + "bear_head": 0.56, + "bengal_light_decor": 8.99, + "boar_head": 0.62, + "bsa_bicycle_fold": 4.98, + "cannibal_axe": 1.94, + "cardicon_33": 3.2, + "cardicon_bundeswehr_infantryman": 6.84, + "cardicon_centurion": 15.0, + "cardicon_ch_special_forces": 3.29, + "cardicon_combat_exoskeleton": 9.94, + "cardicon_desert_01_fix": 2.8, + "cardicon_dogfighting_pilot": 31.9, + "cardicon_experienced_shooter": 2.56, + "cardicon_football_marathon_2024": 3.23, + "cardicon_fr_legioner": 1.0, + "cardicon_fr_sapper": 4.85, + "cardicon_gasmask": 24.0, + "cardicon_germ_tanker_gw": 13.0, + "cardicon_hussar_fix": 48.5, + "cardicon_ind_pilot_mk": 0.68, + "cardicon_jalil_zandi": 3.17, + "cardicon_legioner": 4.38, + "cardicon_loot_carrier_driver": 4.2, + "cardicon_motolady": 3.2, + "cardicon_newyear_23": 1.26, + "cardicon_option": 5.0, + "cardicon_paratrooper": 5.36, + "cardicon_poddubny": 14.54, + "cardicon_sw_famale": 5.75, + "cardicon_tanker_sw_modern_02": 4.5, + "cardicon_test_driver": 0.36, + "cardicon_toon_bear": 6.56, + "cardicon_toon_fox": 12.5, + "cardicon_winter_marathon_2024": 7.94, + "cardicon_winter_marathon_2025": 3.1, + "cardicon_woman_scout": 1.23, + "christmas_gnome": 2.47, + "christmas_gnome_girl": 0.47, + "christmas_sock_decor": 0.99, + "christmas_tree_decor": 2.5, + "christmas_wreath": 2.49, + "cn_type_63_ar": 0.37, + "colt_browning_m1895": 2.5, + "crock_head": 1.28, + "cuckoo_watch": 1.1, + "death_valley_sign": 2.5, + "decor_black_quadrocopter": 9.42, + "decor_bmx": 1.17, + "decor_christmas_board": 4.0, + "decor_christmas_deer": 0.89, + "decor_demolition_bomb": 0.8, + "decor_hut_on_chicken_legs": 0.55, + "decor_metall_flame_md": 0.61, + "decor_nutcraker": 0.39, + "decor_snowbike_200": 4.0, + "decor_snowboard": 1.4, + "decor_snowshoes": 1.3, + "decor_wheel_spike_md": 1.94, + "downhill_skating_decal": 0.1, + "explore_more_decal": 0.1, + "female_warrior_1": 0.21, + "fire_decal_1": 0.5, + "fire_decal_2": 0.67, + "fire_decal_3": 0.6, + "fire_decal_4": 0.45, + "fire_decal_5": 0.46, + "fire_decal_6": 0.5, + "fire_decal_7": 0.64, + "fire_decal_8": 0.87, + "fire_decal_9": 23.53, + "ger_ammunition_wwii_512": 4.71, + "good_catch_decal": 0.12, + "hydra_badge": 0.13, + "ice_climber_backpack": 1.0, + "item_danger_zone_decal": 0.21, + "item_eagles_shadow_decal": 0.18, + "item_germany_airforce_emblem": 0.29, + "item_germany_tank_emblem": 0.26, + "item_northern_wind_decal": 0.21, + "item_ny_marathon_decal_japan_200_2": 0.83, + "item_project_x_decal": 0.21, + "item_sky_odyssey_decal": 0.11, + "item_supersonic_decal": 0.35, + "item_ussr_airforce_emblem": 0.44, + "item_ussr_tank_emblem": 0.51, + "item_viking_fury_decal": 0.72, + "items_akms": 1.0, + "items_famas_f1": 0.5, + "items_foil_hat": 2.81, + "items_g36k": 0.64, + "items_helm_rome_gold": 500.0, + "items_helmet_hat": 2.77, + "items_jester_hat": 1.7, + "items_l85a1": 0.65, + "items_m4_carbine": 1.16, + "items_magic_hat": 17.5, + "items_pirate_hat": 0.97, + "items_rabbit_hat": 1.8, + "items_sombrero_hat": 1.17, + "items_type_89f": 0.3, + "items_uncle_sams_hat": 3.42, + "jaws1_decal": 1.49, + "jaws2_decal": 2.2, + "jaws3_decal": 1.42, + "jaws4_decal": 0.87, + "jaws5_decal": 2.5, + "jaws_shark_01": 0.9, + "jaws_shark_02": 0.59, + "jaws_shark_03": 0.65, + "jaws_shark_04": 0.68, + "kitewing_decal": 0.1, + "l85a1_ag": 0.25, + "m249_200": 0.61, + "m4_late": 0.79, + "mg3_kws_200": 0.54, + "mg_mp40": 1.02, + "mg_thompson": 0.49, + "minotaur_badge": 0.12, + "ny_marathon_decal_china": 0.31, + "ny_marathon_decal_italy": 0.39, + "ny_pinup_decal_germany": 0.45, + "piat": 2.36, + "powder_day_decal": 0.1, + "rpk_200": 0.63, + "sailing_catamaran": 0.24, + "secret_santa_decal": 0.12, + "ski": 2.56, + "skier_decal": 0.1, + "slasher_hatchet": 0.56, + "slasher_mask": 1.38, + "sleigh": 9.99, + "snake_head": 0.73, + "snowkiting_decal": 0.1, + "snowman_decor": 1.39, + "snowmobile_nkl16": 0.71, + "summer_2023_paraglider_decal": 0.1, + "summer_2023_windsurfing_decal": 0.1, + "summer_2023_wingsuit_decal": 0.1, + "sweden_ak5d": 0.75, + "tiger_head": 0.79, + "times_to_travel_decal": 0.1, + "travel_gramophone": 4.5, + "type_88_200": 0.19, + "us_browning_m1918": 0.9, + "us_browning_m1919a6": 1.9, + "usa_ciras_land_512": 1.16, + "ussr_ammunition_wwii_512": 2.3, + "ussr_body_armor_6b43": 2.25, + "ussr_marines": 0.4, + "ussr_text_silny": 1.98, + "ussr_text_smely": 1.77, + "vespiary": 0.76, + "waffenhalter": 9.7, + "we_can_climb_it_decal": 0.1, + "willys_mb_dec": 0.45, + "wolf_head": 0.93, + "ww_chinese_farm": 0.55 + }, "skin": { "gjn": 5, "quality": 2 }, "decal": { "gjn": 3, "quality": 2 }, "attachable": { "gjn": 8, "quality": 3 },