You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
957 B
29 lines
957 B
<?php
|
|
/*
|
|
*
|
|
* @copyright (c) 2009 animegame.eu
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
|
*
|
|
*/
|
|
|
|
#####################################KAMPF SYSTEM
|
|
|
|
$speed_prz_1 = $speed_char1/100;
|
|
$speed_prz_2 = $speed_char2/100;
|
|
|
|
if($speed_char1 > $speed_char2) {
|
|
if($speed_prz_1*90 >= $speed_char2) { $play1_ausweich=20; }
|
|
if($speed_prz_1*80 >= $speed_char2) { $play1_ausweich=41; }
|
|
if($speed_prz_1*70 >= $speed_char2) { $play1_ausweich=52; }
|
|
if($speed_prz_1*60 >= $speed_char2) { $play1_ausweich=63; }
|
|
if($speed_prz_1*50 >= $speed_char2) { $play1_ausweich=80; }
|
|
} else {
|
|
if($speed_prz_2*90 >= $speed_char1) { $play2_ausweich=20; }
|
|
if($speed_prz_2*80 >= $speed_char1) { $play2_ausweich=41; }
|
|
if($speed_prz_2*70 >= $speed_char1) { $play2_ausweich=52; }
|
|
if($speed_prz_2*60 >= $speed_char1) { $play2_ausweich=63; }
|
|
if($speed_prz_2*50 >= $speed_char1) { $play2_ausweich=80; }
|
|
}
|
|
$zufall_pl1=mt_rand(1,100);
|
|
$zufall_pl2=mt_rand(1,100);
|
|
?>
|