This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

更改

跳转至: 导航搜索

旅行货车

删除94字节, 2018年4月3日 (二) 10:53
无编辑摘要
货车出售的商品由游戏ID(XPath: <code>/SaveGame/uniqueIDForThisGame</code>)和游戏的时间决定(XPath: <code>/SaveGame/stats/DaysPlayed</code>).
For each item slot每一个物品位置会被分配到一个[2, a random integer 790) 区间的随机整数(''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:区间,直到有满足下面所有条件的物品存在:* ID is equal to 等于''num'';* not blacklisted; 不在黑名单上;(see the [[Talk:Travelling_Cart|Talk]] page for a list of "blacklisted" items页面中黑名单物品列表)* has a category;属于一个分类;* price greater than 0;价格大于0;* not named 名称不是 "Weeds杂草";* type is not 类型不是 "Quest任务", "Minerals矿石", or 或者 "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基础价格的随机整数中的较大者。每件商品有90% chance to be 1, and 10的几率为1件,10% chance to be 5.的几率为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对于家具商品的槽位,一个区间为[0, a random integer 1613)的随机整数(''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 等于ID,并且不在黑名单上的家具为止。物品单价是一个区间为[1,11)*250.的随机整数。
==历史==
12
个编辑

导航菜单