From a0c0940063f8efe594fa3d00a9f49ad878008c91 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 10 Apr 2008 00:41:40 +0200 Subject: uno plugin: always bolden player names --- data/rbot/plugins/games/uno.rb | 10 +++++----- 1 file 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 -- cgit v1.2.3