summaryrefslogtreecommitdiff
path: root/app/views/games
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/games')
-rw-r--r--app/views/games/ptu/encounters/index.html.erb16
-rw-r--r--app/views/games/ptu/index.html.erb6
-rw-r--r--app/views/games/ptu/pokemon/index.html.erb2
3 files changed, 18 insertions, 6 deletions
diff --git a/app/views/games/ptu/encounters/index.html.erb b/app/views/games/ptu/encounters/index.html.erb
index 4712a3c..3da5214 100644
--- a/app/views/games/ptu/encounters/index.html.erb
+++ b/app/views/games/ptu/encounters/index.html.erb
@@ -1,3 +1,5 @@
+<%= link_to "Back", games_ptu_path %>
+
<h1>Encounters</h1>
<p>Use this page to generate random Pokemon for an encounter.</p>
@@ -27,6 +29,7 @@
<th>Level</th>
<th>Gender</th>
<th>Nature</th>
+ <th>Hit Points</th>
<th>HP</th>
<th>ATK</th>
<th>DEF</th>
@@ -42,12 +45,13 @@
<td><%= result[:level] %></td>
<td><%= result[:gender] %></td>
<td><%= result[:nature] %></td>
- <td><%= result[:stats][:hp] %></td>
- <td><%= result[:stats][:atk] %></td>
- <td><%= result[:stats][:def] %></td>
- <td><%= result[:stats][:spatk] %></td>
- <td><%= result[:stats][:spdef] %></td>
- <td><%= result[:stats][:speed] %></td>
+ <td><%= result[:hit_points] %></td>
+ <td><%= result[:stats][:hp] %> (<%= result[:base_stats][:hp] %>)</td>
+ <td><%= result[:stats][:atk] %> (<%= result[:base_stats][:atk] %>)</td>
+ <td><%= result[:stats][:def] %> (<%= result[:base_stats][:def] %>)</td>
+ <td><%= result[:stats][:spatk] %> (<%= result[:base_stats][:spatk] %>)</td>
+ <td><%= result[:stats][:spdef] %> (<%= result[:base_stats][:spdef] %>)</td>
+ <td><%= result[:stats][:speed] %> (<%= result[:base_stats][:speed] %>)</td>
</tr>
<% end %>
</tbody>
diff --git a/app/views/games/ptu/index.html.erb b/app/views/games/ptu/index.html.erb
new file mode 100644
index 0000000..d9b83e7
--- /dev/null
+++ b/app/views/games/ptu/index.html.erb
@@ -0,0 +1,6 @@
+<h1>PTU</h1>
+
+<ul>
+ <li><%= link_to "Pokemon", games_ptu_pokemon_index_path %></li>
+ <li><%= link_to "Encounters", games_ptu_encounters_path %></li>
+</ul>
diff --git a/app/views/games/ptu/pokemon/index.html.erb b/app/views/games/ptu/pokemon/index.html.erb
index a1d7443..46d356e 100644
--- a/app/views/games/ptu/pokemon/index.html.erb
+++ b/app/views/games/ptu/pokemon/index.html.erb
@@ -1,3 +1,5 @@
+<%= link_to "Back", games_ptu_path %>
+
<h1>Pokemon</h1>
<div class="my-4"><%= link_to "New", new_games_ptu_pokemon_path %></div>