From 9ab7dfd99e7015513bfe1a092f257c1c7a7afb1b Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 18 May 2021 18:35:49 -0400 Subject: Display hearth foundation requirements --- app/views/characters/hearth/index.html.erb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views/characters/hearth') 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 %>

You haven't built your hearth yet. First, you'll need to start with a foundation.

+ <% foundation = @all_amenities.find_by_gid("foundation") %> + <%= link_to "Build #{foundation.name}", "#" %> (requires <%= foundation.build_requirements_string(1) %>) <% end %> -- cgit v1.2.3