diff options
author | David Gay <david@davidgay.org> | 2021-06-06 15:24:33 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-06 15:24:39 -0400 |
commit | 11c868693391f8d48e40cff16cfaf1cee0ad3f57 (patch) | |
tree | 1e88396a3699f951229a96a809f001df94b5445d /app | |
parent | d2afb75b2cf512158d82ea2513ee4fb6662362a7 (diff) |
Re-apply power stat to combat procedure
Diffstat (limited to 'app')
-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 |