-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added lots of little fixes. - Added logic for ending the winter event. - Added logic for players who have the most kingdoms when the event ends. - Added logic for minimum requirment of kills to get a phase reward.
- Loading branch information
Showing
29 changed files
with
663 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use App\Flare\Models\Character; | ||
use App\Flare\Models\GameMap; | ||
use App\Flare\Values\MapNameValue; | ||
use Illuminate\Console\Command; | ||
|
||
class TestQuery extends Command { | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'app:test-query'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Command description'; | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle() { | ||
|
||
$gameMap = GameMap::where('name', MapNameValue::ICE_PLANE)->first(); | ||
|
||
$result = Character::join('maps', 'maps.character_id', '=', 'characters.id') | ||
->where('maps.game_map_id', $gameMap->id)->get(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Game\Events\Events; | ||
|
||
use Illuminate\Broadcasting\PresenceChannel; | ||
use Illuminate\Broadcasting\Channel; | ||
use Illuminate\Queue\SerializesModels; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Broadcasting\InteractsWithSockets; | ||
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; | ||
|
||
class UpdateEventGoalProgress implements ShouldBroadcastNow { | ||
use Dispatchable, InteractsWithSockets, SerializesModels; | ||
|
||
|
||
/** | ||
* @var array $eventGoalData | ||
*/ | ||
public array $eventGoalData; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param User $user | ||
* @param array $boons | ||
*/ | ||
public function __construct(array $eventGoalData) { | ||
$this->eventGoalData = $eventGoalData; | ||
} | ||
|
||
/** | ||
* Get the channels the event should broadcast on. | ||
* | ||
* @return Channel|array | ||
* @codeCoverageIgnore | ||
*/ | ||
public function broadcastOn() { | ||
return new PresenceChannel('update-event-goal-progress'); | ||
} | ||
} |
Oops, something went wrong.