sc: integrate added special/upgrade options
[sheet.git] / sc.plp
diff --git a/sc.plp b/sc.plp
index 76974c94ee8f7351faaaeb1d8e76ceb83ffd0954..0503a07a21ec6237a4f6fa61541c67c40f2c3267 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -252,7 +252,7 @@ sub showrange {
                                        $_->{desc} ? ": $_->{desc}" : '',
                                        $_->{range} ? sprintf(' (%s)', join ', ',
                                                "range $_->{range}",
-#                                              "cost $_->{cost}",
+#                                              sprintf('cost %.0f%%', 100 * $_->{cost} / $row->{energy}),
                                        ) : '',
                                ),
                                $_->{abbr},
@@ -262,6 +262,7 @@ sub showrange {
        sub showunitcols {
                my ($row) = @_;
                local $_ = $row;
+               $_->{hp} += $_->{shield} if $_->{shield};
                my $suitchar = '';
                if ($_->{suit}) {
                        $suitchar = [qw/? s m l/]->[$_->{suit}];
@@ -325,7 +326,6 @@ sub showrange {
                printf '<tbody id="%s"><tr class="race"><th colspan="18"><h2>%s</h2>'."\n", $race, ucfirst $race
                        if $grouped and $race ne $_->{race};
                $_->{cat} = $_->{race} if not $grouped;
-               $_->{hp} += $_->{shield};
                print(
                        '<tr>',
                        sprintf('<t%s class="cat">%s', $cat ne $_->{cat} ? ('h', $cat = $_->{cat}) : ('d', '&nbsp;')),