diff options
Diffstat (limited to 'app/lib/activity_processor.rb')
-rw-r--r-- | app/lib/activity_processor.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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| |