diff --git a/dist/app/Http/Controllers/Api/Player/InboxController.php b/dist/app/Http/Controllers/Api/Player/InboxController.php index da2cac1..8c80bad 100644 --- a/dist/app/Http/Controllers/Api/Player/InboxController.php +++ b/dist/app/Http/Controllers/Api/Player/InboxController.php @@ -157,7 +157,7 @@ public function claimMessage(ClaimInboxMessageRequest $request) $response = new InboxMessageClaimResponse(); foreach($claimable as $reward) { - if($reward->rewardType === 'Currency') { + if($reward->type === 'Currency') { switch ($reward->id) { case 'CurrencyA': $oldAmount = $playerData->currency_a; @@ -184,7 +184,7 @@ public function claimMessage(ClaimInboxMessageRequest $request) $newAmount - $oldAmount, ); } - else if($reward->rewardType === 'Inventory') { + else if($reward->type === 'Inventory') { $itemUuid = Uuid::fromString($reward->id)->toString(); try { diff --git a/dist/app/Http/Responses/Api/Player/Inbox/InboxMessageReward.php b/dist/app/Http/Responses/Api/Player/Inbox/InboxMessageReward.php index 62b83da..8e99f4a 100644 --- a/dist/app/Http/Responses/Api/Player/Inbox/InboxMessageReward.php +++ b/dist/app/Http/Responses/Api/Player/Inbox/InboxMessageReward.php @@ -8,14 +8,14 @@ class InboxMessageReward { public function __construct( - public string $rewardType, + public string $type, public int $amount, public string $id, ) {} public function getRewardName(): string { - if ($this->rewardType === 'Currency') { + if ($this->type === 'Currency') { return match ($this->id) { 'CurrencyA' => 'Currency A', 'CurrencyB' => 'Currency B', diff --git a/dist/app/Models/Game/Inbox/InboxMessage.php b/dist/app/Models/Game/Inbox/InboxMessage.php index bc55e8d..c68c00a 100644 --- a/dist/app/Models/Game/Inbox/InboxMessage.php +++ b/dist/app/Models/Game/Inbox/InboxMessage.php @@ -66,7 +66,7 @@ public function getClaimables(): array { $result = []; foreach ($this->claimable as $claimable) { $result[] = new InboxMessageReward( - $claimable['rewardType'], + $claimable['type'], $claimable['amount'], $claimable['id'], ); diff --git a/dist/resources/views/components/admin/tools/item-selector.blade.php b/dist/resources/views/components/admin/tools/item-selector.blade.php index c43fc9d..28232aa 100644 --- a/dist/resources/views/components/admin/tools/item-selector.blade.php +++ b/dist/resources/views/components/admin/tools/item-selector.blade.php @@ -12,7 +12,7 @@