Замена Battle->add_log() на Log::add().

This commit is contained in:
2024-02-09 19:28:32 +02:00
parent 88aeb4a912
commit 8af1a5114a
11 changed files with 74 additions and 61 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
<?php
use Battle\Log;
if(!defined('GAME'))
{
die();
@@ -437,8 +440,8 @@ if(isset($hod))
}else{
$vLog = 'time1='.time().'||s1='.$u->info['sex'].'||t1='.$u->info['team'].'||login1='.$u->info['login'];
$mas1 = array('time'=>time(),'battle'=>$btl->i->id,'id_hod'=>($btl->hodID+1),'text'=>'','vars'=>$vLog,'zona1'=>'','zonb1'=>'','zona2'=>'','zonb2'=>'','type'=>'1');
$mas1['text'] = '{tm1} {u1} {1x16x0} прием &quot;<b>'.$pl['name'].'</b>&quot;. <small>(Сняты задержки на магию Воды)</small>';
$btl->add_log($mas1);
$mas1['text'] = '{tm1} {u1} {1x16x0} прием &quot;<b>'.$pl['name'].'</b>&quot;. <small>(Сняты задержки на магию Воды)</small>';
Log::add($mas1);
}
unset($upd);
}