summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/application/_navbar.html.erb3
-rw-r--r--app/views/application/_results.html.erb2
-rw-r--r--app/views/characters/skills/index.html.erb2
-rw-r--r--app/views/characters/spells/index.html.erb10
4 files changed, 16 insertions, 1 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" %>
diff --git a/app/views/characters/skills/index.html.erb b/app/views/characters/skills/index.html.erb
index f79b06e..d804384 100644
--- a/app/views/characters/skills/index.html.erb
+++ b/app/views/characters/skills/index.html.erb
@@ -47,7 +47,7 @@
</div>
<% end %>
<% else %>
- <div class="text-gray-500">No items to infix.</div>
+ <div class="text-gray-500">No omens to infix.</div>
<% end %>
<% end %>
<% end %>
diff --git a/app/views/characters/spells/index.html.erb b/app/views/characters/spells/index.html.erb
new file mode 100644
index 0000000..5f415a3
--- /dev/null
+++ b/app/views/characters/spells/index.html.erb
@@ -0,0 +1,10 @@
+<h2 class="text-3xl mb-2">Spells</h2>
+<div data-controller="activity-select">
+ <%= form_with url: start_activity_path, method: :post do |f| %>
+ <%= f.select :id, @spell_activities.map { |a| [a.name, a.id] }, {},
+ { data: { activity_select_target: "select", action: "activity-select#load" } } %>
+ <%= f.number_field :actions, value: 1, size: 5, min: 1, max: 2_000_000_000 %>
+ <%= f.submit "Cast" %>
+ <% end %>
+ <div data-activity-select-target="output" class="my-1"></div>
+</div>