Permalink
Browse files

Printing headers and begun including attack type

  • Loading branch information...
phss committed Apr 1, 2012
1 parent 2d9430f commit c190a28848e9945303a5ff1872ec4f7481143964
Showing with 2 additions and 1 deletion.
  1. +1 −0 games/kill_them_all/main.rb
  2. +1 −1 games/kill_them_all/scribe/combat_scribe.rb
@@ -2,6 +2,7 @@
require "./combat"
require "./util/dice"
require "./scribe/combat_scribe"
+require "./scribe/dodged_description"
fighter1 = Fighter.new("Bob", 10, 5, 5)
fighter2 = Fighter.new("Dave", 10, 5, 1)
@@ -13,7 +13,7 @@ def register_attack(attacker, defender, type, damage)
if damage > 0
puts "#{defender.name} was mauled by #{damage} points by #{attacker.name}."
else
- puts "#{defender.name} dodged a vicious attack from #{attacker.name}."
+ puts DodgedDescription.for(attacker, defender)
end
end

0 comments on commit c190a28

Please sign in to comment.