Template:UpgradeTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
No edit summary
(9 intermediate revisions by the same user not shown)
Line 19: Line 19:
|-
|-
| 1  
| 1  
| {{{effect1perlvl}}}% || {{#if: {{{effect2|}}}|{{{effect2perlvl}}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{{baseprice}}}}} mk
| {{{effect1perlevel}}}% || {{#if: {{{effect2|}}}|{{{effect2perlevel}}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{{baseprice}}}}} mk
|-
|-
| 2  
| 2  
| {{#expr: {{{effect1perlvl}}}*2}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+(({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}}))/100)))}}}} mk
| {{#expr: (((1+({{{effect1perlevel}}}/100))^2)-1)*100 round 0}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^2)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+(({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}}))/100)))}}}} mk
|-
|-
| 3  
| 3  
| {{#expr: {{{effect1perlvl}}}*3}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*3}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*2))/100)))}}}} mk
| {{#expr: (((1+({{{effect1perlevel}}}/100))^3)-1)*100 round 0}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^3)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*2))/100)))}}}} mk
|-
|-
| 4  
| 4  
| {{#expr: {{{effect1perlvl}}}*4}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*4}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*3))/100)))}}}} mk
| {{#expr: (((1+({{{effect1perlevel}}}/100))^4)-1)*100 round 0}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^4)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*3))/100)))}}}} mk
|-
|-
| 5  
| 5  
| {{#expr: {{{effect1perlvl}}}*5}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*5}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*4))/100)))}}}} mk
| {{#expr: (((1+({{{effect1perlevel}}}/100))^5)-1)*100 round 0}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^5)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*4))/100)))}}}} mk
{{#ifeq: {{{maxlevel}}}|10|{{!}}-
{{#ifeq: {{{maxlevel}}}|10|{{!}}-
{{!}} 6  
{{!}} 6  
{{!}} {{#expr: {{{effect1perlvl}}}*6}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*6}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*5))/100)))}}}} mk
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^6)-1)*100 round 0}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^6)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*5))/100)))}}}} mk
{{!}}-
{{!}}-
{{!}} 7  
{{!}} 7  
{{!}} {{#expr: {{{effect1perlvl}}}*7}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*7}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*6))/100)))}}}} mk
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^7)-1)*100 round 0}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^7)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*6))/100)))}}}} mk
{{!}}-
{{!}}-
{{!}} 8  
{{!}} 8  
{{!}} {{#expr: {{{effect1perlvl}}}*8}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*8}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*7))/100)))}}}} mk
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^8)-1)*100 round 0}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^8)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*7))/100)))}}}} mk
{{!}}-
{{!}}-
{{!}} 9  
{{!}} 9  
{{!}} {{#expr: {{{effect1perlvl}}}*9}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*9}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*8))/100)))}}}} mk
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^9)-1)*100 round 0}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^9)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*8))/100)))}}}} mk
{{!}}-
{{!}}-
{{!}} 10  
{{!}} 10  
{{!}} {{#expr: {{{effect1perlvl}}}*10}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*10}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*9))/100)))}}}} mk|}}
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^10)-1)*100 round 0}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^10)-1)*100 round 0}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*9))/100)))}}}} mk|}}
|}
|}
{{#switch: {{{upgradeposition}}}|single|last={{!}}}|}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude>
{{#switch: {{{upgradeposition}}}|single|last={{!}}}|}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude>

Revision as of 21:24, 30 July 2021