差分

ナビゲーションに移動 検索に移動
1,281 バイト除去 、 2018年5月26日 (土) 19:51
Mechanics was removed from EN page.
610行目: 610行目:  
|-
 
|-
 
|}
 
|}
  −
==Mechanics==
  −
The merchant's standard stock is determined by a random number seeded with the game ID (XPath: <code>/SaveGame/uniqueIDForThisGame</code>) and the days played (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:
  −
* 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;
  −
* 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% chance to be 1, and 10% chance to be 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.
      
==History==
 
==History==
105,522

回編集

案内メニュー