Skip to content
Browse files

Put the easy levels first

  • Loading branch information...
1 parent e24c658 commit 71820359caab92fd7653ae158617a0aa050bb431 @icefox committed
Showing with 12 additions and 3 deletions.
  1. +12 −3 cgi-bin/determinelevel.cgi
View
15 cgi-bin/determinelevel.cgi
@@ -1,10 +1,19 @@
level=$1
pack="";
-if [ $level -ge 34 ] ; then
- let level=${level}-33;
+if [ $level -le 60 ] ; then
pack='100';
fi
+
+if [[ $level -ge 61 && $level -le 93 ]] ; then
+ let level=${level}-60;
+ pack='';
+fi
+
+if [ $level -ge 94 ] ; then
+ pack='100';
+fi
+
while [ $level -gt 60 ] ; do
let level=${level}-60;
let pack=$pack+100;
@@ -12,4 +21,4 @@ done
let level=$pack+$level
-echo $level;
+echo $level;

0 comments on commit 7182035

Please sign in to comment.
Something went wrong with that request. Please try again.