From bdde31e5ec25159bdbb94209c0e50f9fa3c2723f Mon Sep 17 00:00:00 2001 From: Ledmitz Date: Sun, 16 Aug 2020 22:36:34 +0000 Subject: Made non-whole numbers in drop ratio show 2 decimal places for more precise chance reporting --- tmw-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmw-info b/tmw-info index c6277d2..a0bc49b 100755 --- a/tmw-info +++ b/tmw-info @@ -323,7 +323,7 @@ elif [ "$1" == "mob-search" ]; then DROP_NAME=$(echo "$DROP_NAMES" | awk "{print $"$DROP_COUNT"}") DROP_PERC=$(echo "$DROP_PERCS" | awk "{print $"$DROP_COUNT"}") DROP_PERCENT=$(echo "scale=2; $DROP_PERC / 100" | bc) - DROP_RATIO=$(echo "100 / $DROP_PERCENT" | bc) + DROP_RATIO=$(echo "scale=2; 100 / $DROP_PERCENT" | bc | sed 's/.00$//g' ) #echo "DROP_NAME: $DROP_NAME" #echo "DROP_PERC: $DROP_PERC" echo "$DROP_NAME($DROP_PERCENT% | $DROP_RATIO:1)," >> "$TMW_INFO/mob-drops-$MOB_ID.tmp" -- cgit v1.2.3-70-g09d2