blob: fb44e8fe80123b56bb69c40d76d0344372dff84f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<h1 class="text-3xl mb-4">
<%= @character.name %>
</h1>
<div class="text-lg mb-4">
<%= link_to "Titles", character_titles_path(@character) %>
</div>
<p class="mb-4">First entered the planes
<%= pluralize((Date.current - @character.created_at.to_date).to_i, "day") %> ago.</p>
<p class="mb-4">Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).</p>
<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>
</div>
|