Шаблон:Damage calculation — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 42: | Строка 42: | ||
| transform = {{#switch:{{#var:dmgcalcrarity}} | 0 = {{#vardefine:dmgcalcstrength|690.5}} | 1 = {{#vardefine:dmgcalcstrength|1015.0}} | 2 = {{#vardefine:dmgcalcstrength|772.5}} | 3 = {{#vardefine:dmgcalcstrength|772.5}} }} }}<!-- | | transform = {{#switch:{{#var:dmgcalcrarity}} | 0 = {{#vardefine:dmgcalcstrength|690.5}} | 1 = {{#vardefine:dmgcalcstrength|1015.0}} | 2 = {{#vardefine:dmgcalcstrength|772.5}} | 3 = {{#vardefine:dmgcalcstrength|772.5}} }} }}<!-- | ||
-->{{#ifeq: {{{strikes|1}}} | 1 | {{#vardefine:dmgcalcstrikes|1}} | {{#if: {{{strikes|}}} | {{#vardefine:dmgcalcstrikes|{{{strikes}}}}} | {{#vardefine:dmgcalcstrikes|1}} }} }}<!-- | -->{{#ifeq: {{{strikes|1}}} | 1 | {{#vardefine:dmgcalcstrikes|1}} | {{#if: {{{strikes|}}} | {{#vardefine:dmgcalcstrikes|{{{strikes}}}}} | {{#vardefine:dmgcalcstrikes|1}} }} }}<!-- | ||
− | -->{{formatnum: {{#expr: {{#var:dmgcalcstrikes}} * {{#expr: {{#var:dmgcalcstrength}} * | + | -->{{#if: {{{power|}}} | {{#vardefine:power|{{{power}}}}} | {{#vardefine:power|1000}} }}<!-- |
+ | -->{{formatnum: {{#expr: {{#var:dmgcalcstrikes}} * {{#expr: {{#var:dmgcalcstrength}} * {{#var:power}} * {{{coefficient|}}} / {{#var:dmgcalcstrikes}} / 2597 round 0 }} }} }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
This template calculates damage with the given parameters. Used by {{tl|Skill fact}}. | This template calculates damage with the given parameters. Used by {{tl|Skill fact}}. | ||
Строка 55: | Строка 56: | ||
;level | ;level | ||
:Optional. Defaults to exotic. | :Optional. Defaults to exotic. | ||
+ | ;power | ||
+ | :Optional. Defaults to 1000. | ||
=== Weapon types === | === Weapon types === | ||
Строка 104: | Строка 107: | ||
{{skill icon|Flame Trap}} | {{skill icon|Flame Trap}} | ||
: {{Damage calculation|weapon=utility|coefficient=0.3}} | : {{Damage calculation|weapon=utility|coefficient=0.3}} | ||
+ | |||
+ | [[Category:Infobox subtemplates]] | ||
</noinclude> | </noinclude> |
Версия 12:01, 10 марта 2020
Содержание
Description
This template calculates damage with the given parameters. Used by {{Skill fact}}.
Parameters
- weapon
- Required. Defaults to sword.
- coefficient
- Required.
- strikes
- Optional. If more than 1 hit, damage calculation will round each hit and sum all hits (like in-game).
- level
- Optional. Defaults to exotic.
- power
- Optional. Defaults to 1000.
Weapon types
Weapon type | Unequipped | PvP | Exotic (default) | Ascended |
---|---|---|---|---|
axe dagger mace pistol scepter |
690 | 922.5 | 952.5 | 1000 |
spear trident harpoon gun aquatic short bow shortbow sword (default) |
690.5 | 922.5 | 952.5 | 1000 |
focus | 621.5 | 830 | 857.5 | 900 |
shield torch |
621 | 830.5 | 857.5 | 900 |
warhorn | 621 | 830.5 | 857 | 900 |
greatsword | 759 | 1014.5 | 1047.5 | 1100 |
hammer staff |
759.5 | 1015 | 1048 | 1100 |
longbow | 725 | 968.5 | 1000 | 1050 |
rifle | 793.5 | 1061 | 1095.5 | 1150 |
no weapon unequipped trait trait skill utility |
690.5 | 690.5 | 690.5 | 690.5 |
kit conjure tome bundle |
690.5 | 922.5 | 922.5 | 922.5 |
transform | 690.5 | 1015.0 | 772.5 | 772.5 |
Examples
{{skill icon|Rending Claws}} : {{Damage calculation|weapon=axe|coefficient=0.88|strikes=2}}Rending Claws
- 322
{{skill icon|Blurred Frenzy}} : {{Damage calculation|weapon=sword|coefficient=4.8|strikes=8}}Blurred Frenzy
- 1760
{{skill icon|Flame Trap}} : {{Damage calculation|weapon=utility|coefficient=0.3}}Flame Trap
- 80