Template:Gen 1 Stat Calculator: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
m (added error handling)
Line 1: Line 1:
<!-- Args: Base Stat, Stat EXP, DVs, Level, Is HP stat? !-->
<!-- Args: Base Stat, Stat EXP, DVs, Level, Is HP stat? !-->
<includeonly>{{#switch: {{{5}}}
<includeonly>{{#iferror:{{#switch: {{{5}}}
|HP = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + floor(ceil(sqrt {{{2}}}) / 4)) * {{{4}}}) / 100) + {{{4}}} + 10}}
|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}}
|#default = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + floor(ceil(sqrt {{{2}}}) / 4)) * {{{4}}}) / 100) + 5}}
}}</includeonly>
}}|error}}</includeonly>
<noinclude>
<noinclude>
{{Gen_1_Stat_Calculator|65|65535|15|50|HP}}
{{Gen_1_Stat_Calculator|65|65535|15|50|HP}}
{{Gen_1_Stat_Calculator|error|65535|15|50|HP}}
</noinclude>
</noinclude>

Revision as of 04:31, 7 May 2023



172


error