diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/character.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/character.rb b/app/models/character.rb index 8a72ccd..b4e597b 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -210,7 +210,7 @@ class Character < ApplicationRecord end def percentage_of_activity_completed - (1 - (activity_time_remaining / activity_duration)) * 100 + (1 - (activity_time_remaining / (activity_duration - rested_duration_to_spend_on_activity))) * 100 end def rested_duration_to_spend_on_activity |