From 4cea50be9f9010491ea64cac81121f568e7585c4 Mon Sep 17 00:00:00 2001 From: ilestis Date: Sat, 28 Dec 2024 15:27:36 -0600 Subject: [PATCH] Character sheets: ability note in blade --- app/Models/PluginVersion.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/PluginVersion.php b/app/Models/PluginVersion.php index 2f9592842..ec0aa2c8c 100644 --- a/app/Models/PluginVersion.php +++ b/app/Models/PluginVersion.php @@ -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; @@ -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' => '', 'link' => '' . $abi->ability->name . '',