Class: Fools::Rules::Combat
- Inherits:
-
CARPS::Rule
- Object
- CARPS::Rule
- Fools::Rules::Combat
- Includes:
- Dice
- Defined in:
- lib/fools/rules/combat/rule.rb
Overview
Combat
Instance Method Summary collapse
-
#initialize ⇒ Combat
constructor
Add the actions.
Methods included from Dice
#combat, #drink, #resist_romance, #talk_sense
Constructor Details
#initialize ⇒ Combat
Add the actions
92 93 94 95 96 97 |
# File 'lib/fools/rules/combat/rule.rb', line 92 def initialize super add_action :<, 0, DefenderWins add_action :>, 0, AttackerWins add_action :==, 0, NoOneWins end |