Class: Fools::Rules::Drink

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

Overview

Rule which performs drinking

Instance Method Summary collapse

Methods included from Dice

#combat, #drink, #resist_romance, #talk_sense

Constructor Details

#initializeDrink

Add the actions



109
110
111
112
113
114
115
116
117
# File 'lib/fools/rules/drink/rule.rb', line 109

def initialize
   super
   add_action :>=, 0, ColdSober
   add_action :==, -1, Happy
   add_action (-3..-2), Tipsy
   add_action (-5..-4), Drunk
   add_action (-8..-6), VeryDrunk
   add_action :<=, -9, Paralytic
end