From 9e1b3b009743b1c9cea5144c0b78af5bd1f9cd3c Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 7 Jul 2021 22:40:34 -0400 Subject: Fix bug causing game to be hard-locked unplayable as a result of attempting to do any activity which has no skill requirements --- CHANGELOG.md | 6 ++++++ app/views/application/_timer.html.erb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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" } %>
- <% required_character_skills.each do |cs| %> + <% required_character_skills&.each do |cs| %>
<%= cs.skill.name %> level <%= cs.level %>
<%= cs.xp_to_next_level %> XP to next level
-- cgit v1.2.3