diff options
author | David Gay <david@davidgay.org> | 2021-07-11 17:50:38 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-11 17:50:38 -0400 |
commit | 847ee6ee3d41efe04a46b263e56027db0cf3ee64 (patch) | |
tree | e8a67b255a47d1dda485874ae9e341f5b6c267ed /app | |
parent | 943e49eb877ab0aaaba6e876e3ca7aef5688e158 (diff) |
Eliminate hunt leviathan hack
Diffstat (limited to 'app')
-rw-r--r-- | app/views/look/look.html.erb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/look/look.html.erb b/app/views/look/look.html.erb index 2f1074a..8b41e0f 100644 --- a/app/views/look/look.html.erb +++ b/app/views/look/look.html.erb @@ -5,8 +5,7 @@ <% @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") %> + <% activity = Activity.find_by_gid("beastslay_leviathan_#{@location.gid}") %> <%= form_with url: start_activity_path(activity) do |f| %> <%= f.hidden_field :id, value: activity.id %> <%= f.submit "Hunt" %> |