summaryrefslogtreecommitdiff
path: root/app/models/character.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-03 21:26:14 -0400
committerDavid Gay <david@davidgay.org>2021-06-03 21:26:14 -0400
commit60c9de4956547d46390c948146aa6e0c865ffcda (patch)
tree7bbde799de9cec589a53a08b8e4dccf98bfdc8e3 /app/models/character.rb
parent7f129f24e351cafafdb4bc58a44ca0d714e30af6 (diff)
Move timer and results to new game containers which are always visible
Diffstat (limited to 'app/models/character.rb')
-rw-r--r--app/models/character.rb4
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?