From: Mischa POSLAWSKY Date: Fri, 19 Jun 2015 14:10:24 +0000 (+0200) Subject: sc: hover weapon names X-Git-Tag: v1.8~122 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/1765f080901b6e821b148a4d6ad7b49aee5da03f?ds=sidebyside sc: hover weapon names --- diff --git a/sc-units-hots.inc.pl b/sc-units-hots.inc.pl index bba3331..6404dce 100644 --- a/sc-units-hots.inc.pl +++ b/sc-units-hots.inc.pl @@ -1568,6 +1568,7 @@ use strict; attack => [ { anti => 1, + name => "Thor's Hammer", damage => [30, 33, 36, 39], dps => [46.9, 51.6, 56.3, 61.0], cooldown => 1.28, @@ -1576,7 +1577,8 @@ use strict; }, { anti => 2, - name => 'Explosive Payload', + name => 'Javelin Missiles', +# name => 'Explosive Payload', damage => [6 .. 9], bonus => { 'light air' => [6 .. 9], @@ -1590,7 +1592,8 @@ use strict; }, { anti => 2, - name => 'High Impact Payload', + name => 'Punisher Cannons', +# name => 'High Impact Payload', damage => [24, 26, 28, 30], dps => [12 .. 15], cooldown => 2, diff --git a/sc.plp b/sc.plp index c86ef0b..df78b8e 100644 --- a/sc.plp +++ b/sc.plp @@ -145,7 +145,9 @@ sub showrange { )} keys %{ $attack->{bonus} }), ) if $attack->{bonus}; + $out .= sprintf '', $attack->{name} if $attack->{name}; $out .= showrange($damage, $maxdamage); + $out .= '' if $attack->{name}; $out .= sprintf('%s', $attack->{splash} eq 'line' ? ('linear', '×') : ('splash', '+') ) if $attack->{splash};