Skip to content

Commit

Permalink
Character sheets: ability note in blade
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Dec 28, 2024
1 parent 5a30af5 commit 4cea50b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Models/PluginVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Facades\Avatar;
use App\Facades\CampaignLocalization;
use App\Facades\Mentions;
use Carbon\Carbon;
use Exception;
use Illuminate\Database\Eloquent\Builder;
Expand Down Expand Up @@ -515,6 +516,8 @@ protected function abilities(Entity $entity): array
'type' => $abi->ability->type,
'entry' => $abi->ability->parsedEntry(),
'charges' => $abi->ability->charges,
'note' => Mentions::mapAny($abi, 'note'),
'note_raw' => $abi->note,
'used_charges' => $abi->charges,
'thumb' => '<img src="' . Avatar::entity($abi->ability->entity)->child($abi->ability)->size(40)->thumbnail() . '" class="ability-thumb"></i>',
'link' => '<a href="' . $abi->ability->getLink() . '" class="ability-link">' . $abi->ability->name . '</a>',
Expand Down

0 comments on commit 4cea50b

Please sign in to comment.