sc: calculate upgraded hp maximum
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 22 Apr 2018 10:01:53 +0000 (12:01 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 10 May 2018 14:49:06 +0000 (16:49 +0200)
Besides Marine also relevant for Banes now.

sc.plp

diff --git a/sc.plp b/sc.plp
index 53934f2298a28f2eff04a632b8f9db3a31042fda..f0824bf917d45b07cb9a75e0781f2e1d2468dfee 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -319,7 +319,7 @@ sub showrangeint {
                                        && '<span class="unit-massive" title="massive">⚓</span>',
                        ),
                        $_->{hp} < 0 ? '<td class="val unit-hp" title="invulnerable">∞' :
-                       '<td class="val unit-hp">' . $_->{hp} // '',
+                       '<td class="val unit-hp">' . showrangeint($_->{hp}, $_->{upgraded}->{hp}),
                        $_->{shield} ? sprintf('<td class="val unit-shield">%.0f%%<td',
                                100 * $_->{shield} / $_->{hp}
                        ) : '<td colspan=2',