Перенос и унификация функции снятия всех предметов в класс DressedItems.

This commit is contained in:
lopar
2021-03-11 20:58:38 +02:00
parent 3f22c6664a
commit c54b97681b
12 changed files with 24 additions and 25 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ if ($user['battle'] > 0) {
mysql_query("INSERT INTO `bots` (`name`,`prototype`,`battle`,`hp`) values ('Архивариус','83','','" . $jert['hp'] . "');");
$jert['id'] = mysql_insert_id();
}
undressall($jert['id']);
undressall($user['id']);
\Battles\DressedItems::undressAllItems($jert['id']);
\Battles\DressedItems::undressAllItems($user['id']);
$teams = [];
$teams[$user['id']][$jert['id']] = [0, 0, time()];
$teams[$jert['id']][$user['id']] = [0, 0, time()];