Фиксим мелкие ошибки.

This commit is contained in:
2023-04-01 14:47:32 +03:00
parent c41f36644c
commit d82a2e3103
14 changed files with 1005 additions and 1412 deletions

View File

@@ -100,14 +100,9 @@ class BotPriemLogic
return true;
}
private static function usePriem($id, $on = null)
private static function usePriem($id)
{
$go_txt = '&usepriem=' . $id;
if ($on != '') {
$on = str_replace(' ', '%20', $on);
$go_txt .= '&useon=' . $on;
}
BotLogic::inuser_go_btl(BotLogic::$bot, $go_txt);
BotLogic::inuser_go_btl(BotLogic::$bot, '&usepriem=' . $id);
}
//Ставка на опережение
@@ -328,13 +323,13 @@ class BotPriemLogic
}
private static function hp()
private static function hp(): float
{
return round((BotLogic::$st['hpNow'] / BotLogic::$st['hpAll'] * 100), 2);
}
//Тест на возможность использования
private static function testpriem($pl)
private static function testpriem($pl): int
{
global $u;
$notr = 0;