Difference between revisions of "Test Calc Math"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
Line 3: Line 3:
 
{| cellpadding ="0" cellspacing="0" width="200"
 
{| cellpadding ="0" cellspacing="0" width="200"
 
|-
 
|-
|''Tier: {{#urlget:tier|1}}''
+
|''Tier: {{#urlget:tier|1}}'' {{#ifeq:{{{ISpeed}}}|N/A||
{{#ifeq:{{{ISpeed}}}|N/A||
 
 
{{!}}-
 
{{!}}-
 
{{!}}DPS
 
{{!}}DPS
{{!}} style="text-align: right;" {{!}}{{#ifeq:{{{Name}}}|Training Dummy|{{#expr:floor({{{A{{#urlget:tier|1}}}}}*{{#urlget:dp|100}})*((({{#urlget:ds|100}}/2)+500)/1000) round 0}} - {{#expr:floor({{{A{{#urlget:tier|1}}}}}*{{#urlget:dp|100}})*((({{#urlget:ds|100}}/2)+500)/1000)*2 round 0}}|{{#expr:{{#expr:{{{A{{#urlget:tier|1}}}}}*{{#urlget:dp|100}}}}/{{#expr:1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))){{#ifeq:{{{Name}}}|Spike Blockade|-{{#expr:(1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))))*0.05*({{#urlget:tier|1}}-1)}}}}}} round 0 }}}} }}
+
{{!}} style="text-align: right;" {{!}}{{#ifeq:{{{Name}}}|Training Dummy|{{#expr:floor({{{A{{#urlget:tier|1}}}}}*{{#urlget:dp|100}})*((({{#urlget:ds|100}}/2)+500)/1000) round 0}} - {{#expr:floor({{{A{{#urlget:tier|1}}}}}*{{#urlget:dp|100}})*((({{#urlget:ds|100}}/2)+500)/1000)*2 round 0}}|{{#expr:{{#expr:{{{A{{#urlget:tier|1}}}}}*{{#urlget:dp|100}}}}/{{#expr:1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))){{#ifeq:{{{Name}}}|Spike Blockade|-{{#expr:(1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))))*0.05*({{#urlget:tier|1}}-1)}}}}}} round 0 }}}} }} {{#if:{{{Health|}}}|
{{#if:{{{Health|}}}|
 
 
{{!}}-
 
{{!}}-
 
{{!}}Max Health
 
{{!}}Max Health
{{!}} style="text-align: right;" {{!}}{{#expr:floor({{{H{{#urlget:tier|1}}}}}*{{#urlget:dh|100}})}} }}
+
{{!}} style="text-align: right;" {{!}}{{#expr:floor({{{H{{#urlget:tier|1}}}}}*{{#urlget:dh|100}})}} }} {{#if:{{{Attack|}}}|
{{#if:{{{Attack|}}}|
 
 
{{!}}-
 
{{!}}-
 
{{!}}ATK DMG
 
{{!}}ATK DMG
Line 18: Line 15:
 
{{!}}-
 
{{!}}-
 
{{!}}ATK Range
 
{{!}}ATK Range
{{!}} style="text-align: right;" {{!}}{{#expr:{{{R{{#urlget:tier|1}}}}}*100}} }}
+
{{!}} style="text-align: right;" {{!}}{{#expr:{{{R{{#urlget:tier|1}}}}}*100}} }} {{#ifeq:{{{ISpeed}}}|N/A||
{{#ifeq:{{{ISpeed}}}|N/A||
 
 
{{!}}-
 
{{!}}-
 
{{!}}ATK Rate
 
{{!}}ATK Rate
 
{{!}} style="text-align: right;" {{!}}{{#expr:1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))){{#ifeq:{{{Name}}}|Spike Blockade|-{{#expr:(1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))))*0.05*({{#urlget:tier|1}}-1)}}}} round 2}} }}
 
{{!}} style="text-align: right;" {{!}}{{#expr:1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))){{#ifeq:{{{Name}}}|Spike Blockade|-{{#expr:(1/((1/{{{ISpeed}}})*(1+(({{#urlget:ds|100}}-250)/300))))*0.05*({{#urlget:tier|1}}-1)}}}} round 2}} }}
 
|}
 
|}

Revision as of 16:27, 15 May 2015

[[File:{{{Thumb}}}|left]]

{{{Name}}}

- DPS Expression error: Unexpected < operator. |- ATK Rate Expression error: Unrecognized punctuation character "{".