summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-18 18:35:49 -0400
committerDavid Gay <david@davidgay.org>2021-05-18 18:35:49 -0400
commit9ab7dfd99e7015513bfe1a092f257c1c7a7afb1b (patch)
treedb536029ff1031d33468899e22b3c26dfcddbe2d /app/views
parent4a6c06eb681575dbf1ee58d3b1f667e79051b1e2 (diff)
Display hearth foundation requirements
Diffstat (limited to 'app/views')
-rw-r--r--app/views/characters/hearth/index.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb
index ec055d1..421d5e6 100644
--- a/app/views/characters/hearth/index.html.erb
+++ b/app/views/characters/hearth/index.html.erb
@@ -3,4 +3,6 @@
<% if current_char.hearth %>
<% 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) %>)
<% end %>