From 2735a0c0aa4788e25cd2017fa1541d7ca0b8e5ba Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 10 Jun 2015 22:54:12 +0200 Subject: [PATCH] sc: round damage values Avoid fractions for calculated values. --- sc.plp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc.plp b/sc.plp index 44940e5..8ce0ba7 100644 --- a/sc.plp +++ b/sc.plp @@ -200,8 +200,8 @@ sub showrange { elsif ($type eq 'implosive') { $min /= 4; } - $min = int($min + .5); # round halves up }} + $_ = int($_ + .5) for $min, $max; # round halves up return $min == $max ? $min : "$min-$max"; } -- 2.30.0