第583行: |
第583行: |
| 货车出售的商品由游戏ID(XPath: <code>/SaveGame/uniqueIDForThisGame</code>)和游戏的时间决定(XPath: <code>/SaveGame/stats/DaysPlayed</code>). | | 货车出售的商品由游戏ID(XPath: <code>/SaveGame/uniqueIDForThisGame</code>)和游戏的时间决定(XPath: <code>/SaveGame/stats/DaysPlayed</code>). |
| | | |
− | For each item slot, a random integer (''num'') in the range [2,790) is chosen. ''num'' is then incremented and wrapped to the range [0,790) until there exists an item that satisfies all of the following conditions:
| + | 每一个物品位置会被分配到一个[2,790) 区间的随机整数(''num'') 。''num'' 随后被放大到[0,790) 区间,直到有满足下面所有条件的物品存在: |
− | * ID is equal to ''num''; | + | * ID 等于''num'' ; |
− | * not blacklisted; (see the [[Talk:Travelling_Cart|Talk]] page for a list of "blacklisted" items) | + | * 不在黑名单上;( 见[[Talk:Travelling_Cart|Talk]] 页面中黑名单物品列表) |
− | * has a category; | + | * 属于一个分类; |
− | * price greater than 0; | + | * 价格大于0; |
− | * not named "Weeds"; | + | * 名称不是 " 杂草" ; |
− | * type is not "Quest", "Minerals", or "Arch". | + | * 类型不是 " 任务", " 矿石", 或者 "Arch" 。 |
| | | |
− | The unit price is determined by the larger of 2 random integers in the ranges of [1,11)*100 and [3,6)*base_price. The stack size has a 90% chance to be 1, and 10% chance to be 5.
| + | 商品单价是两个区间分别为[1,11)*100 and [3,6)* 基础价格的随机整数中的较大者。每件商品有90% 的几率为1件,10% 的几率为5件。 |
| | | |
− | Note that some items have a higher chance to appear in the standard stock, because after the random integer is chosen, it is incremented until it is equal to a valid object number.
| + | 有一些物品会有较高的几率出现在普通商品中,因为生成的随机整数会被不断放大,直到等于一个有效的对象号码。 |
| | | |
− | For the furniture slot, a random integer (''num'') in the range [0,1613) is chosen until it there exists a furniture that has ''num'' as its ID and is not blacklisted. The unit price is determined by a random integer in the range of [1,11)*250.
| + | 对于家具商品的槽位,一个区间为[0,1613)的随机整数(''num'') 会被不断生成,直到存在一件''num'' 等于ID,并且不在黑名单上的家具为止。物品单价是一个区间为[1,11)*250 的随机整数。 |
| | | |
| ==历史== | | ==历史== |