Commit 67126c06 authored by mercury233's avatar mercury233

fix

parent 68bd3d06
...@@ -125,7 +125,7 @@ class Room ...@@ -125,7 +125,7 @@ class Room
else else
@hostinfo.lflist = 0 @hostinfo.lflist = 0
if ((param = rule.charAt(3).match(/\d/)) > 0) if ((param = parseInt(rule.charAt(3).match(/\d/))) > 0)
@hostinfo.time_limit=param*60 @hostinfo.time_limit=param*60
switch rule.charAt(4) switch rule.charAt(4)
...@@ -146,13 +146,13 @@ class Room ...@@ -146,13 +146,13 @@ class Room
else else
@hostinfo.no_shuffle_deck = false @hostinfo.no_shuffle_deck = false
if ((param = rule.charAt(7).match(/\d/)) > 0) if ((param = parseInt(rule.charAt(7).match(/\d/))) > 0)
@hostinfo.start_lp=param*4000 @hostinfo.start_lp=param*4000
if ((param = rule.charAt(8).match(/\d/)) > 0) if ((param = parseInt(rule.charAt(8).match(/\d/))) > 0)
@hostinfo.start_hand=param @hostinfo.start_hand=param
if ((param = rule.charAt(3).match(/\d/)) >= 0) if ((param = parseInt(rule.charAt(9).match(/\d/))) >= 0)
@hostinfo.draw_count=param @hostinfo.draw_count=param
else if ((param = name.match /(.+)#/) != null) else if ((param = name.match /(.+)#/) != null)
......
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
default: default:
this.hostinfo.lflist = 0; this.hostinfo.lflist = 0;
} }
if ((param = rule.charAt(3).match(/\d/)) > 0) { if ((param = parseInt(rule.charAt(3).match(/\d/))) > 0) {
this.hostinfo.time_limit = param * 60; this.hostinfo.time_limit = param * 60;
} }
switch (rule.charAt(4)) { switch (rule.charAt(4)) {
...@@ -177,13 +177,13 @@ ...@@ -177,13 +177,13 @@
default: default:
this.hostinfo.no_shuffle_deck = false; this.hostinfo.no_shuffle_deck = false;
} }
if ((param = rule.charAt(7).match(/\d/)) > 0) { if ((param = parseInt(rule.charAt(7).match(/\d/))) > 0) {
this.hostinfo.start_lp = param * 4000; this.hostinfo.start_lp = param * 4000;
} }
if ((param = rule.charAt(8).match(/\d/)) > 0) { if ((param = parseInt(rule.charAt(8).match(/\d/))) > 0) {
this.hostinfo.start_hand = param; this.hostinfo.start_hand = param;
} }
if ((param = rule.charAt(3).match(/\d/)) >= 0) { if ((param = parseInt(rule.charAt(9).match(/\d/))) >= 0) {
this.hostinfo.draw_count = param; this.hostinfo.draw_count = param;
} }
} else if ((param = name.match(/(.+)#/)) !== null) { } else if ((param = name.match(/(.+)#/)) !== null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment