diff options
author | David Gay <david@davidgay.org> | 2021-06-16 19:45:34 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-16 19:45:34 -0400 |
commit | 8b9191b20faf7473e42b08f5cbf73783f4353b4a (patch) | |
tree | 61f36978f917ac30f322b05fe82999d27ed467ba /app/models | |
parent | 361acfad2162e08a962c63c4443641fbbd812089 (diff) |
Stinging Rays spell as the first DoT
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 a26fb93..b7649c3 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -383,6 +383,10 @@ class Character < ApplicationRecord effects.filter_map { |e| { gid: e[:gid], min: e[:min], max: e[:max] } if e[:type] == "damage" } end + def dots + effects.filter_map { |e| { gid: e[:gid], min: e[:min], max: e[:max], message: e[:message] } if e[:type] == "dot" } + end + def planting_spots [total_stat_change("planting_spots"), 0].max end |