summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-07-14 17:55:49 -0400
committerDavid Gay <david@davidgay.org>2021-07-14 17:55:49 -0400
commitacc7e4df81de0ad27b296c45166b6efc00096459 (patch)
tree194b564045ee6aab129c0cf03c39c6d131cc2e73
parent3f17361f21165fc8e7af6193a75d0a8d564a4e3f (diff)
Fix bug where multiple activities could be learned at once
-rw-r--r--CHANGELOG.md1
-rw-r--r--app/lib/activity_processor.rb1
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"