Template:Armor: Difference between revisions
From Vintage Story Wiki
VeryGoodDog (talk | contribs) (Armor infobox from 1.11 :)) |
VeryGoodDog (talk | contribs) m (bug fix and example template) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left|right}};" | {|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> | ||
Line 14: | Line 14: | ||
| '''Flat''' || {{{FlatDamageReduction}}} | | '''Flat''' || {{{FlatDamageReduction}}} | ||
|- | |- | ||
| '''Protection Tier''' || {{{ | | '''Protection Tier''' || {{{ProtectionTier}}} | ||
{{#if: {{{HighDamageTierResistant|}}} | {{#!: | {{#if: {{{HighDamageTierResistant|}}} | {{#!: | ||
|- | |- | ||
Line 57: | Line 57: | ||
<noinclude> | <noinclude> | ||
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. | ||
{{Armor | |||
|Name=Test | |||
|Image=Help | |||
|Durability=100 | |||
|RelativeProtection=0.6 | |||
|FlatDamageReduction=0.6 | |||
|ProtectionTier=0 | |||
}} | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- |
Revision as of 18:36, 22 December 2019
Template for armors. More or less a value copy from the armors.json in the assets.
Test | |
100px | |
Durability | 100 |
Protection | |
Percent protection | {{{PercentProtection}}}% |
Flat Damage Reduction (HP) | 0.6 |
Protection Tier | 0 |
Protection Losses | |
Relative | 0.03, 0.15 |
Flat | 0.1, 0.2 |
Armors |
Parameter | Required or Optional, default if applicable | Example |
---|---|---|
Name | Required | Sewn Linen |
Image | Required | [[File:Grid Sewn Linen Armor.png]] |
Durability | Required | 100 |
RelativeProtection | Required | 0.6 |
FlatDamageReduction | Required | 0.6 |
ProtectionTier | Required | 0 |
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 |
RangedWeaponsAcc | Optional | -0.03 |
RangedWeaponsSpeed | Optional | -0.07 |
WalkSpeed | Optional | -0.5 |
HealingEffectivness | Optional | -0.5 |
HungerRate | Optional | -0.07 |