From d58346df32cd8f6934b7cf068637eb8896456977 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 5 Jun 2021 18:08:06 -0400 Subject: Chance for equipment to break after combat --- app/lib/activity_processor.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/lib') 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 -- cgit v1.2.3