diff options
author | David Gay <david@davidgay.org> | 2021-06-03 21:26:14 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-03 21:26:14 -0400 |
commit | 60c9de4956547d46390c948146aa6e0c865ffcda (patch) | |
tree | 7bbde799de9cec589a53a08b8e4dccf98bfdc8e3 /app/models | |
parent | 7f129f24e351cafafdb4bc58a44ca0d714e30af6 (diff) |
Move timer and results to new game containers which are always visible
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/character.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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? |