diff options
author | David Gay <david@davidgay.org> | 2021-06-05 18:08:06 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-05 18:08:37 -0400 |
commit | d58346df32cd8f6934b7cf068637eb8896456977 (patch) | |
tree | 16dc0b472917fa1d69a86990a77f3835a1d159f1 /app/lib | |
parent | 4e89b79597f87057b866b715173c0a6da77c8cfa (diff) |
Chance for equipment to break after combat
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activity_processor.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index 004f8de..d8004f6 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -251,6 +251,9 @@ class ActivityProcessor end end end + @character.do_equipment_break_checks.each do |broken_item| + @results.push({ type: "warning", message: "Your #{broken_item.name} was damaged beyond repair!" }) + end break end end |