Template:Gen 1 Stat Calculator: Difference between revisions

From Glitch City Wiki
mNo edit summary
m (adjusted formula to use a precalculated stat exp)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#iferror:{{#switch: {{{5}}}
<!-- Args: Base Stat, Stat EXP, DVs, Level, Is HP stat? !-->
<includeonly>{{#iferror:{{#switch: {{{5}}} |HP = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + floor(ceil(sqrt {{{2}}}) / 4)) * {{{4}}}) / 100) + {{{4}}} + 10}} |#default = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + floor(ceil(sqrt {{{2}}}) / 4)) * {{{4}}}) / 100) + 5}} }}|error}}</includeonly>
|HP = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + {{{2}}}) * {{{4}}}) / 100) + {{{4}}} + 10}}
|#default = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + {{{2}}}) * {{{4}}}) / 100) + 5}}
<noinclude>
}}|error}}</includeonly><noinclude>
{{Gen_1_Stat_Calculator|65|65535|15|50|HP}}
<!-- Args: Base Stat, Pre-computed Stat EXP (0-63), DVs, Level, Is HP stat? !-->
{{Gen_1_Stat_Calculator|error|65535|15|50|HP}}
{{Gen_1_Stat_Calculator|35|63|7|81|HP}}

{{Gen_1_Stat_Calculator|65|63|15|50|HP}}

{{Gen_1_Stat_Calculator|error|63|15|50|HP}}
</noinclude>
</noinclude>

Latest revision as of 05:40, 7 May 2023

210

171

error