diff options
Diffstat (limited to 'app/views/application/_results.html.erb')
-rw-r--r-- | app/views/application/_results.html.erb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/application/_results.html.erb b/app/views/application/_results.html.erb index a7dc002..71d6992 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" %> @@ -20,6 +26,8 @@ <% when "monster_spawn" %> <p>You found the <%= result[:monster_spawn].monster.name %>!</p> <p class="text-xs italic"><%= result[:monster_spawn].monster.description %></p> + <% when "create_monster_spawn" %> + <p>You've called a <%= result[:monster].name %>!</p> <% when "xp" %> <p class="text-xs">You gained <%= result[:xp] %> <%= result[:skill].name %> XP.</p> <% when "title" %> |