Class: Fools::Player::Mod

Inherits:
CARPS::Player::Mod
  • Object
show all
Includes:
Mod
Defined in:
lib/fools/player/mod.rb

Overview

An implementation of the Mod class for playing The Fools

Instance Method Summary collapse

Constructor Details

#initializeMod

Create the controller



31
32
33
34
# File 'lib/fools/player/mod.rb', line 31

def initialize
   super
   load_verifiers
end

Instance Method Details

#descriptionObject

Describe the Fools



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/fools/player/mod.rb', line 37

def description
   <<-END
The Fools.  Copyright John Morrice 2010. 

The Fools is distributed for educational purposes: it is 
intended to be used by programmers, as an aid in 
learning how to write mods for CARPS.

The Fools is loosely based on the rules of the Drones RPG:
http://www.granta.demon.co.uk/drones/
Copyright Ian Crowther, Sheila Thomas, Victoria Uren 1995-1996

You should familiarise yourself with the rules before
play, though note the following differences and quriks
present in this CARPS mod:

* Your character points are present on the character
  sheet. These are your total character points, rather
  than the points you have not yet spent available.  
  Hence you should NOT reduce this value when you spend 
  a point.  
  As in the Fools rules, you should expect 
  the Game Master to tell you how many points you have 
  available before the game begins.

* Two additional character attributes are added:
  Intoxication and Discomfiture.
  These attributes are to keep track of the transitory 
  nature of drunkenness and being the subject of A Sound 
  Drubbing, respectively.  
  These values range from 0 to -10.  0 indicates 
  sobreity or perfect health, while -10 represents a 
  highly debilated state.

END
end

#drink(drunkenness, target) ⇒ Object

See the drinking odds



75
76
77
# File 'lib/fools/player/mod.rb', line 75

def drink drunkenness, target
   see_drink_odds @sheet, drunkenness, target
end

#resist(crust) ⇒ Object

See the chance to resist romance



80
81
82
83
# File 'lib/fools/player/mod.rb', line 80

def resist crust
   lady = CARPS::Sheet::Character.new({"The Outer Crust" => crust})
   see_resist_odds @sheet, lady
end

#sense(resist, crust) ⇒ Object

See the chance of talking sense



95
96
97
98
99
# File 'lib/fools/player/mod.rb', line 95

def sense resist, crust
   lady = CARPS::Sheet::Character.new({"The Outer Crust" => crust})
   sap = CARPS::Sheet::Character.new({"Romantic Resistance" => resist})
   see_sense_odds sap, lady, @sheet
end

#tussle(vim) ⇒ Object

See the odds of winning a fight



86
87
88
89
90
91
92
# File 'lib/fools/player/mod.rb', line 86

def tussle vim
   drone = CARPS::Sheet::Character.new({"Vim & Vigour" => vim})
   # Weapon doesn't matter
   #
   # THIS IS WRONG!
   see_combat_odds @sheet, drone, :stick
end