Changes

Jump to navigation Jump to search
729 bytes added ,  21:51, 11 October 2016
switch for every professions modifiers
Line 52: Line 52:  
{{#if:{{{profession|}}}|
 
{{#if:{{{profession|}}}|
 
     {{!}}-
 
     {{!}}-
     {{!}}id="infoboxsection"{{!}}{{{profession|}}} Profession:<br/>''(+{{#expr:({{{modifier|0}}}*100)}}% Sell Price)''
+
     {{!}}id="infoboxsection"{{!}}{{{profession|}}} Profession:<br/>''(+{{#expr: {{#switch:{{{profession|}}}
     {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{{quality|true}}}|true|{{Qualityprice|{{{name|}}}|{{#expr:ceil({{{sellprice|0}}}+({{{sellprice|0}}}*{{{modifier|0}}})) }} |{{#if:{{{iridium|}}}|iridium=true|}} }}|{{price|{{#expr:ceil({{{sellprice|0}}}+({{{sellprice|0}}}*{{{modifier|0}}})) }} }} }}
+
        |Rancher=0.2
 +
        |Tiller=0.1
 +
        |Artisan=0.4
 +
        |Blacksmith=0.5
 +
        |Gemologist=0.3
 +
        |Forester=0.5
 +
        |Tapper=0.25
 +
        |Fisher=0.25
 +
        |Angler=0.5
 +
        |#default={{{modifier|0}}} }} *100}}% Sell Price)''
 +
     {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{{quality|true}}}|true|{{Qualityprice|{{{name|}}}|{{#expr:ceil({{{sellprice|0}}}+({{{sellprice|0}}}*{{#switch:{{{profession|}}}
 +
        |Rancher=0.2
 +
        |Tiller=0.1
 +
        |Artisan=0.4
 +
        |Blacksmith=0.5
 +
        |Gemologist=0.3
 +
        |Forester=0.5
 +
        |Tapper=0.25
 +
        |Fisher=0.25
 +
        |Angler=0.5
 +
        |#default={{{modifier|0}}} }})) }} |{{#if:{{{iridium|}}}|iridium=true|}} }}|{{price|{{#expr:ceil({{{sellprice|0}}}+({{{sellprice|0}}}*{{#switch:{{{profession|}}}
 +
        |Rancher=0.2
 +
        |Tiller=0.1
 +
        |Artisan=0.4
 +
        |Blacksmith=0.5
 +
        |Gemologist=0.3
 +
        |Forester=0.5
 +
        |Tapper=0.25
 +
        |Fisher=0.25
 +
        |Angler=0.5
 +
        |#default={{{modifier|0}}} }})) }} }} }}
 
}}  
 
}}  
 
{{#if:{{{ingredients|}}}|
 
{{#if:{{{ingredients|}}}|
2,041

edits

Navigation menu