Class: Fools::Rules::Combat

Inherits:
CARPS::Rule
  • Object
show all
Includes:
Dice
Defined in:
lib/fools/rules/combat/rule.rb

Overview

Combat

Instance Method Summary collapse

Methods included from Dice

#combat, #drink, #resist_romance, #talk_sense

Constructor Details

#initializeCombat

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