From 847ee6ee3d41efe04a46b263e56027db0cf3ee64 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 11 Jul 2021 17:50:38 -0400 Subject: Eliminate hunt leviathan hack --- CHANGELOG.md | 3 +++ app/views/look/look.html.erb | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef753db..6e1cb47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All notable changes to this project will be documented in this file. +## [Unreleased] + + ## [0.1.13.3] - 2021-07-08 ### Skills 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| %>

A <%= ms.monster.name %> is ravaging this location! (<%= ms.remaining_hp %> HP)

- <%# 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" %> -- cgit v1.2.3