diff options
author | David Gay <david@davidgay.org> | 2021-07-07 21:46:13 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-07 21:46:22 -0400 |
commit | 4850c9d042f85f54025ba528fe987f390c344dcc (patch) | |
tree | 15fa17c5ac02445f7248bd9041c82eca0b5ad66b /app/lib | |
parent | 9c015e16340c80a35aad1cde299218c650f5ba35 (diff) |
Give bollyrots and crypt writhes double the damage capacity at night
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activity_processor.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index cca2185..5d80b15 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -271,8 +271,9 @@ class ActivityProcessor dealt_damage = {} actor.damage_ranges.each do |data| + dealt_damage[data[:gid]] ||= 0 damage_roll = rand(data[:min]..data[:max]) - dealt_damage[data[:gid]] = damage_roll + dealt_damage[data[:gid]] += damage_roll end # If you can't do damage any other way, hit 'em with your fists! |