Commit b8e4a1f0 authored by nanahira's avatar nanahira

rules

parent 3e627773
Pipeline #5330 failed with stages
in 26 minutes and 32 seconds
...@@ -1400,11 +1400,11 @@ class Room ...@@ -1400,11 +1400,11 @@ class Room
@hostinfo.lflist = 0 @hostinfo.lflist = 0
if (rule.match /(^|,|,)(OR|OCGRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(OR|OCGRANDOM)(,|,|$)/)
@hostinfo.rule = 2 @hostinfo.rule = 5
@hostinfo.lflist = 0 @hostinfo.lflist = 0
if (rule.match /(^|,|,)(CR|CCGRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(CR|CCGRANDOM)(,|,|$)/)
@hostinfo.rule = 4 @hostinfo.rule = 2
@hostinfo.lflist = -1 @hostinfo.lflist = -1
if (rule.match /(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/)
...@@ -1412,7 +1412,7 @@ class Room ...@@ -1412,7 +1412,7 @@ class Room
@hostinfo.lflist = _.findIndex lflists, (list)-> list.tcg @hostinfo.lflist = _.findIndex lflists, (list)-> list.tcg
if (rule.match /(^|,|,)(TR|TCGRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(TR|TCGRANDOM)(,|,|$)/)
@hostinfo.rule = 2 @hostinfo.rule = 5
@hostinfo.lflist = _.findIndex lflists, (list)-> list.tcg @hostinfo.lflist = _.findIndex lflists, (list)-> list.tcg
if (rule.match /(^|,|,)(OOMR|OCGONLYMATCHRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(OOMR|OCGONLYMATCHRANDOM)(,|,|$)/)
...@@ -1421,12 +1421,12 @@ class Room ...@@ -1421,12 +1421,12 @@ class Room
@hostinfo.mode = 1 @hostinfo.mode = 1
if (rule.match /(^|,|,)(OMR|OCGMATCHRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(OMR|OCGMATCHRANDOM)(,|,|$)/)
@hostinfo.rule = 2 @hostinfo.rule = 5
@hostinfo.lflist = 0 @hostinfo.lflist = 0
@hostinfo.mode = 1 @hostinfo.mode = 1
if (rule.match /(^|,|,)(CMR|CCGMATCHRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(CMR|CCGMATCHRANDOM)(,|,|$)/)
@hostinfo.rule = 4 @hostinfo.rule = 2
@hostinfo.lflist = -1 @hostinfo.lflist = -1
@hostinfo.mode = 1 @hostinfo.mode = 1
......
...@@ -1813,11 +1813,11 @@ ...@@ -1813,11 +1813,11 @@
this.hostinfo.lflist = 0; this.hostinfo.lflist = 0;
} }
if (rule.match(/(^|,|,)(OR|OCGRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(OR|OCGRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 2; this.hostinfo.rule = 5;
this.hostinfo.lflist = 0; this.hostinfo.lflist = 0;
} }
if (rule.match(/(^|,|,)(CR|CCGRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(CR|CCGRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 4; this.hostinfo.rule = 2;
this.hostinfo.lflist = -1; this.hostinfo.lflist = -1;
} }
if (rule.match(/(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/)) {
...@@ -1827,7 +1827,7 @@ ...@@ -1827,7 +1827,7 @@
}); });
} }
if (rule.match(/(^|,|,)(TR|TCGRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(TR|TCGRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 2; this.hostinfo.rule = 5;
this.hostinfo.lflist = _.findIndex(lflists, function(list) { this.hostinfo.lflist = _.findIndex(lflists, function(list) {
return list.tcg; return list.tcg;
}); });
...@@ -1838,12 +1838,12 @@ ...@@ -1838,12 +1838,12 @@
this.hostinfo.mode = 1; this.hostinfo.mode = 1;
} }
if (rule.match(/(^|,|,)(OMR|OCGMATCHRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(OMR|OCGMATCHRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 2; this.hostinfo.rule = 5;
this.hostinfo.lflist = 0; this.hostinfo.lflist = 0;
this.hostinfo.mode = 1; this.hostinfo.mode = 1;
} }
if (rule.match(/(^|,|,)(CMR|CCGMATCHRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(CMR|CCGMATCHRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 4; this.hostinfo.rule = 2;
this.hostinfo.lflist = -1; this.hostinfo.lflist = -1;
this.hostinfo.mode = 1; this.hostinfo.mode = 1;
} }
......
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