Убрал вызов User->addDelo.

This commit is contained in:
2023-12-01 23:05:11 +02:00
parent ad80a30a5f
commit 4c6a5d055b
17 changed files with 1187 additions and 1100 deletions
+35 -28
View File
@@ -2667,18 +2667,20 @@ class Battle
if ($this->info['money'] > 0) {
if (isset($gm[$i])) {
$prc .= ' Вы выйграли <strong>' . $gm[$i] . ' кр.</strong> за этот бой.';
$u->addDelo(
4, $this->users[$i]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: Персонаж выйграл <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
time(), $this->info['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$i]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: Персонаж выйграл <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
);
$this->users[$i]['money'] += $gm[$i];
} elseif (isset($bm[$i])) {
$prc .= ' Вы заплатили <strong>' . $bm[$i] . ' кр.</strong> за этот бой.';
$u->addDelo(
4, $this->users[$i]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: Персонаж <i>проиграл</i> <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
time(), $this->info['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$i]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: Персонаж <i>проиграл</i> <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
);
$this->users[$i]['money'] -= $bm[$i];
}
@@ -2758,10 +2760,11 @@ class Battle
if ($this->info['type'] != 33) {
$prc .= ', Награда <strong>' . $admn . ' ЕКР</strong> за этот бой.';
}
$u->addDelo(
4, $this->users[$i]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: Персонаж получил <strong>' . $admn . ' ЕКР</strong> (В бою №' . $this->info['id'] . ').',
time(), $this->info['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$i]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: Персонаж получил <strong>' . $admn . ' ЕКР</strong> (В бою №' . $this->info['id'] . ').',
);
$this->users[$i]['money2'] += $admn;
}
@@ -2770,10 +2773,11 @@ class Battle
if ($this->info['money3'] > 0) {
if (isset($gms[$i])) {
$prc .= ' Вы выйграли <strong>' . $gms[$i] . ' $.</strong> за этот бой.';
$u->addDelo(
4, $this->users[$i]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: Персонаж выйграл <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
time(), $this->info['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$i]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: Персонаж выйграл <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
);
$this->users[$i]['money3'] += $gms[$i];
mysql_query(
@@ -2781,10 +2785,11 @@ class Battle
);
} elseif (isset($bms[$i])) {
$prc .= ' Вы заплатили <strong>' . $bms[$i] . ' $.</strong> за этот бой.';
$u->addDelo(
4, $this->users[$i]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: Персонаж <i>проиграл</i> <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
time(), $this->info['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$i]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: Персонаж <i>проиграл</i> <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
);
$this->users[$i]['money3'] -= $bms[$i];
mysql_query(
@@ -3796,18 +3801,20 @@ class Battle
if (!$resulttp) {
$cmsg->setText("<strong>Трупожор был пуст!</strong>");
$chat->sendMsg($cmsg);
$u->addDelo(
4, $this->users[$this->uids[$uid]]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: (В бою трупожор), ПУСТ!!! ', time(),
$this->users[$this->uids[$uid]]['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$this->uids[$uid]]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: (В бою трупожор), ПУСТ!!! ',
);
} else {
$cmsg->setText("<strong>Вы получили еврокредиты: $ecr екр.</strong>");
$chat->sendMsg($cmsg);
$u->addDelo(
4, $this->users[$this->uids[$uid]]['id'],
'&quot;<font color="olive">System.battle</font>&quot;: Персонаж получил <strong>' . $ecr . ' ЕКР</strong> (В бою трупожор), сейчас: <strong>' . $this->users[$this->uids[$uid]]['money2'] . ' ЕКР</strong>',
time(), $this->users[$this->uids[$uid]]['city'], 'System.battle', 0, 0
Delo::add(
4,
'System.battle',
$this->users[$this->uids[$uid]]['id'],
'&quot;<span style="color: olive; ">System.battle</span>&quot;: Персонаж получил <strong>' . $ecr . ' ЕКР</strong> (В бою трупожор), сейчас: <strong>' . $this->users[$this->uids[$uid]]['money2'] . ' ЕКР</strong>',
);
}
}