summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-10 00:41:40 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-10 00:41:40 +0200
commita0c0940063f8efe594fa3d00a9f49ad878008c91 (patch)
tree4e015c84bda7451171d734e33e224e0a74768f1d
parent1b44d1d0b0a2f3b337a8f7c52d46df8dbb31cdc8 (diff)
uno plugin: always bolden player names
-rw-r--r--data/rbot/plugins/games/uno.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index 2d9321b8..8ca60e66 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -328,15 +328,15 @@ class UnoGame
if shorts.length > 1
set_discard(p.cards.delete_one(cards.shift))
announce _("%{p} plays %{card} twice!") % {
- :p => source,
+ :p => p,
:card => @discard
}
else
- announce _("%{p} plays %{card}") % { :p => source, :card => @discard }
+ announce _("%{p} plays %{card}") % { :p => p, :card => @discard }
end
if p.cards.length == 1
announce _("%{p} has %{uno}!") % {
- :p => source, :uno => UNO
+ :p => p, :uno => UNO
}
elsif p.cards.length == 0
end_game
@@ -363,13 +363,13 @@ class UnoGame
p = get_player(user)
if @picker > 0
announce _("%{p} passes turn, and has to pick %{b}%{n}%{b} cards!") % {
- :p => user, :b => Bold, :n => @picker
+ :p => p, :b => Bold, :n => @picker
}
deal(p, @picker)
@picker = 0
else
if @player_has_picked
- announce _("%{p} passes turn") % { :p => user }
+ announce _("%{p} passes turn") % { :p => p }
else
announce _("you need to pick a card first")
return