Permalink
Browse files

Put the easy levels first

  • Loading branch information...
1 parent e24c658 commit 71820359caab92fd7653ae158617a0aa050bb431 @icefox committed Feb 17, 2010
Showing with 12 additions and 3 deletions.
  1. +12 −3 cgi-bin/determinelevel.cgi
@@ -1,15 +1,24 @@
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;
done
let level=$pack+$level
-echo $level;
+echo $level;

0 comments on commit 7182035

Please sign in to comment.