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
   "The Fools.  Copyright John Morrice 2010. \n\nThe Fools is distributed for educational purposes: it is \nintended to be used by programmers, as an aid in \nlearning how to write mods for CARPS.\n\nThe Fools is loosely based on the rules of the Drones RPG:\nhttp://www.granta.demon.co.uk/drones/\nCopyright Ian Crowther, Sheila Thomas, Victoria Uren 1995-1996\n\nYou should familiarise yourself with the rules before\nplay, though note the following differences and quriks\npresent in this CARPS mod:\n\n* Your character points are present on the character\n  sheet. These are your total character points, rather\n  than the points you have not yet spent available.  \n  Hence you should NOT reduce this value when you spend \n  a point.  \n  As in the Fools rules, you should expect \n  the Game Master to tell you how many points you have \n  available before the game begins.\n\n* Two additional character attributes are added:\n  Intoxication and Discomfiture.\n  These attributes are to keep track of the transitory \n  nature of drunkenness and being the subject of A Sound \n  Drubbing, respectively.  \n  These values range from 0 to -10.  0 indicates \n  sobreity or perfect health, while -10 represents a \n  highly debilated state.\n\n"
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