The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.
If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.
Difference between revisions of "Talk:Flax Seeds"
From A Tale in the Desert
Jump to navigationJump to searchm (→Derived stats: Another minor code update to match the table) |
(Another script update) |
||
Line 7: | Line 7: | ||
data = ( | data = ( | ||
− | ('Old Egypt', | + | ('Old Egypt', 1, 0, 1, 2, 0), |
− | ('Nile Green', 1, 1 | + | ('Nile Green', 2, 0, 1, 1, 1), |
− | ('Ariella #8', 2, | + | ('Ariella #8', 2, 1, 1, 2, 0), |
− | ('Coyan #56', 2, | + | ('Coyan #56', 2, 1, 2, 2, 0), |
− | ('Coyan #77', | + | ('Coyan #77', 2, 2, 1, 1, 0), |
− | ('Forgiving #5', | + | ('Forgiving #5', 2, 2, 1, 1, 0), |
− | ('Tedra #116', | + | ('Tedra #116', 4, 2, 3, 0, 1), |
− | ('Tedra #123', | + | ('Tedra #123', 3, 2, 4, 1, 0), |
− | ('Tedra #138', | + | ('Tedra #138', 3, 2, 5, 0, 1), |
− | ('Zaniac #37', | + | ('Zaniac #37', 3, 1, 3, 1, 1), |
− | ('Zaniac #38', | + | ('Zaniac #38', 2, 2, 2, 1, 0), |
− | ('Zaniac #128', | + | ('Zaniac #128', 3, 1, 4, 1, 1), |
− | ('Zaniac #134', | + | ('Zaniac #134', 3, 2, 2, 1, 1), |
− | ('Zaniac #163', | + | ('Zaniac #163', 3, 2, 3, 1, 1), |
− | ('Zaniac #180', | + | ('Zaniac #180', 3, 2, 3, 1, 0) |
) | ) | ||
print '{| border="1" cellspacing="0" cellpadding="5" class="wikitable sortable"' | print '{| border="1" cellspacing="0" cellpadding="5" class="wikitable sortable"' | ||
− | print '! Variety !! Weed !! Water !! | + | print '! Variety !! Flax !! Rotten !! Seeds !! Weed !! Water !! Plantings/1k<br>Any type !! Seedings/1k<br>Any type !! Actions/1k<br>Any type !! Plantings/1k<br>Non-rotten !! Seedings/1k<br>Non-rotten !! Actions/1k<br>Non-rotten' |
− | for name | + | for name, flax, rf, seeds, weed, water in data: |
plantings_per_1k = 1000.0 / (flax + rf) | plantings_per_1k = 1000.0 / (flax + rf) | ||
weedwater_per_1k = plantings_per_1k * (weed + water) | weedwater_per_1k = plantings_per_1k * (weed + water) | ||
Line 40: | Line 40: | ||
actions_per_seed = 7.0/(6.0*seeds-1) | actions_per_seed = 7.0/(6.0*seeds-1) | ||
actions_per_1k = planting_actions + plantings_per_1k * actions_per_seed | actions_per_1k = planting_actions + plantings_per_1k * actions_per_seed | ||
+ | |||
+ | # The same, for non-rotten flax only (for compound expansion etc) | ||
+ | nr_plantings_per_1k = 1000.0 / flax | ||
+ | nr_weedwater_per_1k = nr_plantings_per_1k * (weed + water) | ||
+ | nr_seedharvests_per_1k = nr_plantings_per_1k / seeds | ||
+ | nr_planting_actions = nr_plantings_per_1k * (weed + water + 2) | ||
+ | nr_actions_per_1k = nr_planting_actions + nr_plantings_per_1k * actions_per_seed | ||
+ | |||
+ | name = name.replace(" "," ") | ||
print '|- align="center"' | print '|- align="center"' | ||
− | print '| %s || %d || %d || %d || %d || %d || %.1f || %.1f || %.1f' % (name | + | print '| align="left"|%s || %d || %d || %d || %d || %d || %.1f || %.1f || %.1f || %.1f || %.1f || %.1f' % (name, flax, rf, seeds, weed, water, plantings_per_1k, seedharvests_per_1k, actions_per_1k, nr_plantings_per_1k, nr_seedharvests_per_1k, nr_actions_per_1k) |
print '|}' | print '|}' |
Revision as of 06:40, 10 April 2009
Derived stats
I wrote a small script to derive some stats for each variety (the last 3 columns). Here's the source, tweak as needed..
#!/usr/bin/env python data = ( ('Old Egypt', 1, 0, 1, 2, 0), ('Nile Green', 2, 0, 1, 1, 1), ('Ariella #8', 2, 1, 1, 2, 0), ('Coyan #56', 2, 1, 2, 2, 0), ('Coyan #77', 2, 2, 1, 1, 0), ('Forgiving #5', 2, 2, 1, 1, 0), ('Tedra #116', 4, 2, 3, 0, 1), ('Tedra #123', 3, 2, 4, 1, 0), ('Tedra #138', 3, 2, 5, 0, 1), ('Zaniac #37', 3, 1, 3, 1, 1), ('Zaniac #38', 2, 2, 2, 1, 0), ('Zaniac #128', 3, 1, 4, 1, 1), ('Zaniac #134', 3, 2, 2, 1, 1), ('Zaniac #163', 3, 2, 3, 1, 1), ('Zaniac #180', 3, 2, 3, 1, 0) ) print '{| border="1" cellspacing="0" cellpadding="5" class="wikitable sortable"' print '! Variety !! Flax !! Rotten !! Seeds !! Weed !! Water !! Plantings/1k<br>Any type !! Seedings/1k<br>Any type !! Actions/1k<br>Any type !! Plantings/1k<br>Non-rotten !! Seedings/1k<br>Non-rotten !! Actions/1k<br>Non-rotten' for name, flax, rf, seeds, weed, water in data: plantings_per_1k = 1000.0 / (flax + rf) weedwater_per_1k = plantings_per_1k * (weed + water) seedharvests_per_1k = plantings_per_1k / seeds # actions: plant, water/weed, harvest planting_actions = plantings_per_1k * (weed + water + 2) # actions: plant, harvest 5 times, collect -> 6*seed yield - 1 seeds # so approx 7/(6*seeds-1) actions per seed actions_per_seed = 7.0/(6.0*seeds-1) actions_per_1k = planting_actions + plantings_per_1k * actions_per_seed # The same, for non-rotten flax only (for compound expansion etc) nr_plantings_per_1k = 1000.0 / flax nr_weedwater_per_1k = nr_plantings_per_1k * (weed + water) nr_seedharvests_per_1k = nr_plantings_per_1k / seeds nr_planting_actions = nr_plantings_per_1k * (weed + water + 2) nr_actions_per_1k = nr_planting_actions + nr_plantings_per_1k * actions_per_seed name = name.replace(" "," ") print '|- align="center"' print '| align="left"|%s || %d || %d || %d || %d || %d || %.1f || %.1f || %.1f || %.1f || %.1f || %.1f' % (name, flax, rf, seeds, weed, water, plantings_per_1k, seedharvests_per_1k, actions_per_1k, nr_plantings_per_1k, nr_seedharvests_per_1k, nr_actions_per_1k) print '|}'
--Inkoaten 00:27, 10 April 2009 (EST)