attack => [
{
anti => 3,
- dps => [17, undef, undef, 49],
+ dps => [17, undef, undef, 25],
count => 4,
range => 8,
},
upgrade => [
{
name => 'Carrier Capacity',
- damage => {
- count => 8-4,
- },
+ attack => [
+ {
+ dps => [17, undef, undef, 24],
+ count => 8-4,
+ },
+ ],
},
],
counter => ['wraith', 'corsair', 'scourge'],
$maxdamage += ($upattack->{upgrade} // $attack->{upgrade}) * 3;
my $out = '<td class="val hurt">';
- $out .= "<small>$attack->{count}× </small>" if $attack->{count} > 1;
+ $out .= sprintf('<small>%s× </small>',
+ showrange($attack->{count}, $upattack->{count}),
+ ) if $attack->{count} > 1;
$out .= '<span class="unit-l" title="explosive">*</span>'
if $attack->{type} eq 'explosive';
$out .= '<span class="unit-s" title="implosive">~</span>'
$out .= '<td class="val hurt hurtrel">';
if ($attack->{dps}) {
- $out .= showrange($attack->{dps}->[0], $attack->{dps}->[-1]);
+ # precalculated dps, do not touch
+ $out .= showrange($attack->{dps}->[0],
+ $upattack->{dps}->[-1] // $attack->{dps}->[-1]
+ );
}
elsif ($attack->{cooldown}) {
if (my $type = $attack->{type}) {