sc: indicate weapon cost [of oracle beam]
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 30 Jun 2015 13:43:24 +0000 (15:43 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 1 Jul 2015 17:32:34 +0000 (19:32 +0200)
sc.plp

diff --git a/sc.plp b/sc.plp
index 5d82a8d0ba657cb66c1d525c1c900f5f854d32cb..e4633107554db5d1d72501bb57b006ca84b6f14b 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -130,6 +130,8 @@ sub showrange {
                $maxdamage += ($upattack->{upgrade} // $attack->{upgrade}) * 3;
 
                my $out = '<td class="val hurt">';
+               $out .= sprintf '<span title="%s">¤</span> ', showcost($attack, $row)
+                       if $attack->{cost};
                $out .= sprintf('<small>%s× </small>',
                        showrange($attack->{count}, $upattack->{count}),
                ) if $attack->{count} > 1;