diff options
author | David Gay <david@davidgay.org> | 2021-05-29 17:19:56 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-29 17:19:56 -0400 |
commit | aac7563767c5fbc5ef67f4d615833e7523a46df7 (patch) | |
tree | 807e708c32d6d8710bcc1b6f96862ed34b320072 /app/views | |
parent | 8f9dcbf33d5cd3222e4d8e0cfa6f72b1596b917c (diff) |
Conditions and states (boons & banes), with `quarrying_draught`
Diffstat (limited to 'app/views')
-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| %> |