git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69c7a5
)
sc: calculate upgraded hp maximum
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 22 Apr 2018 10:01:53 +0000
(12:01 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 10 May 2018 14:49:06 +0000
(16:49 +0200)
Besides Marine also relevant for Banes now.
sc.plp
patch
|
blob
|
history
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',