WIP: new battle

This commit is contained in:
2024-12-10 13:09:03 +02:00
parent 73862ca752
commit d41147da45
18 changed files with 1010 additions and 1111 deletions

View File

@@ -27,7 +27,7 @@ class ActionModel
[
$user['id'],
$time,
$user['city'],
'',
$user['room'],
$vars,
UserIp::get(),
@@ -84,11 +84,6 @@ class ActionModel
return (int)Db::getValue($sql, $binds);
}
public function getByVals(string $vals)
{
return Db::getRow('select * from actions where uid = ? and vals = ?', [$this->uid, $vals]);
}
public function getLastByVals(string $vals)
{
return Db::getRow(
@@ -115,16 +110,6 @@ class ActionModel
Db::sql('delete from actions where uid = ? and vals = ?', [$this->uid, $vals]);
}
public function getDailyQuest(): array
{
$filter = [
"uid = $this->uid",
"vars = 'day_quest'",
];
return self::get($filter);
}
public function getFinishedDailyQuestTasks(int $timeout): array
{
$arr = [];