From 60c9de4956547d46390c948146aa6e0c865ffcda Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 3 Jun 2021 21:26:14 -0400 Subject: Move timer and results to new game containers which are always visible --- app/models/character.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/character.rb') diff --git a/app/models/character.rb b/app/models/character.rb index 84583a8..1169672 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -275,6 +275,10 @@ class Character < ApplicationRecord end end + def rested_until + Time.now + rested_duration.seconds + end + def award_title(title) title = Title.find_by_gid(title) if title.is_a? String # TODO: Simplify these lines? -- cgit v1.2.3