sc: rename cmp attribute to dps
[sheet.git] / sc.plp
diff --git a/sc.plp b/sc.plp
index 9a9a12a2e8af7ac4ff7e9e0e14382ac077404bcd..6b08c9477acb304665a865dc57178ca2f95d5013 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -192,7 +192,7 @@ sub showrange {
                }
        }
 
-       if ($elements[0] eq 'attack' and $elements[1] ne 'range' and $elements[2] eq 'cmp') {{
+       if ($elements[0] eq 'attack' and $elements[1] ne 'range' and $elements[2] eq 'dps') {{
                my $type = $row->{$elements[0]}->{$elements[1]}->{type} or next;
                if ($type eq 'explosive') {
                        $min /= 2;
@@ -225,7 +225,7 @@ sub showrange {
 
                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, 'cmp');
+               $out .= '<td class="val hurt hurtrel">' . showrange($row, 'attack', $area, 'dps');
                return $tagbase . $out;
        }