rename method

This commit is contained in:
Ivor Barhansky 2024-02-09 20:26:44 +02:00
parent e3f362cf23
commit 96beb132e8

View File

@ -2315,14 +2315,14 @@ JS;
//Восстановление манны 25% от мудрости за ход //Восстановление манны 25% от мудрости за ход
if ($this->stats[$this->uids[$this->atacks[$id]['uid1']]]['yhod'] > 0) { if ($this->stats[$this->uids[$this->atacks[$id]['uid1']]]['yhod'] > 0) {
$this->save_stats( $this->saveStats(
$this->yhod_user( $this->yhod_user(
$this->atacks[$id]['uid2'], $this->atacks[$id]['uid1'], $this->atacks[$id]['uid2'], $this->atacks[$id]['uid1'],
$this->stats[$this->uids[$this->atacks[$id]['uid1']]]['yhod'] $this->stats[$this->uids[$this->atacks[$id]['uid1']]]['yhod']
) )
); );
} elseif ($this->stats[$this->uids[$this->atacks[$id]['uid2']]]['yhod'] > 0) { } elseif ($this->stats[$this->uids[$this->atacks[$id]['uid2']]]['yhod'] > 0) {
$this->save_stats( $this->saveStats(
$this->yhod_user( $this->yhod_user(
$this->atacks[$id]['uid1'], $this->atacks[$id]['uid2'], $this->atacks[$id]['uid1'], $this->atacks[$id]['uid2'],
$this->stats[$this->uids[$this->atacks[$id]['uid2']]]['yhod'] $this->stats[$this->uids[$this->atacks[$id]['uid2']]]['yhod']
@ -4704,7 +4704,7 @@ JS;
//получаем данные о поединке //получаем данные о поединке
private function save_stats($uid): void private function saveStats($uid): void
{ {
Stats::saveBattleStats($this->stats[$this->uids[$uid]], $uid); Stats::saveBattleStats($this->stats[$this->uids[$uid]], $uid);
} }