summaryrefslogtreecommitdiff
path: root/app/views/characters/hearth/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/characters/hearth/index.html.erb')
-rw-r--r--app/views/characters/hearth/index.html.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb
index 421d5e6..f087ede 100644
--- a/app/views/characters/hearth/index.html.erb
+++ b/app/views/characters/hearth/index.html.erb
@@ -1,8 +1,10 @@
+<% foundation = @all_amenities.find_by_gid("foundation") %>
<h1 class="text-3xl">Hearth</h1>
-<% if current_char.hearth %>
+<% if current_char.hearth.has_amenity?(foundation) %>
<% else %>
<p>You haven't built your hearth yet. First, you'll need to start with a foundation.</p>
- <% foundation = @all_amenities.find_by_gid("foundation") %>
- <%= link_to "Build #{foundation.name}", "#" %> (requires <%= foundation.build_requirements_string(1) %>)
+ <% construct_activity = foundation.construct_activity(1) %>
+ <%= link_to construct_activity.name, start_activity_path(construct_activity), method: :post %>
+ (costs <%= construct_activity.cost_string %>)
<% end %>