diff options
-rw-r--r-- | app/views/characters/show.html.erb | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index 819881b..fb44e8f 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -11,10 +11,48 @@ <p class="mb-4">Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).</p> -<h2 class="text-2xl">Skills</h2> +<div class="my-6"> + <h2 class="text-2xl mb-4">Combat Statistics</h2> + <table class="table-auto"> + <tbody> + <tr> + <th class="table-cell-padded">Wounds</th> + <td class="table-cell-padded"><%= @character.wounds %></td> + </tr> + <tr> + <th class="table-cell-padded">Max HP</th> + <td class="table-cell-padded"><%= @character.max_hp %></td> + </tr> + <tr> + <th class="table-cell-padded">Speed</th> + <td class="table-cell-padded"><%= @character.speed %></td> + </tr> + <tr> + <th class="table-cell-padded">Accuracy</th> + <td class="table-cell-padded"><%= @character.accuracy %></td> + </tr> + <tr> + <th class="table-cell-padded">Power</th> + <td class="table-cell-padded"><%= @character.power %></td> + </tr> + <tr> + <th class="table-cell-padded">Evasion</th> + <td class="table-cell-padded"><%= @character.evasion %></td> + </tr> + <tr> + <th class="table-cell-padded">Block</th> + <td class="table-cell-padded"><%= @character.block %></td> + </tr> + </tbody> + </table> +</div> + +<div class="my-6"> + <h2 class="text-2xl mb-4">Skills</h2> -<ul> - <% @character.character_skills.ordered_by_skill_name.each do |cs| %> - <li><%= cs.skill.name %> Level <%= cs.level %> (<%= cs.xp %> XP)</li> - <% end %> -</ul> + <ul> + <% @character.character_skills.ordered_by_skill_name.each do |cs| %> + <li><%= cs.skill.name %> Level <%= cs.level %> (<%= cs.xp %> XP)</li> + <% end %> + </ul> +</div> |