Template:Autofill tag/row: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 8: Line 8:
     |{{#ifeq:{{{ {{#var:c#}}minamount}}}|{{{ {{#var:c#}}maxamount}}}
     |{{#ifeq:{{{ {{#var:c#}}minamount}}}|{{{ {{#var:c#}}maxamount}}}
             |{{#ifeq:{{{ {{#var:c#}}minamount|}}}|0
             |{{#ifeq:{{{ {{#var:c#}}minamount|}}}|0
             |<span style="color:#808080">0a</span>
             |<span style="color:#808080">0</span>
                 |{{{ {{#var:c#}}minamount|}}} (minonly)
                 |{{{ {{#var:c#}}minamount|}}}
}}
}}
|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}} (minmax)
|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}}
}}
}}
|<span style="color:#808080">0b</span>
|<span style="color:#808080">0</span>
}}
}}
|{{{ {{#var:c#}}amount|}}} (amount)
|{{{ {{#var:c#}}amount|}}}
}}
}}
| align=center | {{#ifexpr:({{#if:{{{ {{#var:c#}}minamount|}}}|{{{ {{#var:c#}}minamount}}}|0}}+{{#if:{{{ {{#var:c#}}maxamount|}}}|{{{ {{#var:c#}}maxamount}}}|0}}+{{#if:{{{ {{#var:c#}}amount|}}}|{{{ {{#var:c#}}amount}}}|0}})>0|{{#ifeq:{{{ {{#var:c#}}spawnprobability|}}}|0|<span style="color:#808080">Cleanup only</span>|{{#expr:{{{ {{#var:c#}}spawnprobability}}}*100}}%|100%}}|<span style="color:#808080">Cleanup only</span>}}</onlyinclude></includeonly><noinclude><!--
| align=center | {{#ifexpr:({{#if:{{{ {{#var:c#}}minamount|}}}|{{{ {{#var:c#}}minamount}}}|0}}+{{#if:{{{ {{#var:c#}}maxamount|}}}|{{{ {{#var:c#}}maxamount}}}|0}}+{{#if:{{{ {{#var:c#}}amount|}}}|{{{ {{#var:c#}}amount}}}|0}})>0|{{#ifeq:{{{ {{#var:c#}}spawnprobability|}}}|0|<span style="color:#808080">Cleanup only</span>|{{#expr:{{{ {{#var:c#}}spawnprobability}}}*100}}%|100%}}|<span style="color:#808080">Cleanup only</span>}}</onlyinclude></includeonly><noinclude><!--
Line 30: Line 30:
if amount defined and >0: amount=amount
if amount defined and >0: amount=amount
if amount undefined and minamount/maxamount defined: amount=minamount-maxamount
if amount undefined and minamount/maxamount defined: amount=minamount-maxamount
     if min==max: amount=minamount
     if min==max: amount=minamount--></noinclude>
 
 
{{#ifexpr:{{{ {{#var:c#}}minamount|0}}}+{{{ {{#var:c#}}maxamount|0}}}+{{{ {{#var:c#}}amount|0}}}>0|{{#ifeq:{{{ {{#var:c#}}minamount|0}}}|1|{{#ifeq:{{{ {{#var:c#}}maxamount|0}}}|1|1|{{#ifexpr:{{{ {{#var:c#}}amount|0}}}>0|{{{ {{#var:c#}}amount}}}|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}}}}}}|{{#ifexpr:{{{ {{#var:c#}}amount|0}}}>0|{{{ {{#var:c#}}amount}}}|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}}}}}}|0}}
 
 
 
{{#ifexpr:{{{ {{#var:c#}}minamount}}}+{{{ {{#var:c#}}maxamount}}}+{{{ {{#var:c#}}amount}}}>0<!-- if min+max+amount>0 then--
|{{#ifeq:{{{ {{#var:c#}}minamount}}}|1<!--ifexpr1 true: ifeq1--
|{{#ifeq:{{{ {{#var:c#}}maxamount}}}|1<!--ifeq1 true: ifeq2--
|1<!--ifeq2 true | if min and max = 1 then 1 --
|{{#ifexpr:{{{ {{#var:c#}}amount}}}>0<!--ifeq2 false: ifexpr2 | if min=1 and max=/=1 then--
|{{{ {{#var:c#}}amount}}}<!--ifexpr2 true | if amount>0 then amount--
|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}}<!--ifexpr2 false | if amount=NULL then min - max --
}}<!--//ifexpr2--
}}<!--//ifeq2--
|{{#ifexpr:{{{ {{#var:c#}}amount}}}>0<!--ifeq1 false: ifexpr3 | if min and max =/= 1 then--
|{{{ {{#var:c#}}amount}}}<!--ifexpr3 true | if amount>0 then amount--
|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}}<!--ifexpr3 false | if amount=NULL then min - max --
}}<!--//ifexpr3--
}}<!--//ifeq1--
|0<!--ifexpr1 false | if min+max+amount=0 then 0--
}}<!--//ifexpr1
 
--></noinclude>

Revision as of 16:06, 10 July 2022

Documentation

engcab

Item Campaign Spawn Amount Probability
Abs Component No

1

Cleanup only
Acos Component No

1

Cleanup only
Adder Component No

1

Cleanup only
Alarm Buzzer No

1

Cleanup only
??? No

1

Cleanup only
And Component No

1

Cleanup only
Artifact Transport Case No

1

Cleanup only
Asin Component No

1

Cleanup only
Atan Component No

1

Cleanup only
Backpack No

1

Cleanup only
Black Wire No

1

100%
Blue Wire No

1

100%
Brown Wire No

1

100%
Button No

1

Cleanup only
Ceil Component No

1

Cleanup only
Circuit Box No

1

Cleanup only
Color Component No

1

Cleanup only
Concatenation Component No

1

Cleanup only
Cos Component No

1

Cleanup only
Crowbar No

1

Cleanup only
Dementonite Crowbar No

1

Cleanup only
Hardened Crowbar No

1

Cleanup only
Delay Component No

1

Cleanup only
Divide Component No

1

Cleanup only
Electrician's Goggles No

1

Cleanup only
Emergency Siren No

1

Cleanup only
Equals Component No

1

Cleanup only
Fire Extinguisher No

1

Cleanup only
Factorial Component No

1

Cleanup only
Fixfoam Grenade No

1

Cleanup only
Floor Component No

1

Cleanup only
FPGA Circuit No

1

Cleanup only
Fulgurium Battery Cell No

1

Cleanup only
Greater Component No

1

Cleanup only
Green Wire No

1

100%
Handheld Electrical Monitor No

1

Cleanup only
Logbook No

1

Cleanup only
Heavy Wrench No

1

Cleanup only
Incendium Fuel Tank No

1

Cleanup only
Lever No

1

Cleanup only
Light Component Light Component No

1

Cleanup only
Light Component No

1

Cleanup only
lightcomponentround No

1

Cleanup only
Memory Component No

1

Cleanup only
Modulo Component No

1

Cleanup only
Motion Detector No

1

Cleanup only
Multiply Component No

1

Cleanup only
Not Component No

1

Cleanup only
Orange Wire No

1

100%
Or Component No

1

Cleanup only
Oscillator Component No

1

Cleanup only
Oxygen Detector No

1

Cleanup only
Plasma Cutter No

1

Cleanup only
Portable Pump No

1

Cleanup only
Exponentiation Component No

1

Cleanup only
Radio Jammer No

1

Cleanup only
Reactor PDA No

1

Cleanup only
Red Wire No

1

100%
RegEx Find Component No

1

Cleanup only
Relay Component No

1

Cleanup only
Repair Pack No

1

Cleanup only
Round Component No

1

Cleanup only
Safety Harness No

1

Cleanup only
Screwdriver No

1

Cleanup only
Dementonite Screwdriver No

1

Cleanup only
Hardened Screwdriver No

1

Cleanup only
Signal Check Component No

1

Cleanup only
Sin Component No

1

Cleanup only
Smoke Detector No

1

Cleanup only
Sprayer No

1

Cleanup only
Square Root Component No

1

Cleanup only
Subtract Component No

1

Cleanup only
Switch No

1

Cleanup only
Tan Component No

1

Cleanup only
Terminal No

1

Cleanup only
Text Display No

1

Cleanup only
Thermal Goggles No

1

Cleanup only
Toolbelt No

1

Cleanup only
Water Detector No

1

Cleanup only
Welding Fuel Tank No

4-6

100%
Welding Tool No

1

100%
Wifi Component No

1

Cleanup only
Wire No

1

Cleanup only
Wrench No

1

Cleanup only
Dementonite Wrench No

1

Cleanup only
Hardened Wrench No

1

Cleanup only
Xor Component No

1

Cleanup only