summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-11-11 20:13:41 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-11-11 20:13:41 +0100
commitaed54060e92be8af11f7f58bddeffb5e2c997e27 (patch)
tree0e9e3fcfaf137551cb49a360e7301a5d91cf6d47 /data
parent7c57d4bfc7e178147f6790cb257366266e639ef5 (diff)
UNO plugin: add top and topwin commands to help
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/games/uno.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index bb640125..25c9bdfc 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -845,8 +845,14 @@ class UnoPlugin < Plugin
_("The points won with a game of %{uno} are totalled from the cards remaining in the hands of the other players."),
_("Each normal (not special) card is worth its face value (from 0 to 9 points)."),
_("Each colored special card (+2, Reverse, Skip) is worth 20 points."),
- _("Each Wild and Wild +4 is worth 50 points.")
+ _("Each Wild and Wild +4 is worth 50 points."),
+ help(plugin, 'top'),
+ help(plugin, 'topwin'),
].join(" ") % { :uno => UnoGame::UNO }
+ when 'top'
+ _("You can see the scoring table with 'uno top N' where N is the number of top scores to show.")
+ when 'topwin'
+ _("You can see the winners table with 'uno topwin N' where N is the number of top winners to show.")
when /cards?/
[
_("There are 108 cards in a standard %{uno} deck."),
@@ -863,7 +869,7 @@ class UnoPlugin < Plugin
_("'uno end' to end the game before its natural completion")
].join("; ")
else
- _("%{uno} game. !uno to start a game. see 'help uno rules' for the rules, 'help uno admin' for admin commands. In-game commands: %{cmds}.") % {
+ _("%{uno} game. !uno to start a game. see 'help uno rules' for the rules, 'help uno admin' for admin commands, 'help uno score' for scoring rules. In-game commands: %{cmds}.") % {
:uno => UnoGame::UNO,
:cmds => help(plugin, 'commands')
}