diff options
author | David Gay <david@davidgay.org> | 2021-06-06 22:19:41 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-06 22:19:41 -0400 |
commit | 8acfe2147ab89f03b1e263fb97eef9fc8c3396b2 (patch) | |
tree | c994759a34a922a1bebbe5a410407e9e9505814d /app | |
parent | 307b921892a2efe9d956b00cd7992fe1402c6150 (diff) |
Do bash damage if you don't have anything else
Diffstat (limited to 'app')
-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| |