WIP: перед введенимем класса Fighter.php
This commit is contained in:
@@ -433,7 +433,7 @@ class Quests
|
||||
}
|
||||
|
||||
if (isset($d['add_rep'])) {
|
||||
$t .= 'Репутация ' . $u->city_name[$pl['city']] . ': ' . $d['add_rep'] . '<br>';
|
||||
$t .= 'Репутация ' . $pl['city'] . ': ' . $d['add_rep'] . '<br>';
|
||||
}
|
||||
|
||||
if (isset($d['add_repizlom'])) {
|
||||
@@ -582,7 +582,7 @@ class Quests
|
||||
return $r;
|
||||
}
|
||||
|
||||
public function testquest()
|
||||
public function testquest(): void
|
||||
{
|
||||
global $u;
|
||||
if ($u->info['battle'] == 0 && $u->room['name'] != 'Башня Смерти') {
|
||||
@@ -749,12 +749,9 @@ class Quests
|
||||
}
|
||||
unset($x, $i, $ii, $ex, $x2, $bot2, $ex2);
|
||||
if ($pl['city'] != '') {
|
||||
$t .= '' . $d['add_rep'] . ' ед. репутации ' . $u->city_name[$pl['city']] . ', ';
|
||||
$t .= '' . $d['add_rep'] . ' ед. репутации ' . $pl['city'] . ', ';
|
||||
$rep = mysql_fetch_array(mysql_query('SELECT * FROM `rep` WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'));
|
||||
// Рыцарки
|
||||
/*if($rep['rep'.$pl['city']] < 10000 && $rep['rep'.$pl['city']] + $d['add_rep'] >= 10000 && $pl['kin'] != 1) {
|
||||
$rep['rep'.$pl['city']] = 9999;
|
||||
} else*/
|
||||
|
||||
if ($rep['rep' . $pl['city']] < 24999 && $rep['rep' . $pl['city']] + $d['add_rep'] >= 24999 && $pl['kin'] != 2) {
|
||||
$rep['rep' . $pl['city']] = 24999;
|
||||
} else {
|
||||
@@ -976,7 +973,7 @@ class Quests
|
||||
if ($this->stats['more_awards'] >= 0) {
|
||||
$d['add_rep'] += $d['add_rep'] / 100 * 50;
|
||||
}
|
||||
$t .= '' . $d['add_rep'] . ' ед. репутации ' . $u->city_name[$quest['city']] . ', ';
|
||||
$t .= '' . $d['add_rep'] . ' ед. репутации ' . $quest['city'] . ', ';
|
||||
if (
|
||||
$rep['rep' . $quest['city']] < 24999 &&
|
||||
$rep['rep' . $quest['city']] + $d['add_rep'] >= 24999 &&
|
||||
|
||||
Reference in New Issue
Block a user