v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing v0.34 Talk:Trading

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 34: Line 34:
  
 
While examining my disassembly of version 0.23.130.23a, I discovered some very interesting logic in the caravan code: the exact rules for "emergency supplies".
 
While examining my disassembly of version 0.23.130.23a, I discovered some very interesting logic in the caravan code: the exact rules for "emergency supplies".
# Bring enough meat and fish items so that you will end up with 5 for every meat-eater in your fortress (carnivores*5 - (food_meat + food_fish)). In practice, this does nothing because dwarves are omnivores.
+
1. Bring enough meat and fish items so that you will end up with 5 for every meat-eater in your fortress (carnivores*5 - (food_meat + food_fish))
# Bring enough meat/fish/plants/cheese (and probably also other food items) so that you will end up with 5 for every dwarf in your fortress (population*5 - (food_total - food_drink - food_seeds).
+
2. Bring enough meat/fish/plants/cheese (and probably also other food items) so that you will end up with 5 for every dwarf in your fortress (population*5 - (food_total - food_drink - food_seeds)
# Bring enough cloth/leather so that you have enough to make 5 sets of pristine clothes for every dwarf in your fortress (population*5 - (cloth_total + leather_total + min(armor_total, shoes_total, pants_total)).
+
3. Bring enough cloth/leather so that you have enough to make 5 sets of pristine clothes for every dwarf in your fortress (population*5 - (cloth_total + leather_total + min(armor_total, shoes_total, pants_total))
# Bring enough logs so that you will end up with 1 for every dwarf in your fortress (population - wood_total).
+
4. Bring enough logs so that you will end up with 1 for every dwarf in your fortress (population - wood_total)
  
 
These rules actually date all the way back to 23a (aside from the "wood logs" rule), and they all count items which are non-rotten, have zero wear, and are unforbidden (for the clothes one, it also excludes anything which would be worn as Armor). Thus, caravans will start bringing cloth and leather in large quantities once your dwarves' existing clothes start to wear out. --[[User:Quietust|Quietust]] 19:12, 5 December 2012 (UTC)
 
These rules actually date all the way back to 23a (aside from the "wood logs" rule), and they all count items which are non-rotten, have zero wear, and are unforbidden (for the clothes one, it also excludes anything which would be worn as Armor). Thus, caravans will start bringing cloth and leather in large quantities once your dwarves' existing clothes start to wear out. --[[User:Quietust|Quietust]] 19:12, 5 December 2012 (UTC)

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Template used on this page: