Template:Legacy Items Infobox: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
(Categories) |
||
(39 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude> | <noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Declaration Templates]][[Category:Cargo Storage Templates]][[Category:Infobox Templates]]</noinclude> | ||
<includeonly><onlyinclude>{| class="infobox responsive-table" align="right" | <includeonly><onlyinclude>{| class="infobox responsive-table" align="right" | ||
! colspan="2" | {{{name}}} | ! colspan="2" | {{{name}}} | ||
|- | |- | ||
| colspan="2" | [[File:{{{icon|Legacy {{{name}}}.png}}}|{{{iconsize| | | colspan="2" | [[File:{{{icon|Legacy {{{name}}}.png}}}|{{{iconsize|}}}px|center]] | ||
|- | |- | ||
{{#if:{{{description|}}}| | {{#if:{{{description|}}}| | ||
{{!}} colspan="2" style="text-align:center" {{!}} ''{{{description}}}''}} | {{!}} colspan="2" style="text-align:center" {{!}} "''{{{description}}}''"}} | ||
|- | |- | ||
{{ | ! colspan="2" {{!}} General | ||
|- | |||
| style="width:50%;text-align:right" | '''Max Condition''' | |||
| style="width:50%" | {{{condition|100}}} | |||
|- | |||
| style="text-align:right" | '''Interaction Threshold''' | |||
| {{#expr:{{{pickdistance|100}}}/100}} meter{{#ifeq:{{{pickdistance|100}}}|100||s}} | |||
|- | |- | ||
{{#if:{{{price|}}}| | {{#if:{{{price|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Price''' | {{!}} style="text-align:right" {{!}} '''Price''' | ||
{{!}} {{{price}}} | {{!}} {{{price}}} mark{{#ifeq:{{{price}}}|1||s}}}} | ||
|- | |- | ||
{{#if:{{{cargocontainer|}}}| | {{#if:{{{cargocontainer|}}}| | ||
Line 27: | Line 32: | ||
{{!}} {{{usedby}}}}} | {{!}} {{{usedby}}}}} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{uses|}}}| | ||
{{!}} style="text-align:right" {{!}} ''' | {{!}} style="text-align:right" {{!}} '''Required Item(s)''' | ||
{{!}} {{{ | {{!}} {{{uses}}}}} | ||
|- | |- | ||
{{#if:{{{impacttolerance|}}}| | {{#if:{{{impacttolerance|}}}| | ||
Line 35: | Line 40: | ||
{{!}} {{{impacttolerance}}}}} | {{!}} {{{impacttolerance}}}}} | ||
|- | |- | ||
{{#if:{{{damage|}}}{{{structuredamage|}}}{{{explosionrange|}}}| | {{#if:{{{wearableslots|}}}{{{obstructvision|}}}{{{hideface|}}}{{{lockhands|}}}{{{burnmultiplier|}}}{{{bluntmultiplier|}}}{{{bluntbleedingmultiplier|}}}{{{slashmultiplier|}}}{{{slashbleedingmultiplier|}}}{{{pressureprotection|}}}{{{speedmultiplier|}}}{{{lowpassmultiplier|}}}| | ||
! colspan="2" {{!}} Wearable}} | |||
|- | |||
{{#if:{{{wearableslots|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Worn On''' | |||
{{!}} {{{wearableslots}}}}} | |||
|- | |||
{{#ifeq:{{#rpos:{{{wearableslots|}}}|Face}}{{#rpos:{{{wearableslots|}}}|Head}}|-1-1|| | |||
{{!}} style="text-align:right" {{!}} '''Obstructs Vision?''' | |||
{{!}} {{#switch:{{lc:{{{obstructvision|false}}}}}|true|yes=Yes|#default=No}}}} | |||
|- | |||
{{#ifeq:{{#rpos:{{{wearableslots|}}}|Face}}{{#rpos:{{{wearableslots|}}}|Head}}|-1-1|| | |||
{{!}} style="text-align:right" {{!}} '''Conceals Identity?''' | |||
{{!}} {{#switch:{{lc:{{{hideface|false}}}}}|true|yes=Yes|#default=No}}}} | |||
|- | |||
{{#ifeq:{{#rpos:{{{wearableslots|}}}|Hand}}|-1|| | |||
{{!}} style="text-align:right" {{!}} '''Locks Inventory?''' | |||
{{!}} {{#switch:{{lc:{{{lockhands|false}}}}}|true|yes=Yes|#default=No}}}} | |||
|- | |||
{{#if:{{{burnmultiplier|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Burn Damage Resistance''' | |||
{{!}} {{#expr:(1-{{{burnmultiplier}}})*100}}%}} | |||
|- | |||
{{#if:{{{bluntmultiplier|}}}{{{bluntbleedingmultiplier|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Blunt Damage Resistance''' | |||
{{!}} {{#expr:(1-{{{bluntmultiplier}}})*100}}% <nowiki>|</nowiki> <span class="explain" title="Bleeding resistance">{{#expr:(1-{{{bluntbleedingmultiplier|1}}})*100}}%</span>}} | |||
|- | |||
{{#if:{{{slashmultiplier|}}}{{{slashbleedingmultiplier|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Slash Damage Resistance''' | |||
{{!}} {{#expr:(1-{{{slashmultiplier}}})*100}}% <nowiki>|</nowiki> <span class="explain" title="Bleeding resistance">{{#expr:(1-{{{slashbleedingmultiplier|1}}})*100}}%</span>}} | |||
|- | |||
{{#if:{{{pressureprotection|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Pressure Protection''' | |||
{{!}} {{{pressureprotection}}}%}} | |||
|- | |||
{{#if:{{{speedmultiplier|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Movement Speed''' | |||
{{!}} {{#expr:{{{speedmultiplier}}}*100}}%}} | |||
|- | |||
{{#if:{{{lowpassmultiplier|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Sound Muffling''' | |||
{{!}} {{#expr:{{{lowpassmultiplier}}}*100}}%}} | |||
|- | |||
{{#if:{{{damage|}}}{{{explosiondamage|}}}{{{bleeding|}}}{{{explosionbleeding|}}}{{{stun|}}}{{{explosionstun|}}}{{{structuredamage|}}}{{{explosionstructuredamage|}}}{{{explosionrange|}}}| | |||
! colspan="2" {{!}} Damage}} | ! colspan="2" {{!}} Damage}} | ||
|- | |- | ||
{{#if:{{{damage|}}}| | {{#if:{{{damage|}}}| | ||
{{!}} style="text-align:right" {{!}} '''{{#if:{{{damagetype|}}}| | {{!}} style="text-align:right" {{!}} '''{{#if:{{{damagetype|}}}|{{ucfirst:{{{damagetype}}}}} }}Damage''' | ||
{{!}} {{{damage}}}}} | {{!}} {{{damage}}}}} | ||
|- | |- | ||
{{#if:{{{explosiondamage|}}}| | {{#if:{{{explosiondamage|}}}| | ||
{{!}} style="text-align:right" {{!}} '''{{#if:{{{explosiondamagetype|}}}| | {{!}} style="text-align:right" {{!}} '''{{#if:{{{explosiondamagetype|}}}|{{ucfirst:{{{explosiondamagetype}}}}} }}Explosion Damage''' | ||
{{!}} {{{explosiondamage}}}}} | {{!}} {{{explosiondamage}}}}} | ||
|- | |- | ||
Line 72: | Line 120: | ||
{{#if:{{{explosionrange|}}}| | {{#if:{{{explosionrange|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Explosion Range''' | {{!}} style="text-align:right" {{!}} '''Explosion Range''' | ||
{{!}} {{#expr:{{{explosionrange}}}/100}} | {{!}} {{#expr:{{{explosionrange}}}/100}} meter{{#ifeq:{{{explosionrange}}}|100||s}}}} | ||
|- | |- | ||
{{#if:{{{beamrange|}}}| | {{#if:{{{structurefixamount|}}}{{{limbfixamount|}}}{{{beamrange|}}}| | ||
! colspan="2" {{!}} Repair Tool}} | ! colspan="2" {{!}} Repair Tool}} | ||
|- | |- | ||
Line 87: | Line 135: | ||
{{#if:{{{beamrange|}}}| | {{#if:{{{beamrange|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Beam Range''' | {{!}} style="text-align:right" {{!}} '''Beam Range''' | ||
{{!}} {{#expr:{{{beamrange}}}/100}} | {{!}} {{#expr:{{{beamrange}}}/100}} meter{{#ifeq:{{{beamrange}}}|100||s}}}} | ||
|- | |- | ||
{{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}| | {{#if:{{{propulsionforce|}}}{{{propulsiontype|}}}| | ||
! colspan="2" {{!}} Propulsion}} | |||
|- | |||
{{#if:{{{propulsionforce|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Force''' | |||
{{!}} {{{propulsionforce}}}}} | |||
|- | |||
{{#if:{{{propulsiontype|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Usable In''' | |||
{{!}} {{#ucfirst:{{{propulsiontype}}}}}}} | |||
|- | |||
{{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}{{{fireproof|}}}| | |||
! colspan="2" {{!}} Inventory}} | ! colspan="2" {{!}} Inventory}} | ||
|- | |- | ||
Line 104: | Line 163: | ||
{{!}} {{{containabletags|}}}}} | {{!}} {{{containabletags|}}}}} | ||
|- | |- | ||
{{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}| | {{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}{{{fireproof|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Waterproof''' | {{!}} style="text-align:right" {{!}} '''Waterproof''' | ||
{{!}} {{#if:{{{waterproof|}}}|Yes|No}}}} | {{!}} {{#if:{{{waterproof|}}}|Yes|No}}}} | ||
|- | |||
{{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}{{{fireproof|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Fireproof''' | |||
{{!}} {{#if:{{{fireproof|}}}|Yes|No}}}} | |||
|- | |||
{{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}| | |||
! colspan="2" {{!}} Light{{#if:{{{light2type|}}}{{{light2range|}}}{{{light2color|}}}| 1}}}} | |||
|- | |||
{{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Type''' | |||
{{!}} {{ucfirst:{{{light1type|point}}}}}}} | |||
|- | |||
{{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Range''' | |||
{{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}} | |||
|- | |||
{{#if:{{{light1color|}}}|{{#vardefine:light1color|{{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}}}} | |||
{{!}} style="text-align:right" {{!}} '''Color (RGBA)''' | |||
{{!}} style="background:black;color:rgba({{#var:light1color}})" {{!}} '''{{#replace:{{{light1color}}}|,|, }}'''}} | |||
|- | |||
{{#if:{{{wifirange|}}}{{{channel|}}}{{{chatlink|}}}| | |||
! colspan="2" {{!}} Wi-Fi}} | |||
|- | |||
{{#if:{{{wifirange|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Range''' | |||
{{!}} {{#expr:{{{wifirange}}}/100}} meter{{#ifeq:{{{wifirange}}}|100||s}}}} | |||
|- | |||
{{#if:{{{channel|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Channel''' | |||
{{!}} {{{channel}}}}} | |||
|- | |||
{{#if:{{{wifirange|}}}{{{channel|}}}{{{chatlink|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Displayed in Chat?''' | |||
{{!}} {{#switch:{{lc:{{{chatlink|false}}}}}|true|yes=Yes|#default=No}}}} | |||
|- | |- | ||
{{#if:{{{fabricatortime|}}}{{{medicalfabricatortime|}}}{{{deconstructortime|}}}| | {{#if:{{{fabricatortime|}}}{{{medicalfabricatortime|}}}{{{deconstructortime|}}}| | ||
Line 113: | Line 206: | ||
{{#if:{{{fabricatortime|}}}| | {{#if:{{{fabricatortime|}}}| | ||
{{!}} style="text-align:right" {{!}} '''[[Fabricator (Legacy)|Fabricator]]''' | {{!}} style="text-align:right" {{!}} '''[[Fabricator (Legacy)|Fabricator]]''' | ||
{{!}} {{#if:{{{ | {{!}} {{#if:{{{fabricatorskilllevel|}}}|[[File:Mechanic Job Icon.png|32px]] [[Skills (Legacy)#Construction|Construction]] {{{fabricatorskilllevel}}}<br>}}{{{fabricatormaterials}}}<br>[[File:Time.png|32px]] {{{fabricatortime}}} second{{#ifeq:{{{fabricatortime}}}|1||s}}}} | ||
|- | |- | ||
{{#if:{{{medicalfabricatortime|}}}| | {{#if:{{{medicalfabricatortime|}}}| | ||
{{!}} style="text-align:right" {{!}} '''[[Fabricator (Legacy)|Fabricator]]''' | {{!}} style="text-align:right" {{!}} '''[[Medical Fabricator (Legacy)|Medical Fabricator]]''' | ||
{{!}} {{#if:{{{medicalfabricatorskill|}}}| | {{!}} {{#if:{{{medicalfabricatorskill|}}}|[[File:Job Icon Medical Doctor.png|32px]] [[Skills (Legacy)#Medical|Medical]] {{{medicalfabricatorskilllevel}}}<br>}}{{{medicalfabricatormaterials}}}<br>[[File:Time.png|32px]] {{{medicalfabricatortime}}} second{{#ifeq:{{{medicalfabricatortime}}}|1||s}}}} | ||
|- | |- | ||
{{#if:{{{deconstructortime|}}}| | {{#if:{{{deconstructortime|}}}| | ||
{{!}} style="text-align:right" {{!}} '''[[Deconstructor (Legacy)|Deconstructor]]''' | {{!}} style="text-align:right" {{!}} '''[[Deconstructor (Legacy)|Deconstructor]]''' | ||
{{!}} {{# | {{!}} [[File:Time.png|32px]] {{{deconstructortime}}} second{{#ifeq:{{{deconstructortime}}}|1||s}}{{#if:{{{deconstructormaterials|}}}|<br>{{{deconstructormaterials}}}}}}} | ||
|- | |- | ||
| colspan="2" style="padding:0px" | | |||
{| class="responsive-table mw-collapsible mw-collapsed" style="width:100%" | |||
! colspan="2" | Technical | ! colspan="2" | Technical | ||
|- | |- | ||
| style="text-align:right | | style="width:50%;text-align:right" | Categor{{#if:{{{category2|}}}{{{subcategory|}}}|ies|y}} | ||
| style="width:50%" | [[:Category:{{{category|Misc}}} (Legacy)|{{{category|Misc}}}]] | | style="width:50%" | [[:Category:{{{category|Misc}}} (Legacy)|{{{category|Misc}}}]]{{#if:{{{category2|}}}|,[[:Category:{{{category2}}} (Legacy)|{{{category2}}}]]}} | ||
|- | |- | ||
{{#if:{{{tags|}}}| | {{#if:{{{tags|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Tags''' | {{!}} style="text-align:right" {{!}} '''Tags''' | ||
{{!}} {{{tags}}}}} | {{!}} {{{tags}}}}} | ||
|} | |||
|}</onlyinclude></includeonly> | |}</onlyinclude></includeonly> |
Latest revision as of 22:07, 31 March 2023
Basic
Field | Description | Example | Expected | Default |
---|---|---|---|---|
name | The name of the item. | Thermal Artifact | String | |
icon | The icon of the item. | Legacy Wrench.png | File name | Legacy {{{name}}}.png
|
iconsize | The size of the icon, in px. | x64 | ##, x##, ##x## | x128 |
description | The item's description. | Good for repairing electrical items. | String |
General
Field | Description | Example | Expected | Default |
---|---|---|---|---|
price | The selling & buying price of the item. | 500 | Number | |
usedby | Other items/installations that use this item as ammunition. | {{lhl|Railgun Loader|32}} |
{{lhl|[Item/Installation Name]|32}} |
|
ammunition | Other item(s) that are required by this item to function. | {{lhl|Revolver Round|32}} |
{{lhl|[Item Name]|32}} |
|
impacttolerance | The required speed before OnImpact type status effects are triggered. | 8 | Number |
Crafting
Field | Description | Example | Expected | Default |
---|---|---|---|---|
fabricatorskill | The required skill and level to craft the item quickly. | Mechanical 20 | Helm ##, Weapons ##, Medical ##, Electrical ##, Mechanical ## | |
fabricatormaterials | The required materials to craft the item. | {{lhl|Steel Bar|32}} |
{{lhl|[Item Name]|32}} |
|
fabricatortime | The required time (in seconds) to craft the item. | 40 | Number | |
medicalfabricatorskill | The required skill and level to craft the item quickly. | Medical 20 | Helm ##, Weapons ##, Medical ##, Electrical ##, Mechanical ## | |
medicalfabricatormaterials | The required materials to craft the item. | {{lhl|Iron Powder|32}} |
{{lhl|[Item Name]|32}} |
|
medicalfabricatortime | The required time (in seconds) to craft the item. | 40 | Number | |
deconstructormaterials | The output materials gained from deconstructing the item. | {{lhl|Iron Powder|32}} |
{{lhl|[Item Name]|32}} |
|
deconstructortime | The required time (in seconds) to deconstruct the item. | 40 | Number |
Repair Tool
Field | Description | Example | Expected | Default |
---|---|---|---|---|
structurefixamount | The amount of hitpoints repaired per second for structures. | 2.0 | Number | |
limbfixamount | The amount of hitpoints healed per second for limbs. | -5.0 | Number | |
beamrange | The range of the repair tool's beam. | 600 | Number |
Technical
Field | Description | Example | Expected | Default |
---|---|---|---|---|
category | The category of the item. | Alien | Structure, Decorative, Machine, Medical, Weapon, Equipment, Electrical, Material, Alien, Misc | Misc |
tags | The tags of the item. | alien,weapon | CSV list |
The above documentation is transcluded from Template:Legacy Items Infobox/doc. (edit | history)