summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-07-11 17:27:38 -0400
committerDavid Gay <david@davidgay.org>2021-07-11 17:27:38 -0400
commit0fba923dda9440a7817e4dfa191bc242e5e0eb76 (patch)
tree5c666d25ea26b23ac026cd0fedbea5021f8b8e83 /app/views
parent362b92dbebf1ccc529794890153f8c1bfc43637d (diff)
First worldcall spell: Hearth Passage
Diffstat (limited to 'app/views')
-rw-r--r--app/views/application/_results.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/application/_results.html.erb b/app/views/application/_results.html.erb
index a7dc002..d1ec927 100644
--- a/app/views/application/_results.html.erb
+++ b/app/views/application/_results.html.erb
@@ -12,6 +12,12 @@
<% when "hearth_planting" %>
<p>You planted <%= link_to result[:hearth_planting].item.name,
item_path(result[:hearth_planting].item) %> in the loam.</p>
+ <% when "hearth_location" %>
+ <% if current_char.hearth&.location %>
+ <p>You appear in <%= result[:location].name %>.</p>
+ <% else %>
+ <p>Lacking a hearth to return to, you appear in an empty patch of land in <%= result[:location].name %>.</p>
+ <% end %>
<% when "activity" %>
<p>You learned how to <%= result[:activity].name %>!</p>
<% when "monster" %>