summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/games/roulette.rb
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-02-19 16:26:34 +0200
committerRaine Virta <rane@kapsi.fi>2009-02-19 16:26:34 +0200
commit783ffa4235330029d661752b1023db635b26f2b3 (patch)
treee60c7a89e7053120b33810230401f5490a3cb697 /data/rbot/plugins/games/roulette.rb
parentff452ad1bf111025f0661274ac7fb8b2f769a293 (diff)
remove whitespace
Diffstat (limited to 'data/rbot/plugins/games/roulette.rb')
-rw-r--r--data/rbot/plugins/games/roulette.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/games/roulette.rb b/data/rbot/plugins/games/roulette.rb
index adf755fd..6d834788 100644
--- a/data/rbot/plugins/games/roulette.rb
+++ b/data/rbot/plugins/games/roulette.rb
@@ -2,13 +2,13 @@ define_structure :RouletteHistory, :games, :shots, :deaths, :misses, :wins
class RoulettePlugin < Plugin
Config.register Config::BooleanValue.new('roulette.autospin',
- :default => true,
+ :default => true,
:desc => "Automatically spins the roulette at the butlast shot")
Config.register Config::BooleanValue.new('roulette.kick',
- :default => false,
+ :default => false,
:desc => "Kicks shot players from the channel")
Config.register Config::BooleanValue.new('roulette.twice_in_a_row',
- :default => false,
+ :default => false,
:desc => "Allow players to go twice in a row")
def initialize
@@ -174,7 +174,7 @@ class RoulettePlugin < Plugin
k = match[1]
total_players += 1
-
+
win_rate = v.wins.to_f / v.games * 100
if h_win_percent[0].nil? || win_rate > h_win_percent[1] && v.games > 2
h_win_percent = [[k], win_rate]