Skip to content
Snippets Groups Projects
Commit d59ecc6a authored by mcmlxxix's avatar mcmlxxix
Browse files

fixed variable scope

parent a4901a3c
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
if there are duplicate command names, they will be superseded in the order if there are duplicate command names, they will be superseded in the order
in which they are loaded (in the order they are listed in ircbot.ini). in which they are loaded (in the order they are listed in ircbot.ini).
*/ */
working_dir=this.dir; var working_dir=this.dir;
/* This method is executed by the IRCBot during its "save_everything()" cycle */ /* This method is executed by the IRCBot during its "save_everything()" cycle */
function save() function save()
......
poker_dir=this.dir; var poker_dir=this.dir;
poker_scores=[]; var poker_scores=[];
notice_interval=10; //seconds var notice_interval=10; //seconds
activity_timeout=120; var activity_timeout=120;
poker_games=[]; var poker_games=[];
// Game functions // Game functions
function save() function save()
...@@ -61,7 +61,7 @@ function Poker_Game() ...@@ -61,7 +61,7 @@ function Poker_Game()
function Poker_Player() function Poker_Player()
{ {
this.cards=[]; this.cards=[];
this.money=100; this.money=1000;
this.bet=0; this.bet=0;
this.has_bet=false; this.has_bet=false;
this.active=true; this.active=true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment