From 0fba923dda9440a7817e4dfa191bc242e5e0eb76 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 11 Jul 2021 17:27:38 -0400 Subject: First worldcall spell: Hearth Passage --- app/lib/activity_processor.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/lib') 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 -- cgit v1.2.3