Template:Combat level: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 3: Line 3:
{{#expr: ({{#if:{{{Attack|}}}|{{{Attack}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Attack}})|1}}}} + {{#if:{{{Strength|}}}|{{{Strength}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Strength}})|1}}}}) / 2 - .5 round 0}}
{{#expr: ({{#if:{{{Attack|}}}|{{{Attack}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Attack}})|1}}}} + {{#if:{{{Strength|}}}|{{{Strength}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Strength}})|1}}}}) / 2 - .5 round 0}}
+  
+  
{{#expr: max((3 * {{#if:{{{Ranged|}}}|{{{Ranged}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Ranged}})|1}}}} / 2 - .5 round 0), (3 * {{#if:{{{Magic|}}}|{{{Magic}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Magic}})|1}}}} / 2 - .5 round 0))
{{#expr: (3 * {{#if:{{{Ranged|}}}|{{{Ranged}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Ranged}})|1}}}} / 2 - .5 round 0) > (3 * {{#if:{{{Magic|}}}|{{{Magic}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Magic}})|1}}}} / 2 - .5 round 0) ? (3 * {{#if:{{{Ranged|}}}|{{{Ranged}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Ranged}})|1}}}} / 2 - .5 round 0) : (3 * {{#if:{{{Magic|}}}|{{{Magic}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Magic}})|1}}}} / 2 - .5 round 0)
}}) - {{#switch: {{#if:{{{DP|}}}|{{{DP}}}|0}}
}}
) - {{#switch: {{#if:{{{DP|}}}|{{{DP}}}|0}}
       | 0 = 0.4999 | 1 = 0.0499 | 2 = 0.0049 | 0 }} round {{#if:{{{DP|}}}|{{{DP}}}|0}}
       | 0 = 0.4999 | 1 = 0.0499 | 2 = 0.0049 | 0 }} round {{#if:{{{DP|}}}|{{{DP}}}|0}}
}}</includeonly><noinclude>{{/doc}}</noinclude>
}}</includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 16:48, 4 May 2024