diff options
author | David Gay <david@davidgay.org> | 2021-07-14 17:55:49 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-14 17:55:49 -0400 |
commit | acc7e4df81de0ad27b296c45166b6efc00096459 (patch) | |
tree | 194b564045ee6aab129c0cf03c39c6d131cc2e73 | |
parent | 3f17361f21165fc8e7af6193a75d0a8d564a4e3f (diff) |
Fix bug where multiple activities could be learned at once
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | app/lib/activity_processor.rb | 1 |
2 files changed, 2 insertions, 0 deletions
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" |