summaryrefslogtreecommitdiff
path: root/app/lib/activity_processor.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-07-14 17:47:02 -0400
committerDavid Gay <david@davidgay.org>2021-07-14 17:48:30 -0400
commit456cfb0df874ac8cfb217c19c723a3cf738e524f (patch)
tree06da9663e2df553d389a275e57cc3b856e9eb558 /app/lib/activity_processor.rb
parent9cb32635c8df98ef61475ff84a16f9f630e31620 (diff)
New spell: Floret Passage (also code that allows location results)
Diffstat (limited to 'app/lib/activity_processor.rb')
-rw-r--r--app/lib/activity_processor.rb4
1 files changed, 4 insertions, 0 deletions
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)