diff options
author | David Gay <david@davidgay.org> | 2021-07-14 17:08:56 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-14 17:08:56 -0400 |
commit | f02a38cfc1a38a0c1fdc4d00cc10f47bb987b7d0 (patch) | |
tree | 2c4c02063d2585d720eee4bde06b35106dc0c097 /app/views | |
parent | 847ee6ee3d41efe04a46b263e56027db0cf3ee64 (diff) |
Only allow one living monster_spawn per location
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/look/look.html.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/look/look.html.erb b/app/views/look/look.html.erb index 8b41e0f..ef0f6c4 100644 --- a/app/views/look/look.html.erb +++ b/app/views/look/look.html.erb @@ -3,6 +3,7 @@ <p class="italic"><%= @location.description %></p> </div> +<%# TODO: Don't load into memory %> <% @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> <% activity = Activity.find_by_gid("beastslay_leviathan_#{@location.gid}") %> |