Skip to content

Commit

Permalink
Minor fixes for winter event.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Dec 16, 2023
1 parent 26353f5 commit a998b23
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions app/Console/AfterDeployment/KickOffEventGoalForWinterEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace App\Console\AfterDeployment;

use App\Flare\Models\GlobalEventGoal;
use App\Game\Events\Values\EventType;
use App\Game\Events\Values\GlobalEventForEventTypeValue;
use Illuminate\Console\Command;

class KickOffEventGoalForWinterEvent extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'kick:off-event-goal-for-winter-event';

/**
* The console command description.
*
* @var string
*/
protected $description = 'kick off event goals for winter event.';

/**
* Execute the console command.
*/
public function handle() {
$globalEventGoalData = GlobalEventForEventTypeValue::returnGlobalEventInfoForSeasonalEvents(EventType::WINTER_EVENT);

GlobalEventGoal::create($globalEventGoalData);
}
}
2 changes: 2 additions & 0 deletions app/Game/Events/Services/EventGoalsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class EventGoalsService {
/**
* Fetches the current event goal data for controller action.
*
* @param Character $character
* @return array
*/
public function fetchCurrentEventGoal(Character $character): array {
Expand All @@ -24,6 +25,7 @@ public function fetchCurrentEventGoal(Character $character): array {
/**
* Get the event goal data.
*
* @param Character $character
* @return array
*/
public function getEventGoalData(Character $character): array {
Expand Down
2 changes: 2 additions & 0 deletions app/Game/Messages/Services/PublicMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ protected function shortenedMapName(User $user): ?string {
return 'HELL';
case 'Purgatory':
return 'PURG';
case 'The Ice Plane':
return 'ICE';
case 'Surface':
default:
return 'SUR';
Expand Down
2 changes: 2 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Console\AfterDeployment\AssignNewSkillsToPlayers;
use App\Console\AfterDeployment\CreateCharacterAttackDataCache;
use App\Console\AfterDeployment\CreateMonsterCache;
use App\Console\AfterDeployment\KickOffEventGoalForWinterEvent;
use App\Console\AfterDeployment\RebalanceQuestCurrencyCostsAndRewards;
use App\Console\AfterDeployment\ReduceAlchemyItemsCost;
use App\Console\AfterDeployment\UpdateCharacterCurrencies;
Expand Down Expand Up @@ -46,6 +47,7 @@ public function register(): void {
ReduceAlchemyItemsCost::class,
UpdateCharacterCurrencies::class,
RebalanceQuestCurrencyCostsAndRewards::class,
KickOffEventGoalForWinterEvent::class,

// Development Commands:
CreateCharacter::class,
Expand Down

0 comments on commit a998b23

Please sign in to comment.