// 经典战利品箱(功能清单 H 节"银狮补给箱""奖池载具直购";implementation notes 第 7、8 节)。 // 原版的箱子由服务器下发,客户端数据里没有;客户端按奖品权重自己算出并公示每项概率(calcTrophiesDropChance)。 // // 每项奖品写一种: // { "silverLions": 数量, "weight": 权重 } // { "goldenEagles": 数量, "weight": 权重 } // { "item": "道具名", "count": 张数, "weight": 权重 } 道具名见 char.vromfs.bin config/items.blk // { "itemsOfType": "道具类型", "pick": 取几种, "count": 每种张数, ... } 类型:rateBooster、wager、universalSpare 等;只取永久道具,按名字排序后取前几种 // { "eventVehicles": { "minRank": 1, "maxRank": 3, "pick": 4 }, ... } 活动载具(不在交易所卖的),按等级、国家、名字排序后各国轮流取 // 一组奖品(itemsOfType、eventVehicles)写 "weightEach"(每项的权重)或 "weightTotal"(整组的权重,平分给每项)。 // 已拥有的载具不会被抽到。 { "supplyTrophies": [ { // 银狮补给箱。价格和奖品权重来自原作者项目 data/offline-crate-rules.json(silverPerDraw、rawWeights, // 权重相加为 100,即每抽的百分比)。原作者的"50 GJN"奖品(权重 0.01)在经典战利品箱里没有对应的奖品类型,没有放进来。 "id": "wto_silver_supply_trophy", "iconStyle": "small_wooden_box", "silverLions": 60000, "goldenEagles": 0, "prizes": [ { "silverLions": 10000, "weight": 28.34 }, { "silverLions": 50000, "weight": 22 }, { "silverLions": 100000, "weight": 11 }, { "silverLions": 500000, "weight": 0.1 }, { "silverLions": 1000000, "weight": 0.05 }, { "goldenEagles": 100, "weight": 1 }, { "goldenEagles": 500, "weight": 0.4 }, { "goldenEagles": 1000, "weight": 0.1 }, { "item": "item_universal_spare", "count": 1, "weight": 22 }, { "itemsOfType": "wager", "pick": 18, "count": 1, "weightTotal": 12 }, { "eventVehicles": { "minRank": 1, "maxRank": 8, "pick": 12 }, "weightTotal": 3 } ] }, { // 老兵补给箱:原作者没有对应的箱子,离线版自定。 "id": "wto_veteran_supply_trophy", "iconStyle": "big_chest", "silverLions": 150000, "goldenEagles": 0, "prizes": [ { "eventVehicles": { "minRank": 4, "maxRank": 8, "pick": 6 }, "weightEach": 4 }, { "goldenEagles": 150, "weight": 10 }, { "silverLions": 500000, "weight": 12 }, { "silverLions": 120000, "weight": 28 }, { "item": "item_universal_spare", "count": 5, "weight": 30 }, { "itemsOfType": "rateBooster", "pick": 4, "count": 1, "weightEach": 22 } ] } ], // 奖池载具直购:每辆活动载具一个只能买一次的箱子,用金鹰买。价格来自原作者 offline-crate-rules.json 的 directVehiclePriceGE。 "directVehicles": { "goldenEagles": 20000 } }