Linha 614: |
Linha 614: |
| |- | | |- |
| |} | | |} |
− |
| |
− | ==Mecânica==
| |
− | O estoque padrão do mercador é determinado por um número aleatório alimentado com o ID do jogo (XPath: <code>/SaveGame/uniqueIDForThisGame</code>) e a quantidade de dias jogados (XPath: <code>/SaveGame/stats/DaysPlayed</code>).
| |
− |
| |
− | Para cada espaço de item, um número inteiro aleatório (''num'') entre [2, 790) é escolhido. ''num'' é então incrementado e encapsulado entre [0,790) até que exista um item que satisfaça todas as condições abaixo:
| |
− | * ID é igual a ''num'';
| |
− | * não está na lista negra; (veja a [[:en:Talk:Traveling_Cart|Página de Conversação em Inglês]] com a lista de itens na "lista negra")
| |
− | * tem uma categoria;
| |
− | * seu preço é maior do que 0;
| |
− | * não é chamado de "Weeds";
| |
− | * não é do tipo "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.
| |
| | | |
| ==Histórico== | | ==Histórico== |