Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1.         if ( $check_ukl < 0 ) {
  2.             $chance_ukl = 10;
  3.         } else {
  4.             if ( $check_ukl < 50 ) {
  5.                 $chance_ukl = 10 + floor($check_ukl/10);
  6.             } elseif ( $check_ukl < 100 ) {
  7.                 $chance_ukl = 15 + floor(($check_ukl - 50)/20);
  8.             } elseif ( $check_ukl < 500 ) {
  9.                 $chance_ukl = 20 + floor(($check_ukl-100)/30);
  10.             } elseif ( $check_ukl < 1000 ) {
  11.                 $chance_ukl = 32 + floor(($check_ukl-500)/40);
  12.             } else {
  13.                 $chance_ukl = 45 + floor(($check_ukl-1000)/50);
  14.             }
  15.  
  16.             if ( $chance_ukl > 75 ) {
  17.                 $chance_ukl = 75;
  18.             }
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement