Отключены бонусы за временные магические эффекты.
todo переоформить всю таблицу effects, чтобы туда писался сам параметр и его значение, чтобы на выхлопе суммировать;
This commit is contained in:
parent
c35b0f2c9a
commit
ece44ccb43
@ -563,33 +563,38 @@ class fbattle
|
||||
|
||||
function solve_mf($enemy, $myattack)
|
||||
{
|
||||
//БОНУСЫ!
|
||||
$zo = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=201 AND owner=" . (int)$this->user['id'] . " LIMIT 1;"));
|
||||
$zo1 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=201 AND owner=" . (int)$this->enemyhar['id'] . " LIMIT 1;"));
|
||||
$zo2 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=205 AND owner=" . (int)$this->user['id'] . " LIMIT 1;"));
|
||||
$zo3 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=205 AND owner=" . (int)$this->enemyhar['id'] . " LIMIT 1;"));
|
||||
$sokr = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=202 AND owner=" . (int)$this->user['id'] . " LIMIT 1;"));
|
||||
$sokr1 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=202 AND owner=" . (int)$this->enemyhar['id'] . " LIMIT 1;"));
|
||||
$sokr2 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=204 AND owner=" . (int)$this->user['id'] . " LIMIT 1;"));
|
||||
$sokr3 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=204 AND owner=" . (int)$this->enemyhar['id'] . " LIMIT 1;"));
|
||||
$mfusil = @mysql_fetch_row(@mysql_query("SELECT id,name FROM effects WHERE type=50 AND owner=" . (int)$user['id'] . " LIMIT 1;"));
|
||||
// БОНУСЫ! Как бы работают, но просто отвратительно.
|
||||
// todo переоформить всю таблицу effects, чтобы туда писался сам параметр и его значение, чтобы на выхлопе суммировать;
|
||||
// $zo = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=201 AND owner=" . (int)$this->user['id'] . ";"));
|
||||
// $zo1 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=201 AND owner=" . (int)$this->enemyhar['id'] . ";"));
|
||||
// $zo2 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=205 AND owner=" . (int)$this->user['id'] . ";"));
|
||||
// $zo3 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=205 AND owner=" . (int)$this->enemyhar['id'] . ";"));
|
||||
// $sokr = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=202 AND owner=" . (int)$this->user['id'] . ";"));
|
||||
// $sokr1 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=202 AND owner=" . (int)$this->enemyhar['id'] . ";"));
|
||||
// $sokr2 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=204 AND owner=" . (int)$this->user['id'] . ";"));
|
||||
// $sokr3 = mysql_fetch_row(mysql_query("SELECT id FROM effects WHERE type=204 AND owner=" . (int)$this->enemyhar['id'] . ";"));
|
||||
// $mfusil = @mysql_fetch_row(@mysql_query("SELECT id,name FROM effects WHERE type=50 AND owner=" . (int)$user['id'] . ";"));
|
||||
|
||||
$bmfud = $sokr[0] > 0 ? 1 : 0;//владение оружием !
|
||||
$bmfud = $sokr2[0] > 0 ? 1.5 : 0;//владение оружием !
|
||||
$bmfbron = $zo[0] > 0 ? 2 : 0;//броня
|
||||
$bmfbron = $zo2[0] > 0 ? 5 : 0;//броня
|
||||
// $bmfud = $sokr[0] > 0 ? 1 : 0;//владение оружием !
|
||||
// $bmfud = $sokr2[0] > 0 ? 1.5 : 0;//владение оружием !
|
||||
// $bmfbron = $zo[0] > 0 ? 2 : 0;//броня
|
||||
// $bmfbron = $zo2[0] > 0 ? 5 : 0;//броня
|
||||
$bmfud = 0;
|
||||
$bmfbron = 0;
|
||||
$bmfuv = 0;
|
||||
$bmfauv = 0;
|
||||
$bmfakrit = 0;
|
||||
$bmfkrit = 0;
|
||||
$bmfuv += $mfusil['mfuvorot'];
|
||||
$bmfauv += $mfusil['mfauvorot'];
|
||||
$bmfakrit += $mfusil['mfakrit'];
|
||||
$bmfkrit += $mfusil['mfkrit'];
|
||||
$bmfud1 = $sokr1[0] > 0 ? 1 : 0;//владение оружием
|
||||
$bmfud1 = $sokr3[0] > 0 ? 1.5 : 0;//владение оружием
|
||||
$bmfbron1 = $zo1[0] > 0 ? 2 : 0;//броня
|
||||
$bmfbron1 = $zo3[0] > 0 ? 5 : 0;//броня
|
||||
// $bmfuv += $mfusil['mfuvorot'];
|
||||
// $bmfauv += $mfusil['mfauvorot'];
|
||||
// $bmfakrit += $mfusil['mfakrit'];
|
||||
// $bmfkrit += $mfusil['mfkrit'];
|
||||
// $bmfud1 = $sokr1[0] > 0 ? 1 : 0;//владение оружием
|
||||
// $bmfud1 = $sokr3[0] > 0 ? 1.5 : 0;//владение оружием
|
||||
// $bmfbron1 = $zo1[0] > 0 ? 2 : 0;//броня
|
||||
// $bmfbron1 = $zo3[0] > 0 ? 5 : 0;//броня
|
||||
$bmfud1 = 0;
|
||||
$bmfbron1 = 0;
|
||||
$bmfuv1 = 0;
|
||||
$bmfauv1 = 0;
|
||||
$bmfakrit1 = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user