- my $out = showrange($row, 'attack', $area, 'damage');
- $out .= '<span class="unit-splash">+</span>' if $_->{splash};
- $out .= '<td class="val hurt hurtrel">' . showrange($row, 'attack', $area, 'dps');
+ my $out = showval($row, 'attack', $area, 'damage');
+ $out .= '<span class="unit-splash">+</span>' if $attack->{splash};
+ $attack->{dps} = $attack->{cooldown} && [
+ map { 24 * $_ / $attack->{cooldown} * ($attack->{count} // 1) }
+ map { ref $_ ? @{$_} : $_ }
+ $attack->{damage}
+ #TODO: upgrade (zergling)
+ ];
+ $out .= '<td class="val hurt hurtrel">' . showval($row, 'attack', $area, 'dps');