Template:Upgrade

From Official Barotrauma Wiki
Revision as of 17:03, 6 October 2022 by Jade Harley (talk | contribs)
Jump to: navigation, search
Documentation
Parameter Required Description Expected Value
effect1 The first effect of the upgrade. String.
effect2 The second effect of the upgrade. String.
maxlevel The maximum level of the upgrade. Natural number.
tier1max The highest upgrade level that can be reached by a tier 1 submarine. Natural number.
tier2max The highest upgrade level that can be reached by a tier 2 submarine. Natural number.
effect1increase The % change of the first effect per upgrade level. Signed rational number.
effect1value Base value of the upgraded stat (Before first upgrade) Signed rational number.
effect1unit Unit of the base value. Signed rational number.
effect2increase The % change of the first effect per upgrade level. Signed rational number.
effect2value Base value of the upgraded stat (Before first upgrade) Signed rational number.
effect2unit Unit of the base value. Signed rational number.
baseprice The base price of the upgrade. Integer.
increaselow The % change in price for the first upgrade level. Signed rational number.
increasehigh The % change in price for the last upgrade level. Signed rational number.

Example

{{Upgrade
| effect1 = Max Wall Health
| effect2 = Crush Depth

| maxlevel = 6
| tier1max = 2
| tier2max = 4

| effect1increase = 20
| effect2increase = 14
| effect2value = 3500
| effect2unit = m

| baseprice    = 2000
| increaselow  = 0
| increasehigh = 400
}}


{{#ifexpr:6>=2||2||1||+40%||+28%||{{#vardefineecho:price|Expression error: Unexpected < operator.
Level Tier Max Wall Health Crush Depth Price
1 1 +20% +14% 2000 mk
3 2 +60% +42% 4666 mk
4 2 +80% +56% 13998 mk
5 3 +100% +70% 51326 mk
6 3 +120% +84% 222412 mk