From 8acfe2147ab89f03b1e263fb97eef9fc8c3396b2 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 6 Jun 2021 22:19:41 -0400 Subject: Do bash damage if you don't have anything else --- app/lib/activity_processor.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app') diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index 11f0db0..bc0d058 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -241,6 +241,12 @@ class ActivityProcessor dealt_damage[data[:gid]] = damage_roll end + # If you can't do damage any other way, hit 'em with your fists! + if actor.damage_ranges.none? + dealt_damage["bash"] = rand(1..2) + combat_message.call("Lacking any other weapon, #{actor.name} thrashes wildly!") + end + if base_accuracy_roll == 20 combat_message.call("#{actor.name} landed a critical hit!") dealt_damage.each do |gid, amount| -- cgit v1.2.3