diff options
Diffstat (limited to 'app/views/characters')
-rw-r--r-- | app/views/characters/show.html.erb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index 1b5439a..ee81e76 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -14,6 +14,19 @@ <p class="mb-4">Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).</p> +<div class="my-4"> + <h2 class="text-2xl mb-2">Boons & Banes</h2> + <% if @character.active_states.any? %> + <ul> + <% @character.active_states.each do |state| %> + <ul><%= state.condition.name %> (expires in <%= state.remaining_duration %> seconds)</ul> + <% end %> + </ul> + <% else %> + <p>No boons or banes affect you.</p> + <% end %> +</div> + <% if @character == current_char %> <h2 class="text-2xl mb-4">Combat Styles</h2> <%= form_with url: character_combat_styles_path(character_id: @character) do |f| %> |