summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-07-07 22:40:34 -0400
committerDavid Gay <david@davidgay.org>2021-07-07 22:40:34 -0400
commit9e1b3b009743b1c9cea5144c0b78af5bd1f9cd3c (patch)
tree6cae49777d133bbb1f2a8f2bc130897cf9dc1fea
parent42fdbb46c435da186467a192d4f44642a60656a5 (diff)
Fix bug causing game to be hard-locked unplayable as a result of attempting to do any activity which has no skill requirements
-rw-r--r--CHANGELOG.md6
-rw-r--r--app/views/application/_timer.html.erb2
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3a20813..dbc6778 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.
+## [0.1.13.2] - 2021-07-07
+
+### Fixes
+- Bug causing game to be hard-locked unplayable as a result of attempting to do any activity which has no skill
+ requirements.
+
## [0.1.13.1] - 2021-07-07
### Chat
diff --git a/app/views/application/_timer.html.erb b/app/views/application/_timer.html.erb
index de82546..ea710e3 100644
--- a/app/views/application/_timer.html.erb
+++ b/app/views/application/_timer.html.erb
@@ -17,7 +17,7 @@
<% required_character_skills = current_char.activity.whatnot[:requirements]&.filter_map { |r| current_char.character_skills.find_by(skill: Skill.find_by_gid(r[:gid])) if r[:type] == "skill" } %>
<div class="text-center text-sm">
- <% required_character_skills.each do |cs| %>
+ <% required_character_skills&.each do |cs| %>
<div class="space-y-1">
<div class="text-xs"><%= cs.skill.name %> level <%= cs.level %></div>
<div><%= cs.xp_to_next_level %> XP to next level</div>