diff options
author | David Gay <david@davidgay.org> | 2021-06-15 19:54:29 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-15 20:00:06 -0400 |
commit | d2a31e04d19796a600a932a3491e056fe2c89af2 (patch) | |
tree | 36c43f03b12883c6dc4e2899e3c0ab1b8726b307 /app/views/application | |
parent | 53c9df5feb8ad4ebef8f40840d29255a81edb6df (diff) |
Basic spellcasting
Diffstat (limited to 'app/views/application')
-rw-r--r-- | app/views/application/_navbar.html.erb | 3 | ||||
-rw-r--r-- | app/views/application/_results.html.erb | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/application/_navbar.html.erb b/app/views/application/_navbar.html.erb index 3436619..aaec030 100644 --- a/app/views/application/_navbar.html.erb +++ b/app/views/application/_navbar.html.erb @@ -13,6 +13,9 @@ <%= link_to "Inventory", character_items_path(current_char) %> </li> <li class="mr-6 inline"> + <%= link_to "Spells", character_spells_path(current_char) %> + </li> + <li class="mr-6 inline"> <%= link_to "Hearth", character_hearth_path(current_char) %> </li> <li class="mr-6 inline"> diff --git a/app/views/application/_results.html.erb b/app/views/application/_results.html.erb index ec62991..691f1d5 100644 --- a/app/views/application/_results.html.erb +++ b/app/views/application/_results.html.erb @@ -24,6 +24,8 @@ <p class="text-xs">You gained <%= result[:xp] %> <%= result[:skill].name %> XP.</p> <% when "title" %> <p>You earned the title <%= render "application/components/text/title", title: result[:title] %>!</p> + <% when "condition" %> + <p>You gained the <%= result[:condition].name %> condition.</p> <% when "message" %> <p><%= result[:body] %></p> <% when "warning" %> |