Ёбаные пидоры! Это ж надо догадаться в поединке суммировать все бонусы статов и параметров не разным игрокам, "каждому по способностям", а скидывать все-все-все бонусы первому ударившему. Понятно почему поединки такие нелогичные. Идиоты!

This commit is contained in:
Igor Barkov (iwork) 2019-09-20 16:57:58 +03:00
parent 03ef404848
commit 518155e9f0
2 changed files with 38 additions and 114 deletions

View File

@ -594,114 +594,38 @@ class fbattle
$bmfauv1 = 0; $bmfauv1 = 0;
$bmfakrit1 = 0; $bmfakrit1 = 0;
$bmfkrit1 = 0; //модификаторы $bmfkrit1 = 0; //модификаторы
// fixme что-то сделать с этой хернёй. рассчёт модификаторов работает не так!
if ($this->user['sila'] >= 25) $bmfud += 1;
if ($this->user['sila'] >= 50) $bmfud += 2;
if ($this->user['sila'] >= 50) $bmfauv += 25;
if ($this->user['sila'] >= 50) $bmfakrit += 25;
if ($this->user['sila'] >= 75) $bmfud += 3;
if ($this->user['sila'] >= 75) $bmfauv += 30;
if ($this->user['sila'] >= 75) $bmfakrit += 30;
if ($this->user['sila'] >= 100) $bmfud += 5;
if ($this->user['sila'] >= 100) $bmfauv += 40;
if ($this->user['sila'] >= 100) $bmfakrit += 40;
if ($this->user['sila'] >= 125) $bmfud += 11;
if ($this->user['sila'] >= 125) $bmfauv += 50;
if ($this->user['sila'] >= 125) $bmfakrit += 50;
if ($this->user['lovk'] >= 25) $bmfauv += 25;
if ($this->user['lovk'] >= 25) $bmfakrit += 15;
if ($this->user['lovk'] >= 50) $bmfuv += 25;
if ($this->user['lovk'] >= 50) $bmfauv += 25;
if ($this->user['lovk'] >= 50) $bmfakrit += 10;
if ($this->user['lovk'] >= 75) $bmfuv += 40;
if ($this->user['lovk'] >= 75) $bmfauv += 30;
if ($this->user['lovk'] >= 75) $bmfakrit += 20;
if ($this->user['lovk'] >= 100) $bmfuv += 50;
if ($this->user['lovk'] >= 100) $bmfauv += 40;
if ($this->user['lovk'] >= 100) $bmfakrit += 30;
if ($this->user['lovk'] >= 125) $bmfuv += 65;
if ($this->user['lovk'] >= 125) $bmfauv += 55;
if ($this->user['lovk'] >= 125) $bmfakrit += 45;
if ($this->user['inta'] >= 25) $bmfauv += 15;
if ($this->user['inta'] >= 50) $bmfkrit += 20;
if ($this->user['inta'] >= 50) $bmfauv += 25;
if ($this->user['inta'] >= 50) $bmfakrit += 25;
if ($this->user['inta'] >= 75) $bmfkrit += 30;
if ($this->user['inta'] >= 75) $bmfauv += 30;
if ($this->user['inta'] >= 75) $bmfakrit += 30;
if ($this->user['inta'] >= 100) $bmfkrit += 40;
if ($this->user['inta'] >= 100) $bmfauv += 40;
if ($this->user['inta'] >= 100) $bmfakrit += 40;
if ($this->user['inta'] >= 125) $bmfkrit += 55;
if ($this->user['inta'] >= 125) $bmfauv += 55;
if ($this->user['inta'] >= 125) $bmfakrit += 55;
if ($this->user['vinos'] >= 25) $bmfbron += 2;
if ($this->user['vinos'] >= 50) $bmfauv += 25;
if ($this->user['vinos'] >= 50) $bmfbron += 2;
if ($this->user['vinos'] >= 50) $bmfakrit += 25;
if ($this->user['vinos'] >= 75) $bmfauv += 30;
if ($this->user['vinos'] >= 75) $bmfbron += 3;
if ($this->user['vinos'] >= 75) $bmfakrit += 30;
if ($this->user['vinos'] >= 100) $bmfauv += 40;
if ($this->user['vinos'] >= 100) $bmfbron += 5;
if ($this->user['vinos'] >= 100) $bmfakrit += 40;
if ($this->user['vinos'] >= 125) $bmfauv += 55;
if ($this->user['vinos'] >= 125) $bmfbron += 8;
if ($this->user['vinos'] >= 125) $bmfakrit += 55;
if ($this->enemyhar['sila'] >= 25) $bmfud += 1; if ($this->user['sila'] >= 25) {
if ($this->enemyhar['sila'] >= 50) $bmfud += 2; $bmfakrit += round($this->user['sila'] / 3);
if ($this->enemyhar['sila'] >= 50) $bmfauv += 25; $bmfauv += round($this->user['sila'] / 3);
if ($this->enemyhar['sila'] >= 50) $bmfakrit += 25; }
if ($this->enemyhar['sila'] >= 75) $bmfud += 3; if ($this->user['lovk'] >= 25) {
if ($this->enemyhar['sila'] >= 75) $bmfauv += 30; $bmfuv += round($this->user['sila'] / 2);
if ($this->enemyhar['sila'] >= 75) $bmfakrit += 30; $bmfauv += round($this->user['sila'] / 3);
if ($this->enemyhar['sila'] >= 100) $bmfud += 5; }
if ($this->enemyhar['sila'] >= 100) $bmfauv += 40; if ($this->user['inta'] >= 25) {
if ($this->enemyhar['sila'] >= 100) $bmfakrit += 40; $bmfkrit += round($this->user['sila'] / 2);
if ($this->enemyhar['sila'] >= 125) $bmfud += 11; $bmfakrit += round($this->user['sila'] / 3);
if ($this->enemyhar['sila'] >= 125) $bmfauv += 65; }
if ($this->enemyhar['sila'] >= 125) $bmfakrit += 65; if ($this->user['vinos'] >= 25) {
if ($this->enemyhar['lovk'] >= 25) $bmfauv += 25; $bmfbron += round($this->user['vinos'] / 25);
if ($this->enemyhar['lovk'] >= 25) $bmfakrit += 15; }
if ($this->enemyhar['lovk'] >= 50) $bmfuv += 25;
if ($this->enemyhar['lovk'] >= 50) $bmfauv += 25; if ($this->enemyhar['sila'] >= 25) {
if ($this->enemyhar['lovk'] >= 50) $bmfakrit += 10; $bmfakrit1 += round($this->enemyhar['sila'] / 3);
if ($this->enemyhar['lovk'] >= 75) $bmfuv += 40; $bmfauv1 += round($this->enemyhar['sila'] / 3);
if ($this->enemyhar['lovk'] >= 75) $bmfauv += 30; }
if ($this->enemyhar['lovk'] >= 75) $bmfakrit += 20; if ($this->enemyhar['lovk'] >= 25) {
if ($this->enemyhar['lovk'] >= 100) $bmfuv += 50; $bmfuv1 += round($this->enemyhar['sila'] / 2);
if ($this->enemyhar['lovk'] >= 100) $bmfauv += 40; $bmfauv1 += round($this->enemyhar['sila'] / 3);
if ($this->enemyhar['lovk'] >= 100) $bmfakrit += 30; }
if ($this->enemyhar['lovk'] >= 125) $bmfuv += 65; if ($this->enemyhar['inta'] >= 25) {
if ($this->enemyhar['lovk'] >= 125) $bmfauv += 55; $bmfkrit1 += round($this->enemyhar['sila'] / 2);
if ($this->enemyhar['lovk'] >= 125) $bmfakrit += 45; $bmfakrit1 += round($this->enemyhar['sila'] / 3);
if ($this->enemyhar['inta'] >= 25) $bmfauv += 15; }
if ($this->enemyhar['inta'] >= 50) $bmfkrit += 20; if ($this->enemyhar['vinos'] >= 25) {
if ($this->enemyhar['inta'] >= 50) $bmfauv += 25; $bmfbron1 += round($this->enemyhar['vinos'] / 25);
if ($this->enemyhar['inta'] >= 50) $bmfakrit += 25; }
if ($this->enemyhar['inta'] >= 75) $bmfkrit += 30;
if ($this->enemyhar['inta'] >= 75) $bmfauv += 30;
if ($this->enemyhar['inta'] >= 75) $bmfakrit += 30;
if ($this->enemyhar['inta'] >= 100) $bmfkrit += 40;
if ($this->enemyhar['inta'] >= 100) $bmfauv += 40;
if ($this->enemyhar['inta'] >= 100) $bmfakrit += 40;
if ($this->enemyhar['inta'] >= 125) $bmfkrit += 55;
if ($this->enemyhar['inta'] >= 125) $bmfauv += 55;
if ($this->enemyhar['inta'] >= 125) $bmfakrit += 55;
if ($this->enemyhar['vinos'] >= 25) $bmfbron += 2;
if ($this->enemyhar['vinos'] >= 50) $bmfauv += 25;
if ($this->enemyhar['vinos'] >= 50) $bmfbron += 2;
if ($this->enemyhar['vinos'] >= 50) $bmfakrit += 25;
if ($this->enemyhar['vinos'] >= 75) $bmfauv += 30;
if ($this->enemyhar['vinos'] >= 75) $bmfbron += 3;
if ($this->enemyhar['vinos'] >= 75) $bmfakrit += 30;
if ($this->enemyhar['vinos'] >= 100) $bmfauv += 40;
if ($this->enemyhar['vinos'] >= 100) $bmfbron += 5;
if ($this->enemyhar['vinos'] >= 100) $bmfakrit += 40;
if ($this->enemyhar['vinos'] >= 125) $bmfauv += 55;
if ($this->enemyhar['vinos'] >= 125) $bmfbron += 8;
if ($this->enemyhar['vinos'] >= 125) $bmfakrit += 55;
//************* //*************
@ -1693,7 +1617,7 @@ class fbattle
} }
$winers .= implode("</B>, <B>", $this->t1); $winers .= implode("</B>, <B>", $this->t1);
$lomka = $this->t2; $lomka = $this->t2;
include('cave/win.php'); include('../cave/win.php');
} elseif (in_array($ss[0], $this->t2)) { } elseif (in_array($ss[0], $this->t2)) {
$flag = 2; $flag = 2;
foreach ($this->t2 as $k => $v) { foreach ($this->t2 as $k => $v) {
@ -1795,7 +1719,7 @@ class fbattle
if ($this->battle_data['x'] > 0 || $this->battle_data['y'] > 0 && $this->user['laba'] > 0) { if ($this->battle_data['x'] > 0 || $this->battle_data['y'] > 0 && $this->user['laba'] > 0) {
mysql_query('UPDATE `users` SET `x` = "' . $this->user['xf'] . '", `y` = "' . $this->user['yr'] . '" WHERE `laba` = "' . $this->user['laba'] . '" AND `x` = "' . $this->battle_data['x'] . '" AND `y` = "' . $this->battle_data['y'] . '" AND `battle` = "' . $this->battle_data['id'] . '" LIMIT 1'); mysql_query('UPDATE `users` SET `x` = "' . $this->user['xf'] . '", `y` = "' . $this->user['yr'] . '" WHERE `laba` = "' . $this->user['laba'] . '" AND `x` = "' . $this->battle_data['x'] . '" AND `y` = "' . $this->battle_data['y'] . '" AND `battle` = "' . $this->battle_data['id'] . '" LIMIT 1');
} }
include("cave/lose.php"); include("../cave/lose.php");
} }

View File

@ -1295,10 +1295,10 @@ if (input::get('edit')) {
$bonus['fauvorot'] += round($user['sila'] / 3); $bonus['fauvorot'] += round($user['sila'] / 3);
$bonus['fakrit'] += round($user['sila'] / 3); $bonus['fakrit'] += round($user['sila'] / 3);
} }
if (($user['sila']) >=100) { // if (($user['sila']) >=100) {
$bonus['uminu'] += round($user['sila'] / 25); // $bonus['uminu'] += round($user['sila'] / 25);
$bonus['umaxu'] += round($bonus['uminu'] + $user['sila'] / 100); // $bonus['umaxu'] += round($bonus['uminu'] + $user['sila'] / 100);
} // }
if (($user['lovk']) >= 25) { if (($user['lovk']) >= 25) {
$bonus['fuvorot'] += round($user['lovk'] / 2); $bonus['fuvorot'] += round($user['lovk'] / 2);
$bonus['fauvorot'] += round($user['lovk'] / 3); $bonus['fauvorot'] += round($user['lovk'] / 3);
@ -1314,7 +1314,7 @@ if (input::get('edit')) {
if (!empty($bonus['fakrit'])) echo "Шанс антикрита: +" . $bonus['fakrit'] . "<br />"; if (!empty($bonus['fakrit'])) echo "Шанс антикрита: +" . $bonus['fakrit'] . "<br />";
if (!empty($bonus['fuvorot'])) echo "Шанс уворота: +" . $bonus['fuvorot'] . "<br />"; if (!empty($bonus['fuvorot'])) echo "Шанс уворота: +" . $bonus['fuvorot'] . "<br />";
if (!empty($bonus['fauvorot'])) echo "Шанс антиуворота: +" . $bonus['fauvorot'] . "<br />"; if (!empty($bonus['fauvorot'])) echo "Шанс антиуворота: +" . $bonus['fauvorot'] . "<br />";
if (!empty($bonus['uminu'])) echo "Бонус урона: +" . $bonus['uminu'] . "-" . $bonus['umaxu']; // if (!empty($bonus['uminu'])) echo "Бонус урона: +" . $bonus['uminu'] . "-" . $bonus['umaxu'];
} }
?> ?>
</div> </div>