diff --git a/main.php b/main.php
index 5bf0ae6..a308898 100644
--- a/main.php
+++ b/main.php
@@ -1850,372 +1850,359 @@ if (input::get('edit')) {
-
Возможных увеличений: = $user['stats'] ?>
+
$mf = countmf();
- if ($_SESSION['modif'] == 1) {
- $item_mf = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_mf` > 0'));
- $item_damage = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_uron` > 0'));
- $item_bron = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_bron` > 0'));
+ $item_mf = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_mf` > 0'));
+ $item_damage = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_uron` > 0'));
+ $item_bron = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_bron` > 0'));
- if (isset($item_mf['id'])) {
- $max_mf = max_mf();
- $add_mf = sum_mf($user['id']);
- if ($max_mf == 'fkrit') {
- $var_mf = round(($mf['fkrit'] / 100) * $add_mf);
- $mf['fkrit'] += $var_mf;
- } elseif ($max_mf == 'fakrit') {
- $var_mf = round(($mf['fakrit'] / 100) * $add_mf);
- $mf['fakrit'] += $var_mf;
- } elseif ($max_mf == 'fuvorot') {
- $var_mf = round(($mf['fuvorot'] / 100) * $add_mf);
- $mf['fuvorot'] += $var_mf;
- } elseif ($max_mf == 'fauvorot') {
- $var_mf = round(($mf['fauvorot'] / 100) * $add_mf);
- $mf['fauvorot'] += $var_mf;
- }
- }
- if (isset($item_damage['id'])) {
- $add_dmg = sum_dmg($user['id']);
- $min_dmg = round(($mf['minu'] / 100) * $add_dmg);
- $max_dmg = round(($mf['maxu'] / 100) * $add_dmg);
+ if (isset($item_mf['id'])) {
+ $max_mf = max_mf();
+ $add_mf = sum_mf($user['id']);
+ if ($max_mf == 'fkrit') {
+ $var_mf = round(($mf['fkrit'] / 100) * $add_mf);
+ $mf['fkrit'] += $var_mf;
+ } elseif ($max_mf == 'fakrit') {
+ $var_mf = round(($mf['fakrit'] / 100) * $add_mf);
+ $mf['fakrit'] += $var_mf;
+ } elseif ($max_mf == 'fuvorot') {
+ $var_mf = round(($mf['fuvorot'] / 100) * $add_mf);
+ $mf['fuvorot'] += $var_mf;
+ } elseif ($max_mf == 'fauvorot') {
+ $var_mf = round(($mf['fauvorot'] / 100) * $add_mf);
+ $mf['fauvorot'] += $var_mf;
}
+ }
+ if (isset($item_damage['id'])) {
+ $add_dmg = sum_dmg($user['id']);
+ $min_dmg = round(($mf['minu'] / 100) * $add_dmg);
+ $max_dmg = round(($mf['maxu'] / 100) * $add_dmg);
+ }
- if (isset($item_bron['id'])) {
- $add_bron = sum_bron($user['id']);
- $var_brons = bron_ads($mf['bron1'], $mf['bron2'], $mf['bron3'], $mf['bron4'], $add_bron);
- } else {
- $var_brons = array('a1' => 0, 'a2' => 0, 'a3' => 0, 'a4' => 0);
- }
- ?>
-
- Урон: = $mf['minu'] + $min_dmg ?>
- - = $mf['maxu'] + $max_dmg ?> if (isset($item_damage['id'])) {
- echo '(' . $add_dmg . '%)';
- } ?>
- Мф. крит. удара: = $mf['fkrit'] ?> if (isset($item_mf['id']) && $max_mf == 'fkrit') {
- echo '(' . $add_mf . '%)';
- } ?>
- Мф. против крит. удара: = $mf['fakrit'] ?> if (isset($item_mf['id']) && $max_mf == 'fakrit') {
- echo '(' . $add_mf . '%)';
- } ?>
- Мф. увертывания: = $mf['fuvorot'] ?> if (isset($item_mf['id']) && $max_mf == 'fuvorot') {
- echo '(' . $add_mf . '%)';
- } ?>
- Мф. против увертывания: = $mf['fauvorot'] ?> if (isset($item_mf['id']) && $max_mf == 'fauvorot') {
- echo '(' . $add_mf . '%)';
- } ?>
-
- } ?>
-
-
-
- if ($_SESSION['oryj'] == 1) {
- ?>
-
-
-
Владение оружием:
- ножами и
- кастетами: = $user['noj'] ?>= ($user['master']) ? "
" : "" ?>
-
- мечами: = $user['mec'] ?>= ($user['master']) ? "
" : "" ?>
-
- дубинами,
- булавами: = $user['dubina'] ?>= ($user['master']) ? "
" : "" ?>
-
- топорами и
- секирами: = $user['topor'] ?>= ($user['master']) ? "
" : "" ?>
-
-
-
-
- if ($user['level'] > 3) { ?>
-
-
Владение магией:
-
-
- Серая магия: = $user['mgray'] ?>= ($user['master']) ? "
" : "" ?>
-
- Магия Тьмы: = $user['mdark'] ?>= ($user['master']) ? "
" : "" ?>
-
- } ?>
-
Возможных увеличений: = $user['master'] ?>
-
-
-
-
+ if (isset($item_bron['id'])) {
+ $add_bron = sum_bron($user['id']);
+ $var_brons = bron_ads($mf['bron1'], $mf['bron2'], $mf['bron3'], $mf['bron4'], $add_bron);
+ } else {
+ $var_brons = array('a1' => 0, 'a2' => 0, 'a3' => 0, 'a4' => 0);
}
?>
-
+ Урон: = $mf['minu'] + $min_dmg ?>
+ - = $mf['maxu'] + $max_dmg ?> if (isset($item_damage['id'])) {
+ echo '(' . $add_dmg . '%)';
+ } ?>
+ Мф. крит. удара: = $mf['fkrit'] ?> if (isset($item_mf['id']) && $max_mf == 'fkrit') {
+ echo '(' . $add_mf . '%)';
+ } ?>
+ Мф. против крит. удара: = $mf['fakrit'] ?> if (isset($item_mf['id']) && $max_mf == 'fakrit') {
+ echo '(' . $add_mf . '%)';
+ } ?>
+ Мф. увертывания: = $mf['fuvorot'] ?> if (isset($item_mf['id']) && $max_mf == 'fuvorot') {
+ echo '(' . $add_mf . '%)';
+ } ?>
+ Мф. против увертывания: = $mf['fauvorot'] ?> if (isset($item_mf['id']) && $max_mf == 'fauvorot') {
+ echo '(' . $add_mf . '%)';
+ } ?>
+
+
+
Владение оружием:
+
Кинжалами: = $user['noj'] ?>
+
+
+
+
Мечами: = $user['mec'] ?>
+
+
+
+
Дубинами: = $user['dubina'] ?>
+
+
+
+
Топорами: = $user['topor'] ?>
+
+
+
+
+
+
Владение магией:
+
Магия огня: = $user['mfire'] ?>
+
+
+
+
Магия воды: = $user['mwater'] ?>
+
+
+
+
Магия воздуха: = $user['mair'] ?>
+
+
+
+
Магия земли: = $user['mearth'] ?>
+
+
+
+
Магия света: = $user['mlight'] ?>
+
+
+
+
Магия серости: = $user['mgray'] ?>
+
+
+
+
Магия тьмы: = $user['mdark'] ?>
+
+
+
+
+
Возможных увеличений: = $user['master'] ?>
+
+
+
+ Броня головы: = $mf['bron1'] + $var_brons['a1'] ?> if (isset($item_bron['id'])) {
+ echo '(' . $add_bron . '%)';
+ } ?>
+ Броня корпуса: = $mf['bron2'] + $var_brons['a2'] ?> if (isset($item_bron['id'])) {
+ echo '(' . $add_bron . '%)';
+ } ?>
+ Броня пояса: = $mf['bron3'] + $var_brons['a3'] ?> if (isset($item_bron['id'])) {
+ echo '(' . $add_bron . '%)';
+ } ?>
+ Броня ног: = $mf['bron4'] + $var_brons['a4'] ?> if (isset($item_bron['id'])) {
+ echo '(' . $add_bron . '%)';
+ } ?>
- if ($_SESSION['bron'] == 1) { ?>
- Броня головы: = $mf['bron1'] + $var_brons['a1'] ?> if (isset($item_bron['id'])) {
- echo '(' . $add_bron . '%)';
- } ?>
- Броня корпуса: = $mf['bron2'] + $var_brons['a2'] ?> if (isset($item_bron['id'])) {
- echo '(' . $add_bron . '%)';
- } ?>
- Броня пояса: = $mf['bron3'] + $var_brons['a3'] ?> if (isset($item_bron['id'])) {
- echo '(' . $add_bron . '%)';
- } ?>
- Броня ног: = $mf['bron4'] + $var_brons['a4'] ?> if (isset($item_bron['id'])) {
- echo '(' . $add_bron . '%)';
- } ?>
- } ?>
if (($user['sila'] >= 25 || $user['lovk'] >= 25 || $user['inta'] >= 25 || $user['vinos'] >= 25 || $user['intel'] >= 25) && $user['level'] == 25) {
- ?>
-
-
- if ($_SESSION['bonus'] == 1) {
-
-
- if ($user['sila'] >= 25) {
- $sila['fauvorot'] = 10;
- $sila['fakrit'] = 10;
- }
- if ($user['sila'] >= 50) {
- $sila['fauvorot'] = 20;
- $sila['fakrit'] = 25;
- }
- if ($user['sila'] >= 75) {
- $sila['fauvorot'] = 30;
- $sila['fakrit'] = 40;
- }
- if ($user['sila'] >= 100) {
- $sila['fauvorot'] = 40;
- $sila['fakrit'] = 50;
- $sila['uminu'] = 2;
- $sila['umaxu'] = 2;
- }
- if ($user['sila'] >= 125) {
- $sila['fauvorot'] = 60;
- $sila['fakrit'] = 75;
- $sila['uminu'] = 5;
- $sila['umaxu'] = 5;
- }
- if ($user['sila'] >= 150) {
- $sila['fauvorot'] = 90;
- $sila['fakrit'] = 110;
- $sila['uminu'] = 8;
- $sila['umaxu'] = 8;
- }
- if ($user['sila'] >= 175) {
- $sila['fauvorot'] = 120;
- $sila['fakrit'] = 150;
- $sila['uminu'] = 12;
- $sila['umaxu'] = 12;
- }
- if ($user['sila'] >= 200) {
- $sila['fauvorot'] = 150;
- $sila['fakrit'] = 200;
- $sila['uminu'] = 15;
- $sila['umaxu'] = 15;
- }
- if ($user['lovk'] >= 25) {
- $lovk['fuvorot'] = 10;
- $lovk['fauvorot'] = 10;
- $lovk['fakrit'] = 20;
- }
- if ($user['lovk'] >= 50) {
- $lovk['fuvorot'] = 20;
- $lovk['fauvorot'] = 25;
- $lovk['fakrit'] = 40;
- }
- if ($user['lovk'] >= 75) {
- $lovk['fuvorot'] = 30;
- $lovk['fauvorot'] = 30;
- $lovk['fakrit'] = 60;
- }
- if ($user['lovk'] >= 100) {
- $lovk['fuvorot'] = 40;
- $lovk['fauvorot'] = 40;
- $lovk['fakrit'] = 75;
- $lovk['uminu'] = 5;
- $lovk['umaxu'] = 5;
- }
- if ($user['lovk'] >= 125) {
- $lovk['fuvorot'] = 40;
- $lovk['fauvorot'] = 70;
- $lovk['fakrit'] = 90;
- $lovk['uminu'] = 6;
- $lovk['umaxu'] = 6;
- }
- if ($user['lovk'] >= 150) {
- $lovk['fuvorot'] = 40;
- $lovk['fauvorot'] = 150;
- $lovk['fakrit'] = 120;
- $lovk['uminu'] = 8;
- $lovk['umaxu'] = 8;
- }
- if ($user['lovk'] >= 175) {
- $lovk['fuvorot'] = 40;
- $lovk['fauvorot'] = 200;
- $lovk['fakrit'] = 140;
- $lovk['uminu'] = 10;
- $lovk['umaxu'] = 10;
- }
- if ($user['lovk'] >= 200) {
- $lovk['fuvorot'] = 40;
- $lovk['fauvorot'] = 250;
- $lovk['fakrit'] = 160;
- $lovk['uminu'] = 15;
- $lovk['umaxu'] = 15;
- }
- if ($user['inta'] >= 25) {
- $inta['fkrit'] = 10;
- $inta['fauvorot'] = 10;
- $inta['fakrit'] = 15;
- }
- if ($user['inta'] >= 50) {
- $inta['fkrit'] = 25;
- $inta['fauvorot'] = 25;
- $inta['fakrit'] = 25;
- }
- if ($user['inta'] >= 75) {
- $inta['fkrit'] = 60;
- $inta['fauvorot'] = 30;
- $inta['fakrit'] = 30;
- }
- if ($user['inta'] >= 100) {
- $inta['fkrit'] = 40;
- $inta['fauvorot'] = 40;
- $inta['fakrit'] = 75;
- }
- if ($user['inta'] >= 125) {
- $inta['fkrit'] = 40;
- $inta['fauvorot'] = 50;
- $inta['fakrit'] = 100;
- $inta['uminu'] = 1;
- $inta['umaxu'] = 1;
- }
- if ($user['inta'] >= 150) {
- $inta['fkrit'] = 60;
- $inta['fauvorot'] = 40;
- $inta['fakrit'] = 130;
- $inta['uminu'] = 5;
- $inta['umaxu'] = 5;
- }
- if ($user['inta'] >= 175) {
- $inta['fkrit'] = 40;
- $inta['fauvorot'] = 80;
- $inta['fakrit'] = 170;
- $inta['uminu'] = 10;
- $inta['umaxu'] = 10;
- }
- if ($user['inta'] >= 200) {
- $inta['fkrit'] = 40;
- $inta['fauvorot'] = 120;
- $inta['fakrit'] = 200;
- $inta['uminu'] = 15;
- $inta['umaxu'] = 15;
- }
- if ($user['vinos'] >= 25) {
- $vinos['fkrit'] = 10;
- $vinos['fauvorot'] = 10;
- $vinos['fakrit'] = 15;
- }
- if ($user['vinos'] >= 50) {
- $vinos['fkrit'] = 25;
- $vinos['fauvorot'] = 25;
- $vinos['fakrit'] = 25;
- }
- if ($user['vinos'] >= 75) {
- $vinos['fkrit'] = 60;
- $vinos['fauvorot'] = 30;
- $vinos['fakrit'] = 30;
- }
- if ($user['vinos'] >= 100) {
- $vinos['fkrit'] = 40;
- $vinos['fauvorot'] = 40;
- $vinos['fakrit'] = 75;
- }
- if ($user['vinos'] >= 125) {
- $vinos['fkrit'] = 40;
- $vinos['fauvorot'] = 50;
- $vinos['fakrit'] = 100;
- $vinos['uminu'] = 1;
- $vinos['umaxu'] = 1;
- }
- if ($user['vinos'] >= 150) {
- $vinos['fkrit'] = 60;
- $vinos['fauvorot'] = 40;
- $vinos['fakrit'] = 130;
- $vinos['uminu'] = 5;
- $vinos['umaxu'] = 5;
- }
- if ($user['vinos'] >= 175) {
- $vinos['fkrit'] = 40;
- $vinos['fauvorot'] = 80;
- $vinos['fakrit'] = 170;
- $vinos['uminu'] = 10;
- $vinos['umaxu'] = 10;
- }
- if ($user['vinos'] >= 200) {
- $vinos['fkrit'] = 40;
- $vinos['fauvorot'] = 120;
- $vinos['fakrit'] = 200;
- $vinos['uminu'] = 15;
- $vinos['umaxu'] = 15;
- }
- if ($user['vinos'] >= $user['sila'] && $user['vinos'] >= $user['lovk'] && $user['vinos'] >= $user['inta']) {
- $i_uminu = $vinos['uminu'];
- $i_fkrit = $vinos['fkrit'];
- $i_fauvorot = $vinos['fauvorot'];
- $i_fakrit = $vinos['fakrit'];
- }
- if ($user['inta'] >= $user['sila'] && $user['inta'] >= $user['lovk'] && $user['inta'] >= $user['vinos']) {
- $i_uminu = $inta['uminu'];
- $i_fkrit = $inta['fkrit'];
- $i_fauvorot = $inta['fauvorot'];
- $i_fakrit = $inta['fakrit'];
- }
- if ($user['lovk'] >= $user['sila'] && $user['lovk'] >= $user['inta'] && $user['lovk'] >= $user['vinos']) {
- $i_uminu = $lovk['uminu'];
- $i_fkrit = $lovk['fkrit'];
- $i_fauvorot = $lovk['fauvorot'];
- $i_fakrit = $lovk['fakrit'];
- }
- if ($user['sila'] >= $user['lovk'] && $user['sila'] >= $user['inta'] && $user['sila'] >= $user['vinos']) {
- $i_uminu = $sila['uminu'];
- $i_fkrit = $sila['fkrit'];
- $i_fauvorot = $sila['fauvorot'];
- $i_fakrit = $sila['fakrit'];
- }
- if ($i_fkrit > 0) {
- echo "Мф. крит: +" . $i_fkrit . "
";
- }
- if ($i_fakrit > 0) {
- echo "Мф. анти крит: +" . $i_fakrit . "
";
- }
- if ($i_fauvorot > 0) {
- echo "Мф. анти уворот: +" . $i_fauvorot . "
";
- }
- if ($i_uminu > 0) {
- echo "Урон: +" . $i_uminu;
- }
+ if ($user['sila'] >= 25) {
+ $sila['fauvorot'] = 10;
+ $sila['fakrit'] = 10;
+ }
+ if ($user['sila'] >= 50) {
+ $sila['fauvorot'] = 20;
+ $sila['fakrit'] = 25;
+ }
+ if ($user['sila'] >= 75) {
+ $sila['fauvorot'] = 30;
+ $sila['fakrit'] = 40;
+ }
+ if ($user['sila'] >= 100) {
+ $sila['fauvorot'] = 40;
+ $sila['fakrit'] = 50;
+ $sila['uminu'] = 2;
+ $sila['umaxu'] = 2;
+ }
+ if ($user['sila'] >= 125) {
+ $sila['fauvorot'] = 60;
+ $sila['fakrit'] = 75;
+ $sila['uminu'] = 5;
+ $sila['umaxu'] = 5;
+ }
+ if ($user['sila'] >= 150) {
+ $sila['fauvorot'] = 90;
+ $sila['fakrit'] = 110;
+ $sila['uminu'] = 8;
+ $sila['umaxu'] = 8;
+ }
+ if ($user['sila'] >= 175) {
+ $sila['fauvorot'] = 120;
+ $sila['fakrit'] = 150;
+ $sila['uminu'] = 12;
+ $sila['umaxu'] = 12;
+ }
+ if ($user['sila'] >= 200) {
+ $sila['fauvorot'] = 150;
+ $sila['fakrit'] = 200;
+ $sila['uminu'] = 15;
+ $sila['umaxu'] = 15;
+ }
+ if ($user['lovk'] >= 25) {
+ $lovk['fuvorot'] = 10;
+ $lovk['fauvorot'] = 10;
+ $lovk['fakrit'] = 20;
+ }
+ if ($user['lovk'] >= 50) {
+ $lovk['fuvorot'] = 20;
+ $lovk['fauvorot'] = 25;
+ $lovk['fakrit'] = 40;
+ }
+ if ($user['lovk'] >= 75) {
+ $lovk['fuvorot'] = 30;
+ $lovk['fauvorot'] = 30;
+ $lovk['fakrit'] = 60;
+ }
+ if ($user['lovk'] >= 100) {
+ $lovk['fuvorot'] = 40;
+ $lovk['fauvorot'] = 40;
+ $lovk['fakrit'] = 75;
+ $lovk['uminu'] = 5;
+ $lovk['umaxu'] = 5;
+ }
+ if ($user['lovk'] >= 125) {
+ $lovk['fuvorot'] = 40;
+ $lovk['fauvorot'] = 70;
+ $lovk['fakrit'] = 90;
+ $lovk['uminu'] = 6;
+ $lovk['umaxu'] = 6;
+ }
+ if ($user['lovk'] >= 150) {
+ $lovk['fuvorot'] = 40;
+ $lovk['fauvorot'] = 150;
+ $lovk['fakrit'] = 120;
+ $lovk['uminu'] = 8;
+ $lovk['umaxu'] = 8;
+ }
+ if ($user['lovk'] >= 175) {
+ $lovk['fuvorot'] = 40;
+ $lovk['fauvorot'] = 200;
+ $lovk['fakrit'] = 140;
+ $lovk['uminu'] = 10;
+ $lovk['umaxu'] = 10;
+ }
+ if ($user['lovk'] >= 200) {
+ $lovk['fuvorot'] = 40;
+ $lovk['fauvorot'] = 250;
+ $lovk['fakrit'] = 160;
+ $lovk['uminu'] = 15;
+ $lovk['umaxu'] = 15;
+ }
+ if ($user['inta'] >= 25) {
+ $inta['fkrit'] = 10;
+ $inta['fauvorot'] = 10;
+ $inta['fakrit'] = 15;
+ }
+ if ($user['inta'] >= 50) {
+ $inta['fkrit'] = 25;
+ $inta['fauvorot'] = 25;
+ $inta['fakrit'] = 25;
+ }
+ if ($user['inta'] >= 75) {
+ $inta['fkrit'] = 60;
+ $inta['fauvorot'] = 30;
+ $inta['fakrit'] = 30;
+ }
+ if ($user['inta'] >= 100) {
+ $inta['fkrit'] = 40;
+ $inta['fauvorot'] = 40;
+ $inta['fakrit'] = 75;
+ }
+ if ($user['inta'] >= 125) {
+ $inta['fkrit'] = 40;
+ $inta['fauvorot'] = 50;
+ $inta['fakrit'] = 100;
+ $inta['uminu'] = 1;
+ $inta['umaxu'] = 1;
+ }
+ if ($user['inta'] >= 150) {
+ $inta['fkrit'] = 60;
+ $inta['fauvorot'] = 40;
+ $inta['fakrit'] = 130;
+ $inta['uminu'] = 5;
+ $inta['umaxu'] = 5;
+ }
+ if ($user['inta'] >= 175) {
+ $inta['fkrit'] = 40;
+ $inta['fauvorot'] = 80;
+ $inta['fakrit'] = 170;
+ $inta['uminu'] = 10;
+ $inta['umaxu'] = 10;
+ }
+ if ($user['inta'] >= 200) {
+ $inta['fkrit'] = 40;
+ $inta['fauvorot'] = 120;
+ $inta['fakrit'] = 200;
+ $inta['uminu'] = 15;
+ $inta['umaxu'] = 15;
+ }
+ if ($user['vinos'] >= 25) {
+ $vinos['fkrit'] = 10;
+ $vinos['fauvorot'] = 10;
+ $vinos['fakrit'] = 15;
+ }
+ if ($user['vinos'] >= 50) {
+ $vinos['fkrit'] = 25;
+ $vinos['fauvorot'] = 25;
+ $vinos['fakrit'] = 25;
+ }
+ if ($user['vinos'] >= 75) {
+ $vinos['fkrit'] = 60;
+ $vinos['fauvorot'] = 30;
+ $vinos['fakrit'] = 30;
+ }
+ if ($user['vinos'] >= 100) {
+ $vinos['fkrit'] = 40;
+ $vinos['fauvorot'] = 40;
+ $vinos['fakrit'] = 75;
+ }
+ if ($user['vinos'] >= 125) {
+ $vinos['fkrit'] = 40;
+ $vinos['fauvorot'] = 50;
+ $vinos['fakrit'] = 100;
+ $vinos['uminu'] = 1;
+ $vinos['umaxu'] = 1;
+ }
+ if ($user['vinos'] >= 150) {
+ $vinos['fkrit'] = 60;
+ $vinos['fauvorot'] = 40;
+ $vinos['fakrit'] = 130;
+ $vinos['uminu'] = 5;
+ $vinos['umaxu'] = 5;
+ }
+ if ($user['vinos'] >= 175) {
+ $vinos['fkrit'] = 40;
+ $vinos['fauvorot'] = 80;
+ $vinos['fakrit'] = 170;
+ $vinos['uminu'] = 10;
+ $vinos['umaxu'] = 10;
+ }
+ if ($user['vinos'] >= 200) {
+ $vinos['fkrit'] = 40;
+ $vinos['fauvorot'] = 120;
+ $vinos['fakrit'] = 200;
+ $vinos['uminu'] = 15;
+ $vinos['umaxu'] = 15;
+ }
+ if ($user['vinos'] >= $user['sila'] && $user['vinos'] >= $user['lovk'] && $user['vinos'] >= $user['inta']) {
+ $i_uminu = $vinos['uminu'];
+ $i_fkrit = $vinos['fkrit'];
+ $i_fauvorot = $vinos['fauvorot'];
+ $i_fakrit = $vinos['fakrit'];
+ }
+ if ($user['inta'] >= $user['sila'] && $user['inta'] >= $user['lovk'] && $user['inta'] >= $user['vinos']) {
+ $i_uminu = $inta['uminu'];
+ $i_fkrit = $inta['fkrit'];
+ $i_fauvorot = $inta['fauvorot'];
+ $i_fakrit = $inta['fakrit'];
+ }
+ if ($user['lovk'] >= $user['sila'] && $user['lovk'] >= $user['inta'] && $user['lovk'] >= $user['vinos']) {
+ $i_uminu = $lovk['uminu'];
+ $i_fkrit = $lovk['fkrit'];
+ $i_fauvorot = $lovk['fauvorot'];
+ $i_fakrit = $lovk['fakrit'];
+ }
+ if ($user['sila'] >= $user['lovk'] && $user['sila'] >= $user['inta'] && $user['sila'] >= $user['vinos']) {
+ $i_uminu = $sila['uminu'];
+ $i_fkrit = $sila['fkrit'];
+ $i_fauvorot = $sila['fauvorot'];
+ $i_fakrit = $sila['fakrit'];
+ }
+ if ($i_fkrit > 0) {
+ echo "Мф. крит: +" . $i_fkrit . "
";
+ }
+ if ($i_fakrit > 0) {
+ echo "Мф. анти крит: +" . $i_fakrit . "
";
+ }
+ if ($i_fauvorot > 0) {
+ echo "Мф. анти уворот: +" . $i_fauvorot . "
";
+ }
+ if ($i_uminu > 0) {
+ echo "Урон: +" . $i_uminu;
}
}
?>