Changes

871 bytes removed ,  19:30, 20 March 2017
Merciless editing, moved the technical details to bottom of page
Line 7: Line 7:  
|closed    = Monday - Thursday, Saturday
 
|closed    = Monday - Thursday, Saturday
 
|address  = [[Cindersap Forest]]
 
|address  = [[Cindersap Forest]]
|occupants = [[File:Traveling Cart Icon.png]] Traveling Merchant
+
|occupants = [[File:Traveling Cart Icon.png]] Travelling Merchant
 
}}
 
}}
The '''{{PAGENAME}}''' is a [[:Category:Stores|shop]] consisting of a wagon, pulled by a pig wearing a fez and spectacles. If you try to interact with the pig, it just oinks at you. It appears south of [[The Farm]], in [[Cindersap Forest]], on Fridays and Sundays.  
+
The '''{{PAGENAME}}''' is a [[:Category:Stores|shop]] that appears south of [[The Farm]], in [[Cindersap Forest]], on Fridays and Sundays.  The cart is pulled by a pig wearing a fez and spectacles. If you interact with the pig, it oinks at you.
   −
The merchant sells all sorts of random items in limited quantities. Items are sometimes found for sale outside their normal seasons, which can be helpful for completing [[bundles]].
+
The merchant sells a selection of random items in limited quantities (1 or 5 of each). Items are sometimes found for sale outside their normal seasons, which can be helpful for completing [[bundles]].
   −
Traveling Cart prices may vary from visit to visit, and it is even possible for the same item to be listed multiple times at different prices. Prices are also usually quite inflated, but you can get lucky. Most furniture items sold at [[Carpenter's Shop|Robin's Shop]] have a chance to be sold at the cart, with prices in the range of {{tprice|furniture}}, sometimes more and sometimes less than regular price. Rarely, you can find gold ore for as little as {{price|100}}, whereas its normal price at the [[Blacksmith]] is {{price|400}}. Since you can usually only buy 1 though, any savings may prove to be less significant than just the item's availability. [[Trees|Saplings]] are often offered for less than the [[Pierre's General Store]] price, a much higher impact. Even by paying {{price|2500}} for a first [[Coffee Bean]] (a two-season crop), if it is acquired early enough, continually planting its produce to increase the number of plants can yield bountiful profits by the end (even the middle) of summer, and beans for planting next year: a fine longer-term investment.
+
Travelling Cart prices may vary from visit to visit, and it is possible for the same item to be listed multiple times at different prices in the same visit. Prices are usually quite inflated, but you may find an item sold for less than its normal price.
   −
==Mechanics==
+
The Merchant's stock consists of 10 items plus one piece of furniture. There may be an additional "special stock" item for sale as well.
The merchant's 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>).
  −
 
  −
The ''[[#Stock|standard stock]]'' consists of 10 item slots and 1 furniture slot.
  −
 
  −
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 as long as it is not "valid".
  −
 
  −
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.
  −
 
  −
In addition to the standard stock, the ''[[#Special Stock|special stock]]'' slots may contain items that are selected with different conditions.
      
==Special Stock==
 
==Special Stock==
{| class="wikitable"
+
{| class="wikitable" id="roundedborder"
 
! colspan=2 | Item !! Unit price !! Season !! Notes
 
! colspan=2 | Item !! Unit price !! Season !! Notes
 
|-
 
|-
Line 46: Line 27:  
| style="text-align:center;" | [[File:Coffee Bean.png]] || [[Coffee Bean]] || {{price|2500}} || All || 25% chance to appear.
 
| style="text-align:center;" | [[File:Coffee Bean.png]] || [[Coffee Bean]] || {{price|2500}} || All || 25% chance to appear.
 
|}
 
|}
{{clear}}
     −
==Stock==
+
==Standard Stock==
 
{| class="wikitable" style="text-align:center; width:75%; min-width:500px;"
 
{| class="wikitable" style="text-align:center; width:75%; min-width:500px;"
 
!
 
!
Line 361: Line 341:  
|-
 
|-
 
!
 
!
===<span style="color:white;">Crafts, loots & others</span>===
+
===<span style="color:white;">Crafting, Loot, &amp; Misc.</span>===
 
|-
 
|-
 
|
 
|
Line 582: Line 562:  
{{Item block|Tree of the Winter Star|69px|furniture}}
 
{{Item block|Tree of the Winter Star|69px|furniture}}
 
|}
 
|}
 +
 +
==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,350

edits