From acc7e4df81de0ad27b296c45166b6efc00096459 Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 14 Jul 2021 17:55:49 -0400 Subject: Fix bug where multiple activities could be learned at once --- CHANGELOG.md | 1 + app/lib/activity_processor.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3e9bc2..aa58629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. - Changed references to "Floret Region" in leviathan hunting activity to just "Floret", as per the rename. - Added message output when you would learn how to do a new activity (e.g. cast a new spell), but you already know how how to do it. +- Fixed bug where multiple activities could be learned at once (e.g. multiple spells from one spellpage). ### Hearth - Hearths now have locations, like characters do. All existing hearths are now located at Floret. diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index d9b694e..b8456c8 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -114,6 +114,7 @@ class ActivityProcessor @character.learned_activities.create(activity: new_activity) @results.push({ type: type, activity: new_activity }) end + break end end when "location" -- cgit v1.2.3