diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/application/_results.html.erb | 6 |
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" %> |