Difference between revisions of "Template:FairPoints"
Jump to navigation
Jump to search
Oath2order (talk | contribs) |
BryghtShadow (talk | contribs) (Added iridium column.) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>|- {{#arraydefine:qualities|0,1,2,4|,}} |
− | |- | + | | [[File:{{{1}}}.png|center]] |
− | |[[File:{{{1}}}.png]] | + | | [[{{{1}}}]] |
− | |[[{{{1}}}]] | + | | {{{2}}} |
− | |{{{2}}} | + | | {{#arrayprint:qualities|{{!}}{{!}}| $quality |
− | |{{ | + | | <nowiki/> {{#ifexpr: {{#ifeq:{{{3|n}}}|y|1| $quality < 1 }} |
+ | | {{#iferror: {{#expr: {{{2}}} * (1 + $quality * .25) }} | ||
+ | | {{{2}}} | ||
+ | | {{#arraydefine: prices | {{#expr: {{{2}}} * (1 + $quality * .25)}} | <nowiki/> }} | ||
+ | {{#arrayprint: prices || $price | ||
+ | | {{#expr: 0 | ||
+ | + $quality + 1 | ||
+ | + {{#expr: 19 < $price }} | ||
+ | + {{#expr: 89 < $price }} | ||
+ | + {{#expr: 199 < $price }} | ||
+ | + {{#expr: 299 < $price and $quality < 2 }} | ||
+ | + {{#expr: 399 < $price and $quality < 1 }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | | — | ||
+ | }} | ||
+ | }}</includeonly><noinclude> | ||
+ | Creates a sortable table entry for a given item's ''base value'' in the Stardew Valley Fair grange display. | ||
− | + | First argument is the item name, and the second argument is its ''base value''. | |
− | + | The third argument is "y" if the item can have quality stars. It can be omitted or "n" to display dashes in the silver and gold columns. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | The point value for silver-, gold- and iridium-quality items is calculated assuming that judging is based on the quality value of the item instead of the base value, i.e. silver-quality items are worth (1 + points(1.25 * base)) instead of just (1 + points(base)). | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | The point value for silver and | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Image | !Image | ||
!Name | !Name | ||
− | !Value | + | !Base Value |
!Points | !Points | ||
!Silver | !Silver | ||
!Gold | !Gold | ||
+ | !Iridium | ||
{{FairPoints|Radish|60|y}} | {{FairPoints|Radish|60|y}} | ||
{{FairPoints|Pumpkin|320|y}} | {{FairPoints|Pumpkin|320|y}} |
Revision as of 11:57, 31 October 2016
Creates a sortable table entry for a given item's base value in the Stardew Valley Fair grange display.
First argument is the item name, and the second argument is its base value. The third argument is "y" if the item can have quality stars. It can be omitted or "n" to display dashes in the silver and gold columns.
The point value for silver-, gold- and iridium-quality items is calculated assuming that judging is based on the quality value of the item instead of the base value, i.e. silver-quality items are worth (1 + points(1.25 * base)) instead of just (1 + points(base)).
Image | Name | Base Value | Points | Silver | Gold | Iridium |
---|---|---|---|---|---|---|
Radish | 60 | 2 | 3 | 5 | 7 | |
Pumpkin | 320 | 5 | 6 | 6 | 8 | |
Egg | 240 | 4 | — | — | — | |
Oil of Garlic | ??? | ??? | — | — | — |