<% foundation = @all_amenities.find_by_gid("foundation") %>

Hearth

<% if current_char.hearth.has_amenity?(foundation) %>

Here is your hearth, your safe haven and stronghold against all that ravages and thrashes in these realms. Amidst this great dream of planar chaos and destruction, you have built something.

<% current_char.hearth.built_hearth_amenities.each do |bhi| %>

<%= bhi.hearth_amenity.name %>

Level <%= bhi.level %>

<%= bhi.hearth_amenity.description %>

<% end %>
<% else %>

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

<% construct_activity = foundation.construct_activity(1) %> <%= link_to construct_activity.name, start_activity_path(construct_activity), method: :post %> (costs <%= construct_activity.cost_string %>) <% end %>