Difference between revisions of "Template:FairPoints"

From Stardew Valley Wiki
Jump to navigation Jump to search
(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
|{{FairPointsValue|{{{2}}}}}
+
| <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.
  
<!-- silver and gold values, if requested -->
+
First argument is the item name, and the second argument is its ''base value''.
{{#ifeq: {{{3}}}|y|
+
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.
 
 
{{!}}<!--silver value-->
 
{{#iferror: {{{2}}} + 1
 
|
 
{{{2}}}
 
|
 
{{#ifexpr:
 
{{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}} > 6 | 6 | {{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.25}}}}}}
 
}}
 
}}<!-- //end silver value -->
 
 
 
{{!}}<!--gold value-->
 
{{#iferror: {{{2}}} + 1
 
|
 
{{{2}}}
 
|
 
{{#ifexpr:
 
{{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}} > 6 | 6 | {{#expr: 2 + {{FairPointsValue|{{#expr: {{{2}}} * 1.50}}}}}}
 
}}
 
}}<!-- //end gold value -->
 
  
|
+
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)).
{{!}}—
 
{{!}}—
 
}}<!-- //end gold/silver point values --><!--
 
--></includeonly><noinclude>
 
Creates a sortable table entry for a given item's value in the Stardew Valley Fair grange display.
 
First argument is the item name, and the second argument is its 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 and gold items is calculated assuming that judging is based on the quality value of the item instead of the base value, i.e. silver items are worth (1 + points(1.25 * base)) instead of just (1 + points(base)).
 
  
 
{| 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.png
Radish 60 2 3 5 7
Pumpkin.png
Pumpkin 320 5 6 6 8
Egg.png
Egg 240 4
Oil of Garlic.png
Oil of Garlic ???  ???

Template:FairPoints/doc