diff options
author | David Gay <david@davidgay.org> | 2021-07-11 17:27:38 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-11 17:27:38 -0400 |
commit | 0fba923dda9440a7817e4dfa191bc242e5e0eb76 (patch) | |
tree | 5c666d25ea26b23ac026cd0fedbea5021f8b8e83 /app/lib | |
parent | 362b92dbebf1ccc529794890153f8c1bfc43637d (diff) |
First worldcall spell: Hearth Passage
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activity_processor.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index 72aa85d..3f62d28 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -111,6 +111,10 @@ class ActivityProcessor end end end + when "hearth_location" + location = @character.hearth&.location || Location.find_by_gid("floret") + @character.update(location: location) + @results.push({ type: type, location: location }) else raise "Invalid result type (#{type})" # TODO: Improve this. end |