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:
1b61e5e
)
sc: speed with 1 decimal for lower hex/s values
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 30 Jun 2015 18:48:58 +0000
(20:48 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 1 Jul 2015 17:32:34 +0000
(19:32 +0200)
sc.plp
patch
|
blob
|
history
diff --git
a/sc.plp
b/sc.plp
index 5454b637d02d7e0f4f7d59d733df64d58ebdcc75..d8e89de68219ec5ec0fcb4b3d8975a5ec9ba2ebd 100644
(file)
--- a/
sc.plp
+++ b/
sc.plp
@@
-314,7
+314,10
@@
sub showrangeint {
showrangeint($_->{sight}, $_->{upgraded}->{sight})
),
'<td class="val unit-speed">' .
- showrangeint($_->{speed}, $_->{upgraded}->{speed}),
+ showrange(
+ map { $_ && sprintf '%.1f', $_ }
+ $_->{speed}, $_->{upgraded}->{speed}
+ ),
$_->{attr}->{jump}
&& qq'<span class="unit unit-jump" title="$_->{attr}->{jump}">↕</span>',
'<td class="unit-magic">' . showmagic($_),