22 lines
549 B
PHP
22 lines
549 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Console\Commands\Game;
|
||
|
|
|
||
|
|
use App\Services\Game\NerveService;
|
||
|
|
use Illuminate\Console\Command;
|
||
|
|
|
||
|
|
class NerveMidnightRefill extends Command
|
||
|
|
{
|
||
|
|
protected $signature = 'game:nerve-midnight-refill';
|
||
|
|
protected $description = 'Refill nerve to max for all active characters at midnight';
|
||
|
|
|
||
|
|
public function handle(NerveService $nerveService): void
|
||
|
|
{
|
||
|
|
$this->info('Running midnight nerve refill...');
|
||
|
|
|
||
|
|
$count = $nerveService->refillAll();
|
||
|
|
|
||
|
|
$this->info("Nerve refilled for {$count} characters.");
|
||
|
|
}
|
||
|
|
}
|