diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activity_processor.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index 5e6acaf..c0eaab1 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -225,6 +225,11 @@ class ActivityProcessor end end + # Apply power to random damages + actor.power.times do + dealt_damage[dealt_damage.keys.sample] += 1 + end + resolved_damage = {} dealt_damage.each do |gid, amount| effective_resistance = [target.resistance(gid), amount].min |