<%= @character.name %>
- <%= link_to "Titles", character_titles_path(@character) %>
- <%= link_to "Rankings", character_rankings_path(@character) %>
First entered the planes
<%= pluralize((Date.current - @character.created_at.to_date).to_i, "day") %> ago.
Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).
Boons & Banes
<% if @character.active_states.any? %>
<% @character.active_states.each do |state| %>
<%= state.condition.name %> (expires in <%= distance_of_time_in_words_to_now(state.expires_at)%>)
<% end %>
<% else %>
No boons or banes affect you.
<% end %>
<% if @character == current_char %>
Combat Styles
<%= form_with url: character_combat_styles_path(character_id: @character) do |f| %>
<%= f.label :offensive_style, "Offensive" %>
<%= f.select :offensive_style, Character.offensive_styles.keys.to_a, selected: @character.offensive_style %>
<%= f.label :defensive_style, "Defensive" %>
<%= f.select :defensive_style, Character.defensive_styles.keys.to_a, selected: @character.defensive_style %>
<%= f.submit "Set" %>
<% end %>
<% end %>
Combat Statistics
Wounds |
<%= @character.wounds %> / <%= @character.max_wounds %> |
Max HP |
<%= @character.max_hp %> |
Speed |
<%= @character.speed %> |
Accuracy |
<%= @character.accuracy(with_combat_style: true) %> |
Power |
<%= @character.power(with_combat_style: true) %> |
Evasion |
<%= @character.evasion(with_combat_style: true) %> |
Block |
<%= @character.block(with_combat_style: true) %> |
Block Value |
<%= @character.block_value %> |
Skills
<% @character.character_skills.ordered_by_skill_name.each do |cs| %>
<%= cs.skill.name %> |
<%= cs.level %> |
<%= cs.xp_to_next_level %> |
<%= cs.xp %> |
<% end %>
<% if @character == current_char %>
<%= link_to "Manage account", edit_user_registration_path, class: "text-sm" %>
<% end %>