summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtmw-info2
1 files changed, 1 insertions, 1 deletions
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"