Template:Armor: Difference between revisions

From Vintage Story Wiki
(Armor infobox from 1.11 :))
 
No edit summary
Tag: Manual revert
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude><languages /></noinclude>
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left|right}};"
<includeonly>{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left;margin-right:2em|right}};"
|-
|-
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|-
|-
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| {{{Image}}}
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| [[{{{Image}}}|100px]]
|-
|-
| '''Durability''' || {{{Durability}}}
| '''<translate><!--T:1--> Durability</translate>''' || {{{Durability}}}
|-
|-
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''Protection'''</font>
{{#if: {{{Temp|}}} | {{#!:
{{Item/Fuel
|Temp={{{Temp}}}
|Duration={{{Duration}}}
}}
}} }}
|-
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''<translate><!--T:2--> Protection</translate>'''</font>
|-
|-
| '''Relative''' || {{{RelativeProtection}}}
| '''<translate><!--T:3--> Percent protection</translate>''' || {{{PercentProtection}}}%
{{#if: {{{FlatDamageReduction|}}} | {{#!:
|-
|-
| '''Flat''' || {{{FlatDamageReduction}}}
| '''<translate><!--T:4--> Flat Damage Reduction (HP)</translate>''' || {{{FlatDamageReduction}}}
}} }}
|-
|-
| '''Protection Tier''' || {{{Protection Tier}}}
| '''<translate><!--T:5--> Protection Tier</translate>''' || {{{ProtectionTier}}}
{{#if: {{{HighDamageTierResistant|}}} | {{#!:
{{#if: {{{HighDamageTierResistant|}}} | {{#!:
|-
|-
|colspan="2"| High Damage Tier Resistant
|colspan="2"|<translate><!--T:17--> High Damage Tier Resistant</translate>
}} }}
}} }}
|-
|-
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;" |<font color="white">'''Protection Losses'''</font>
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;" |<font color="white">'''<translate><!--T:6--> Protection Losses</translate>'''</font>
|-
|-
| '''Relative''' || {{{PerTierRelativeProtectionLossZero|0.03}}}, {{{PerTierRelativeProtectionLossOne|0.15}}}
| '''<translate><!--T:7--> Relative</translate>''' || {{{PerTierRelativeProtectionLossZero|0.03}}}, {{{PerTierRelativeProtectionLossOne|0.15}}}
|-
|-
| '''Flat''' || {{{PerTierFlatDamageReductionLossZero|0.1}}}, {{{PerTierFlatDamageReductionLossOne|0.2}}}
| '''<translate><!--T:8--> Flat</translate>''' || {{{PerTierFlatDamageReductionLossZero|0.1}}}, {{{PerTierFlatDamageReductionLossOne|0.2}}}
<!-- This sucks -->
<!-- This sucks -->
{{#if: {{{RangedWeaponsAcc|}}}{{{RangedWeaponsSpeed|}}}{{{WalkSpeed|}}}{{{HealingEffectivness|}}}{{{HungerRate|}}} |
{{#if: {{{RangedWeaponsAcc|}}}{{{RangedWeaponsSpeed|}}}{{{WalkSpeed|}}}{{{HealingEffectivness|}}}{{{HungerRate|}}} |
{{#!:
{{#!:
|-
|-
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;" |<font color="white">'''Stat Modifiers'''</font>
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;" |<font color="white">'''<translate><!--T:9--> Stat Modifiers</translate>'''</font>
{{#if: {{{RangedWeaponsAcc|}}} | {{#!:
{{#if: {{{HealingEffectiveness|}}} | {{#!:
|-
|-
| '''Ranged Weapons Accuracy''' || {{{RangedWeaponsAcc}}}
| '''<translate><!--T:10--> Healing Effectiveness</translate>''' || {{{HealingEffectiveness}}}%
}} }}
}} }}
{{#if: {{{RangedWeaponsSpeed|}}} | {{#!:
{{#if: {{{HungerRate|}}} | {{#!:
|-
|-
| '''Ranged Weapons Speed''' || {{{RangedWeaponsSpeed}}}
| '''<translate><!--T:11--> Hunger Rate</translate>''' || {{{HungerRate}}}%
}} }}
}} }}
{{#if: {{{WalkSpeed|}}} | {{#!:
{{#if: {{{RangedWeaponsAcc|}}} | {{#!:
|-
|-
| '''Walk Speed''' || {{{WalkSpeed}}}
| '''<translate><!--T:12--> Ranged Weapons Accuracy</translate>''' || {{{RangedWeaponsAcc}}}%
}} }}
}} }}
{{#if: {{{HealingEffectivness|}}} | {{#!:
{{#if: {{{RangedWeaponsSpeed|}}} | {{#!:
|-
|-
| '''Healing Effectivness''' || {{{HealingEffectivness}}}
| '''<translate><!--T:13--> Ranged Weapons Charge Time</translate>''' || {{{RangedWeaponsSpeed}}}%
}} }}
}} }}
{{#if: {{{HungerRate|}}} | {{#!:
{{#if: {{{WalkSpeed|}}} | {{#!:
|-
|-
| '''Hunger Rate''' || {{{HungerRate}}}
| '''<translate><!--T:14--> Walk Speed</translate>''' || {{{WalkSpeed}}}%
}} }}
}} }}
}} }}
}} }}
|-
|-
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Armor|<font color="white">'''<translate><!--T:15--> Armors</translate>'''</font>]]
|}{{#if:{{{NoBreak|}}}||{{-}} }}
|}{{#if:{{{NoBreak|}}}||{{-}} }}
</includeonly>
</includeonly><noinclude>
<noinclude>
<div style="float:right;">
{{Armor
|Name=<translate><!--T:18--> Plate helmet (Steel)</translate>
|Image=File:Armor-head-plate-steel.png
|Durability=5500
|PercentProtection=97
|FlatDamageReduction=1.8
|ProtectionTier=4
|HealingEffectiveness=-33
|HungerRate=+24
|RangedWeaponsAcc=-10
|RangedWeaponsSpeed=+20
|WalkSpeed=-14
|HighDamageTierResistant=true
|FloatRight=yes
|NoBreak=yes
}}
</div>
<div style="float:right;">
{{Armor
|Name=<translate><!--T:19--> Improvised body armor (Wood)</translate>
|Image=File:Armor-body-improvised-wood.png
|Durability=75
|Temp=600
|Duration=10
|PercentProtection=60
|ProtectionTier=0
|FloatRight=yes
|NoBreak=yes
}}
</div>
<translate>
 
<!--T:16-->
Template for armors. More or less a value copy from the armors.json in the assets.
Template for armors. More or less a value copy from the armors.json in the assets.
</translate>
{| class="wikitable"
{| class="wikitable"
|-
|-
! Parameter !! Required or Optional, default if applicable !! Example
! <translate><!--T:20--> Parameter</translate> !! <translate><!--T:21--> Required or Optional, default if applicable</translate> !! <translate><!--T:22--> Example</translate>
|-
| ''Name'' || <translate><!--T:23--> Required</translate> || Plate helmet (Steel)
|-
| ''Image'' || <translate><!--T:24--> Required</translate> || <nowiki>File:Armor-head-plate-steel.png</nowiki>
|-
|-
| ''Name'' || Required || Sewn Linen
| ''Durability'' || <translate><!--T:25--> Required</translate> || 5500
|-
|-
| ''Image'' || Required || <nowiki>[[File:Grid Sewn Linen Armor.png]]</nowiki>
| ''Temp'' || <translate><!--T:26--> Optionnal</translate> || 600
|-
|-
| ''Durability'' || Required || 100
| ''Duration'' || <translate><!--T:27--> Required if ''Temp''</translate> || 10
|-
|-
| ''RelativeProtection'' || Required || 0.6
| ''PercentProtection'' || <translate><!--T:28--> Required</translate> || 97
|-
|-
| ''FlatDamageReduction'' || Required || 0.6
| ''FlatDamageReduction'' || <translate><!--T:29--> Required</translate> || 1.8
|-
|-
| ''ProtectionTier'' || Required || 0
| ''ProtectionTier'' || <translate><!--T:30--> Required</translate> || 4
|-
|-
| ''HighDamageTierResistant'' || Optional || true
| ''HighDamageTierResistant'' || <translate><!--T:31--> Optional</translate> || true
|-
|-
| ''PerTierRelativeProtectionLossZero'' || Optional, 0.03 || 0.15
| ''PerTierRelativeProtectionLossZero'' || <translate><!--T:32--> Optional</translate>, 0.03 || 0.15
|-
|-
| ''PerTierRelativeProtectionLossOne'' || Optional, 0.15 || 0.03
| ''PerTierRelativeProtectionLossOne'' || <translate><!--T:33--> Optional</translate>, 0.15 || 0.03
|-
|-
| ''PerTierFlatDamageReductionLossZero'' || Optional, 0.1 || 0.4
| ''PerTierFlatDamageReductionLossZero'' || <translate><!--T:34--> Optional</translate>, 0.1 || 0.4
|-
|-
| ''PerTierFlatDamageReductionLossOne'' || Optional, 0.2 || 0.5
| ''PerTierFlatDamageReductionLossOne'' || <translate><!--T:35--> Optional</translate>, 0.2 || 0.5
|-
|-
| ''RangedWeaponsAcc'' || Optional || -0.03
| ''HealingEffectiveness'' || <translate><!--T:36--> Optional</translate> || -33
|-
|-
| ''RangedWeaponsSpeed'' || Optional || -0.07
| ''HungerRate'' || <translate><!--T:37--> Optional</translate> || +24
|-
|-
| ''WalkSpeed'' || Optional || -0.5
| ''RangedWeaponsAcc'' || <translate><!--T:38--> Optional</translate> || -10
|-
|-
| ''HealingEffectivness'' || Optional || -0.5
| ''RangedWeaponsSpeed'' || <translate><!--T:39--> Optional</translate> || +20
|-
|-
| ''HungerRate'' || Optional || -0.07
| ''WalkSpeed'' || <translate><!--T:40--> Optional</translate> || -14
|}
|}


[[Category:Infoboxes]]
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 17:40, 18 August 2023

Other languages:
Plate helmet (Steel)
Armor-head-plate-steel.png
Durability 5500
Protection
Percent protection 97%
Flat Damage Reduction (HP) 1.8
Protection Tier 4
High Damage Tier Resistant
Protection Losses
Relative 0.03, 0.15
Flat 0.1, 0.2
Stat Modifiers
Healing Effectiveness -33%
Hunger Rate +24%
Ranged Weapons Accuracy -10%
Ranged Weapons Charge Time +20%
Walk Speed -14%
Armors
Improvised body armor (Wood)
Armor-body-improvised-wood.png
Durability 75
Fuel
Temperature 600°C
Duration 10 s
Protection
Percent protection 60%
Protection Tier 0
Protection Losses
Relative 0.03, 0.15
Flat 0.1, 0.2
Armors

Template for armors. More or less a value copy from the armors.json in the assets.

Parameter Required or Optional, default if applicable Example
Name Required Plate helmet (Steel)
Image Required File:Armor-head-plate-steel.png
Durability Required 5500
Temp Optionnal 600
Duration Required if Temp 10
PercentProtection Required 97
FlatDamageReduction Required 1.8
ProtectionTier Required 4
HighDamageTierResistant Optional true
PerTierRelativeProtectionLossZero Optional, 0.03 0.15
PerTierRelativeProtectionLossOne Optional, 0.15 0.03
PerTierFlatDamageReductionLossZero Optional, 0.1 0.4
PerTierFlatDamageReductionLossOne Optional, 0.2 0.5
HealingEffectiveness Optional -33
HungerRate Optional +24
RangedWeaponsAcc Optional -10
RangedWeaponsSpeed Optional +20
WalkSpeed Optional -14