Template:Infobox hero: Difference between revisions

Jump to navigation Jump to search
added "Hit Once" category
specified "HitOnce" only for spreadshot weapons
Line 256: Line 256:
{{lang cat|Heroes}}
{{lang cat|Heroes}}
{{lang cat|{{#var:hero_en}}}}
{{lang cat|{{#var:hero_en}}}}
{{#ifexpr:{{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} > 1|{{lang cat|Heroes with spreadshot weapons}}}}
{{#ifexpr:{{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} > 1|{{lang cat|Heroes with spreadshot weapons}}
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|HitOnceAcrossAllBullets}}|true|{{lang cat|Heroes with single damage spreadshot weapons}}}}}}
{{#ifexpr:{{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} > 1|{{lang cat|Heroes with burst weapons}}}}
{{#ifexpr:{{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} > 1|{{lang cat|Heroes with burst weapons}}}}
{{#ifexpr:({{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} <= 1 and {{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} <= 1)|{{lang cat|Heroes with automatic weapons}}}}
{{#ifexpr:({{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} <= 1 and {{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} <= 1)|{{lang cat|Heroes with automatic weapons}}}}
{{#if:{{{crit_reduction|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|CritDamageReceivedPercent}}|{{lang cat|Heroes with modified crit resistance}}}}
{{#if:{{{crit_reduction|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|CritDamageReceivedPercent}}|{{lang cat|Heroes with modified crit resistance}}}}
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ReloadSingle}}|true|{{lang cat|Heroes with single reload weapons}}}}
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|ReloadSingle}}|true|{{lang cat|Heroes with single reload weapons}}}}
{{#ifeq:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|HitOnceAcrossAllBullets}}|true|{{lang cat|Heroes with single damage spreadshot weapons}}}}
{{#ifexpr:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|CritDamageBonusPercent|3}} != 0|{{lang cat|Heroes with modified crit scale}}}}
{{#ifexpr:{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|CritDamageBonusPercent|3}} != 0|{{lang cat|Heroes with modified crit scale}}}}
{{#if:{{{bullet_resist|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|BulletResist}}|{{lang cat|Heroes with modified bullet resist}}}}
{{#if:{{{bullet_resist|}}}{{#invoke:HeroData|hero_has_stat|{{#var:hero_key}}|BulletResist}}|{{lang cat|Heroes with modified bullet resist}}}}