From Dark and Darker Wiki
m (added br) |
(Changing Template to use structure that works with the new Item Data.) |
||
Line 1: | Line 1: | ||
{{#if:{{Weapon | <includeonly>{{#if:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|hitbox|height}}<!-- | ||
Height : {{Weapon | -->|<h2>Hitbox</h2><br><!-- | ||
Width : {{Weapon Data|{{PAGENAME}}| | -->Height: {{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|hitbox|height}}<br><!-- | ||
{{#if:{{#pos:{{Weapon | -->Width: {{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|hitbox|width}}<br><!-- | ||
<br><br>Weapon's hitbox doesn't necessarily determine a weapon's reach due to different attack animations. Thus, shorter weapons can have better reach than longer weapons. | -->Depth: {{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|hitbox|depth}} }}<!-- | ||
-->{{#if:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|attacks|primary attack 1|damagetype}}{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|attacks|secondary attack 1|damagetype}}{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|attacks|riposte attack 1|damagetype}}<!-- | |||
<br>[[Impact Zones]] of [[{{PAGENAME}}]]: | -->|{{#arraydefine:impactzones|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|attacks|Primary Attack 1|impactzones}} }}<!-- | ||
<div style="display:flex;align-items: center;"> | -->{{#if:{{#pos:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|types|all}}|Crossbow}}{{#pos:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|types|all}}|Bow}}<!-- | ||
<div> | -->||<br><br>Weapon's hitbox doesn't necessarily determine a weapon's reach due to different attack animations. Thus, shorter weapons can have better reach than longer weapons.<!-- | ||
[[File:{{PAGENAME}} Hitbox.png|link=|x300px]] | --><br>[[Impact Zones]] of [[{{{1|{{PAGENAME}}}}}]]:<!-- | ||
</div> | --><div style="display:flex;align-items: center;"><!-- | ||
<div><span style="color:green;">Green Zone deals {{#arrayindex:impactzones |0 }} damage</span>{{#ifexpr:{{ #arraysize:impactzones }} > 1|<br><br><span style="color:orange;">Orange Zone deals {{#arrayindex:impactzones |1 }} damage</span>}}{{#ifexpr:{{ #arraysize:impactzones }} > 2|<br><br><span style="color:red;>Red Zone deals {{#arrayindex:impactzones |2 }} damage</span>}}</div> | --><div><!-- | ||
-->[[File:{{{1|{{PAGENAME}}}}} Hitbox.png|link=|x300px]]<!-- | |||
</div>}}{{#if:{{Weapon | --></div><!-- | ||
<br> | --><div><!-- | ||
'''Impact Power''' of {{PAGENAME}}: {{Weapon | --><span style="color:green;"><!-- | ||
-->Green Zone deals {{#arrayindex:impactzones|0}} damage<!-- | |||
Impact power helps with breaking crates, barricades or any other breakables in game. Higher the power faster something breaks. Impact power also affects shield blocking. If attacking weapon's impact power is higher than shield's impact power, shield holder staggers, and vice versa. Impact zone scaling affects impact power. }} | --></span><!-- | ||
}} | -->{{#ifexpr:{{#arraysize:impactzones}} > 1<!-- | ||
-->|<br><br><span style="color:orange;"><!-- | |||
-->Orange Zone deals {{#arrayindex:impactzones|1}} damage<!-- | |||
--></span>}}<!-- | |||
-->{{#ifexpr:{{#arraysize:impactzones}} > 2<!-- | |||
-->|<br><br><span style="color:red;">Red Zone deals {{#arrayindex:impactzones|2}} damage</span>}}<!-- | |||
--></div><!-- | |||
--></div>}}<!-- | |||
-->{{#if:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|attacks|primary attack 1|impactpower}}<!-- | |||
-->|<br><!-- | |||
-->'''Impact Power''' of {{{1|{{PAGENAME}}}}}: {{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|attacks|primary attack 1|impactpower}}<br><!-- | |||
-->Impact power helps with breaking crates, barricades or any other breakables in game. Higher the power faster something breaks. Impact power also affects shield blocking. If attacking weapon's impact power is higher than shield's impact power, shield holder staggers, and vice versa. Impact zone scaling affects impact power. }} }}</includeonly><noinclude><table class="wikitable"> | |||
<tr> | |||
<th>Code</th> | |||
<th>Preview</th> | |||
</tr> | |||
<tr> | |||
<td style="padding: 20px 30px;"> | |||
<pre>{{GenerateHitbox|Arming Sword}}</pre> | |||
</td> | |||
<td style="padding: 20px 30px;"> | |||
{{GenerateHitbox|Arming Sword}} | |||
</td> | |||
</tr> | |||
</table></noinclude> |
Revision as of 04:09, 15 March 2024
Code | Preview |
---|---|
{{GenerateHitbox|Arming Sword}} |