Template:Rod-Costs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|1}} | | align="center" | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|1}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=1}} * 0.375}}}} | | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=1}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<11|-|11}} | | align="center" | {{#ifexpr:{{{max|35}}}<11|-|11}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=11}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<11|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=11}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<21|-|21}} | | align="center" | {{#ifexpr:{{{max|35}}}<21|-|21}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=21}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<21|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=21}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<31|-|31}} | | align="center" | {{#ifexpr:{{{max|35}}}<31|-|31}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=31}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<31|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=31}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<2|-|2}} | | align="center" | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<2|-|2}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=2}} * 0.375}}}} | | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<2|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=2}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<12|-|12}} | | align="center" | {{#ifexpr:{{{max|35}}}<12|-|12}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=12}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<12|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=12}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<22|-|22}} | | align="center" | {{#ifexpr:{{{max|35}}}<22|-|22}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=22}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<22|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=22}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<32|-|32}} | | align="center" | {{#ifexpr:{{{max|35}}}<32|-|32}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=32}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<32|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=32}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}<2 or {{{max|35}}}<3|-|3}} | | align="center" | {{#ifexpr:{{{sp|1}}}<2 or {{{max|35}}}<3|-|3}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=3}} * 0.375}}}} | | {{#ifexpr:{{{sp|1}}}<2 or {{{max|35}}}<3|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=3}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<13|-|13}} | | align="center" | {{#ifexpr:{{{max|35}}}<13|-|13}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=13}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<13|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=13}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}< | | align="center" | {{#ifexpr:{{{max|35}}}<13|-|23}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=23}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<13|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=23}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<33|-|33}} | | align="center" | {{#ifexpr:{{{max|35}}}<33|-|33}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=33}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<33|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=33}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|4}} | | align="center" | {{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|4}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=4}} * 0.375}}}} | | {{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=4}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<14|-|14}} | | align="center" | {{#ifexpr:{{{max|35}}}<14|-|14}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=14}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<14|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=14}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<24|-|24}} | | align="center" | {{#ifexpr:{{{max|35}}}<24|-|24}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=24}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<24|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=24}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<34|-|34}} | | align="center" | {{#ifexpr:{{{max|35}}}<34|-|34}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=34}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<34|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=34}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|5}} | | align="center" | {{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|5}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=5}} * 0.375}}}} | | {{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=5}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<15|-|15}} | | align="center" | {{#ifexpr:{{{max|35}}}<15|-|15}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=15}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<15|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=15}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<25|-|25}} | | align="center" | {{#ifexpr:{{{max|35}}}<25|-|25}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=25}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<25|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=25}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<35|-|35}} | | align="center" | {{#ifexpr:{{{max|35}}}<35|-|35}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=35}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<35|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=35}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|6}} | | align="center" | {{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|6}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=6}} * 0.375}}}} | | {{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=6}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<16|-|16}} | | align="center" | {{#ifexpr:{{{max|35}}}<16|-|16}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=16}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<16|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=16}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<26|-|26}} | | align="center" | {{#ifexpr:{{{max|35}}}<26|-|26}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=26}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<26|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=26}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | - | | align="center" | - | ||
Line 106: | Line 106: | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{max|35}}}<7|-|7}} | | align="center" | {{#ifexpr:{{{max|35}}}<7|-|7}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=7}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<7|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=7}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<17|-|17}} | | align="center" | {{#ifexpr:{{{max|35}}}<17|-|17}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=17}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<17|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=17}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<27|-|27}} | | align="center" | {{#ifexpr:{{{max|35}}}<27|-|27}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=27}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<27|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=27}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | - | | align="center" | - | ||
Line 118: | Line 118: | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{max|35}}}<8|-|8}} | | align="center" | {{#ifexpr:{{{max|35}}}<8|-|8}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=8}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<8|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=8}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<18|-|18}} | | align="center" | {{#ifexpr:{{{max|35}}}<18|-|18}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=18}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<18|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=18}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<28|-|28}} | | align="center" | {{#ifexpr:{{{max|35}}}<28|-|28}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=28}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<28|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=28}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | - | | align="center" | - | ||
Line 130: | Line 130: | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{max|35}}}<9|-|9}} | | align="center" | {{#ifexpr:{{{max|35}}}<9|-|9}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=9}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<9|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=9}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<19|-|19}} | | align="center" | {{#ifexpr:{{{max|35}}}<19|-|19}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=19}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<19|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=19}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<29|-|29}} | | align="center" | {{#ifexpr:{{{max|35}}}<29|-|29}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=29}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<29|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=29}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | - | | align="center" | - | ||
Line 142: | Line 142: | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{max|35}}}<10|-|10}} | | align="center" | {{#ifexpr:{{{max|35}}}<10|-|10}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=10}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<10|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=10}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<20|-|20}} | | align="center" | {{#ifexpr:{{{max|35}}}<20|-|20}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=20}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<20|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=20}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<30|-|30}} | | align="center" | {{#ifexpr:{{{max|35}}}<30|-|30}} | ||
| {{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=30}} * 0.375}}}} | | {{#ifexpr:{{{max|35}}}<30|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=30}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | - | | align="center" | - | ||
| - | | - | ||
|}</includeonly> | |}</includeonly> |
Revision as of 14:24, 24 August 2019
Outputs a table of caster level-based rod costs, adjusted by spell level. Call as follows:
{{Rod-Costs | sp= | max= }}
Parameters:
- sp = Values: 1 through 4. Sets the spell level of the spell on the rod. This sets the minimum caster level and the price factors. Default is 1.
- max = Values: 5 through 35. Sets the max caster level the rod can be purchased at. Typically where the spell maxes out (e.g. 20 for all cure spells). Default is 35.
Example:
{{Rod-Costs|sp=2|max=11}}
Outputs:
Caster Level | Cost | Caster Level | Cost | Caster Level | Cost | Caster Level | Cost | |||
---|---|---|---|---|---|---|---|---|---|---|
- | - | 11 | 37,200 gp | - | - | - | - | |||
- | - | - | - | - | - | - | - | |||
3 | 4,500 gp | - | - | - | - | - | - | |||
4 | 6,600 gp | - | - | - | - | - | - | |||
5 | 9,000 gp | - | - | - | - | - | - | |||
6 | 12,000 gp | - | - | - | - | - | - | |||
7 | 15,000 gp | - | - | - | - | - | - | |||
8 | 19,200 gp | - | - | - | - | - | - | |||
9 | 24,000 gp | - | - | - | - | - | - | |||
10 | 30,000 gp | - | - | - | - | - | - |