summaryrefslogtreecommitdiff
path: root/app/views/locations
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-06 19:06:46 -0400
committerDavid Gay <david@davidgay.org>2021-06-06 19:06:46 -0400
commite37402ff309311a14d7dd666d0d8b29517504017 (patch)
tree3d6604805e9004bc0c37130f451376e79a68c989 /app/views/locations
parent3622126380278d9bed8ea0e1e05a0bd1ea040596 (diff)
Leviathans
Diffstat (limited to 'app/views/locations')
-rw-r--r--app/views/locations/show.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb
index ff7b2a8..fcc668a 100644
--- a/app/views/locations/show.html.erb
+++ b/app/views/locations/show.html.erb
@@ -3,6 +3,16 @@
<p class="italic"><%= @location.description %></p>
</div>
+<% @location.monster_spawns.select(&:alive?).each do |ms| %>
+ <p class="text-yellow-400">A <%= ms.monster.name %> is ravaging this location! (<%= ms.remaining_hp %> HP)</p>
+ <%# TODO: HACK %>
+ <% activity = Activity.find_by_gid("beastslay_leviathan_floret_region") %>
+ <%= form_with url: start_activity_path(activity) do |f| %>
+ <%= f.hidden_field :id, value: activity.id %>
+ <%= f.submit "Hunt" %>
+ <% end %>
+<% end %>
+
<% @location.activities.order(:name).each do |activity| %>
<div class="my-4">
<h2 class="text-xl"><%= link_to activity.name, activity_path(activity) %></h2>