Village merchant: Difference between revisions

446 bytes added ,  20:11, 25 November 2020
no edit summary
(Created page with "{{qud look|title=&Wvillage merchant|text=Come. Browse my wares, friend.|bottomtext=none}} thumb|700px|A [[horned chameleon village merchant]] A '...")
 
No edit summary
Line 1: Line 1:
{{qud look|title=&Wvillage merchant|text=Come. Browse my wares, friend.|bottomtext=none}}
__NOTOC__{{qud look|title=&Wvillage merchant|text=Come. Browse my wares, friend.|bottomtext=none}}
[[File:Village_merchant.png|thumb|700px|A [[horned chameleon]] village merchant]]
[[File:Village_merchant.png|thumb|700px|A [[horned chameleon]] village merchant]]
A '''{{name}}''' is a somewhat rare trader that can appear in procedurally-generated villages.
A '''{{name}}''' is a somewhat rare trader that can appear in procedurally-generated villages.
Line 5: Line 5:
== Overview ==
== Overview ==
Broadly speaking, villages have the following merchant-related generation features:
Broadly speaking, villages have the following merchant-related generation features:
* The player's starting village has a 100% chance to include a {{favilink|dromad trader}}. It will never include a '''village merchant'''
* The player's starting village has a 100% chance to include a {{favilink|dromad trader}}. It will never include a '''village merchant'''{{Code Reference|namespace=XRL.World.ZoneBuilders|class=Village|method=BuildZone}}{{Code Reference|name=GenerateMerchant|namespace=XRL.World.ZoneBuilders|class=Village|method=generateMerchant}}
* All other procedurally-generated villages have a 30% chance to include a trader of any kind. If a village does generate with a trader:
* All other procedurally-generated villages have a 30% chance to include a trader of any kind. If a village does generate with a trader:<ref name="GenerateMerchant" />
** There is an 80% chance for that trader to be a '''dromad trader'''.
** There is an 80% chance for that trader to be a '''dromad trader'''.
** There is a 20% chance for that trader to be a '''village merchant''' generated from a random member of the village. This is the type of merchant described on this wiki page.
** There is a 20% chance for that trader to be a '''village merchant''' generated from a random member of the village. This is the type of merchant described on this wiki page.


== Visual Features ==
== Visual Features ==
'''Village merchants''' will always have a yellow primary color. This is the same primary color used by named village members that do not have another village role.
'''Village merchants''' will always have a yellow primary color. This is the same primary color used by named village members that do not have another village role.{{Code Reference|name=GenerateMerchant|namespace=XRL.World.ZoneBuilders|class=Village|method=generateMerchant}}<ref><code>ObjectBlueprints.xml</code></ref>


== Stock ==
== Stock ==
'''Village merchants''' are unique for the potentially large amount of stock that they carry. Their total amount of stock can be up to three times the amount of stock carried by a {{favilink|dromad trader|plural}}.
'''Village merchants''' are unique for the potentially large amount of stock that they carry. Their total amount of stock can be up to three times the amount of stock carried by a {{favilink|dromad trader|plural}}.


The merchant's inventory will be composed of all of the following:
The merchant's inventory will be composed of all of the following:<ref name="GenerateMerchant" />
* A full set of items from [[Data:Tier-based_merchant_wares|Tier{X}Wares]], where X equals the village's [[World Map#World_Tier|world map tier]].
* A full set of items from [[Data:Tier-based_merchant_wares|Tier{X}Wares]], where X equals the village's [[World Map#World_Tier|world map tier]].
* If the village is in a world map tier of 2 or higher, the merchant will also have a full set of items from [[Data:Tier-based_merchant_wares|Tier{X-1}Wares]].
* If the village is in a world map tier of 2 or higher, the merchant will also have a full set of items from [[Data:Tier-based_merchant_wares|Tier{X-1}Wares]].
Line 22: Line 22:


For example, a merchant in a {{favilink|deathlands}} village will have a full set of combined wares from [[Data:Tier-based_merchant_wares#Tier5Wares|Tier5Wares]], [[Data:Tier-based_merchant_wares#Tier4Wares|Tier4Wares]], and [[Data:Tier-based_merchant_wares#Tier3Wares|Tier3Wares]].
For example, a merchant in a {{favilink|deathlands}} village will have a full set of combined wares from [[Data:Tier-based_merchant_wares#Tier5Wares|Tier5Wares]], [[Data:Tier-based_merchant_wares#Tier4Wares|Tier4Wares]], and [[Data:Tier-based_merchant_wares#Tier3Wares|Tier3Wares]].
{{references|2.0.201.52}}