Template:UpgradeTable: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
|- | |- | ||
| 2 | | 2 | ||
| {{#expr: (((1+({{{effect1perlevel}}}/100))^2)-1)*100}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^2)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+(({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}}))/100)))}}}} mk | | {{#expr: (((1+({{{effect1perlevel}}}/100))^2)-1)*100 round 2}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^2)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+(({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}}))/100)))}}}} mk | ||
|- | |- | ||
| 3 | | 3 | ||
| {{#expr: (((1+({{{effect1perlevel}}}/100))^3)-1)*100}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^3)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*2))/100)))}}}} mk | | {{#expr: (((1+({{{effect1perlevel}}}/100))^3)-1)*100 round 2}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^3)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*2))/100)))}}}} mk | ||
|- | |- | ||
| 4 | | 4 | ||
| {{#expr: (((1+({{{effect1perlevel}}}/100))^4)-1)*100}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^4)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*3))/100)))}}}} mk | | {{#expr: (((1+({{{effect1perlevel}}}/100))^4)-1)*100 round 2}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^4)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*3))/100)))}}}} mk | ||
|- | |- | ||
| 5 | | 5 | ||
| {{#expr: (((1+({{{effect1perlevel}}}/100))^5)-1)*100}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^5)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*4))/100)))}}}} mk | | {{#expr: (((1+({{{effect1perlevel}}}/100))^5)-1)*100 round 2}}% || {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^5)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*4))/100)))}}}} mk | ||
{{#ifeq: {{{maxlevel}}}|10|{{!}}- | {{#ifeq: {{{maxlevel}}}|10|{{!}}- | ||
{{!}} 6 | {{!}} 6 | ||
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^6)-1)*100}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^6)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*5))/100)))}}}} mk | {{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^6)-1)*100 round 2}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^6)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*5))/100)))}}}} mk | ||
{{!}}- | {{!}}- | ||
{{!}} 7 | {{!}} 7 | ||
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^7)-1)*100}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^7)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*6))/100)))}}}} mk | {{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^7)-1)*100 round 2}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^7)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*6))/100)))}}}} mk | ||
{{!}}- | {{!}}- | ||
{{!}} 8 | {{!}} 8 | ||
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^8)-1)*100}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^8)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*7))/100)))}}}} mk | {{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^8)-1)*100 round 2}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^8)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*7))/100)))}}}} mk | ||
{{!}}- | {{!}}- | ||
{{!}} 9 | {{!}} 9 | ||
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^9)-1)*100}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^9)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*8))/100)))}}}} mk | {{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^9)-1)*100 round 2}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^9)-1)*100 round 2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*8))/100)))}}}} mk | ||
{{!}}- | {{!}}- | ||
{{!}} 10 | {{!}} 10 | ||
{{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^10)-1)*100}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^10)-1)*100}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*9))/100)))}}}} mk|}} | {{!}} {{#expr: (((1+({{{effect1perlevel}}}/100))^10)-1)*100 round 2}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: (((1+({{{effect2perlevel}}}/100))^10)-1)*100 round 2}}% {{!}}{{!}}|}} {{#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> |