From 456cfb0df874ac8cfb217c19c723a3cf738e524f Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 14 Jul 2021 17:47:02 -0400 Subject: New spell: Floret Passage (also code that allows location results) --- 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 d14282e..8e5df1b 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -114,6 +114,10 @@ class ActivityProcessor end end end + when "location" + location = Location.find_by_gid(result[:gid]) + @character.update(location: location) + @results.push({ type: type, location: location }) when "hearth_location" location = @character.hearth&.location || Location.find_by_gid("floret") @character.update(location: location) -- cgit v1.2.3