Template:UpgradeTable: Difference between revisions
From Official Barotrauma Wiki
m (oops) Tag: Undo |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{upgradeposition}}}|single|first={{{!}} class="wikitable" style="width: 89%;" | <includeonly>{{#switch: {{{upgradeposition}}}|single|first={{{!}} class="wikitable" style="width: 89%;" | ||
! style="width: 25%;{{!}} Upgrade | ! style="width: 25%;"{{!}} Upgrade | ||
! style="width: 21%;{{!}} Description | ! style="width: 21%;"{{!}} Description | ||
! Effect per Level | ! Effect per Level | ||
! Maximum Level | ! Maximum Level | ||
Line 13: | Line 13: | ||
| align="center" |{{{baseprice}}} mk | | align="center" |{{{baseprice}}} mk | ||
|- | |- | ||
| align="left" colspan= | | align="left" colspan=5 style="background:#040B0B; border-left:1px solid #040B0B; border-right:1px solid #040B0B;" | | ||
{| class = "mw-collapsible mw-collapsed wikitable" style="width: 25%; | {| class = "mw-collapsible mw-collapsed wikitable" style="text-align:center; width: 25%;" | ||
|+ Level values | |+ Level values | ||
!Level!!{{{effect1}}}!!{{#if: {{{effect2|}}}|{{{effect2}}}!!|}}Price | !Level!!{{{effect1}}}!!{{#if: {{{effect2|}}}|{{{effect2}}}!!|}}Price | ||
|- | |- | ||
| 1 | |||
| {{{effect1perlvl}}}% || {{#if: {{{effect2|}}}|{{{effect2perlvl}}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{{baseprice}}}}} mk | |||
|- | |- | ||
| 2 | |||
| {{#expr: {{{effect1perlvl}}}*2}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*2}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*1))/100)))}}}} mk | |||
|- | |- | ||
| 3 | |||
| {{#expr: {{{effect1perlvl}}}*3}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*3}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*2))/100)))}}}} mk | |||
|- | |- | ||
| 4 | |||
| {{#expr: {{{effect1perlvl}}}*4}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*4}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*3))/100)))}}}} mk | |||
|- | |- | ||
| 5 | |||
| {{#expr: {{{effect1perlvl}}}*5}}% || {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*5}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*4))/100)))}}}} mk | |||
{{#ifeq: {{{maxlevel}}}|10|{{!}}- | {{#ifeq: {{{maxlevel}}}|10|{{!}}- | ||
{{!}} 6 | |||
{{!}} {{#expr: {{{effect1perlvl}}}*6}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*6}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*5))/100)))}}}} mk | |||
{{!}}- | {{!}}- | ||
{{!}} 7 | |||
{{!}} {{#expr: {{{effect1perlvl}}}*7}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*7}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*6))/100)))}}}} mk | |||
{{!}}- | {{!}}- | ||
{{!}} 8 | |||
{{!}} {{#expr: {{{effect1perlvl}}}*8}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*8}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*7))/100)))}}}} mk | |||
{{!}}- | {{!}}- | ||
{{!}} 9 | |||
{{!}} {{#expr: {{{effect1perlvl}}}*9}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*9}}% {{!}}{{!}}|}} {{#vardefineecho: previousprice|{{#expr: trunc({{#var: previousprice}}+({{#var: previousprice}}*(({{{increaselow}}}+((({{{increasehigh}}}-{{{increaselow}}})/{{{maxlevel}}})*8))/100)))}}}} mk | |||
{{!}}- | {{!}}- | ||
{{!}} 10 | |||
{{!}} {{#expr: {{{effect1perlvl}}}*10}}% {{!}}{{!}} {{#if: {{{effect2|}}}|{{#expr: {{{effect2perlvl}}}*10}}% {{!}}{{!}}|}} {{#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> |