summaryrefslogtreecommitdiff
path: root/app/views/characters/hearth/index.html.erb
blob: f087ede34ac17b920b6b4c267bebb70516491396 (plain)
1
2
3
4
5
6
7
8
9
10
<% foundation = @all_amenities.find_by_gid("foundation") %>
<h1 class="text-3xl">Hearth</h1>

<% 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>
  <% construct_activity = foundation.construct_activity(1) %>
  <%= link_to construct_activity.name, start_activity_path(construct_activity), method: :post %>
  (costs <%= construct_activity.cost_string %>)
<% end %>