Made the maximum of the same card configurable per format
This commit is contained in:
@@ -46,9 +46,10 @@ public class LotroFormatLibrary {
|
||||
Boolean winOnControlling5Sites = (Boolean) formatDef.get("winOnControlling5Sites");
|
||||
if (winOnControlling5Sites == null)
|
||||
winOnControlling5Sites = false;
|
||||
Number maximumSameNameCount = (Number) formatDef.get("maximumSameName");
|
||||
|
||||
Number maximumSameNameCount = (Number) formatDef.get("maximumSameName");
|
||||
int maximumSameName = (maximumSameNameCount != null) ? maximumSameNameCount.intValue() : 4;
|
||||
|
||||
final DefaultLotroFormat format = new DefaultLotroFormat(adventure, library, name, surveyUrl, block, true, 60, maximumSameName, true,
|
||||
cancelRingBearerSkirmish, hasRuleOfFour, winAtEndOfRegroup, winOnControlling5Sites);
|
||||
|
||||
|
||||
@@ -355,128 +355,44 @@
|
||||
"code":"limited_hobbit",
|
||||
"sites":"HOBBIT",
|
||||
"cancelRingBearerSkirmish":true,
|
||||
"maximumSameName": 100,
|
||||
"maximumSameName":100,
|
||||
"set":[30, 31],
|
||||
"hall":false
|
||||
},
|
||||
{
|
||||
"name": "Limited",
|
||||
"code": "limited_fotr",
|
||||
"sites": "FELLOWSHIP",
|
||||
"cancelRingBearerSkirmish": true,
|
||||
"maximumSameName": 100,
|
||||
"set": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
"hall": false
|
||||
"name":"Limited",
|
||||
"code":"limited_fotr",
|
||||
"sites":"FELLOWSHIP",
|
||||
"cancelRingBearerSkirmish":true,
|
||||
"maximumSameName":100,
|
||||
"set":[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
|
||||
"hall":false
|
||||
},
|
||||
{
|
||||
"name": "Limited",
|
||||
"code": "limited_ttt",
|
||||
"sites": "TWO_TOWERS",
|
||||
"cancelRingBearerSkirmish": true,
|
||||
"maximumSameName": 100,
|
||||
"set": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
"hall": false
|
||||
"name":"Limited",
|
||||
"code":"limited_ttt",
|
||||
"sites":"TWO_TOWERS",
|
||||
"cancelRingBearerSkirmish":true,
|
||||
"maximumSameName":100,
|
||||
"set":[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
|
||||
"hall":false
|
||||
},
|
||||
{
|
||||
"name": "Limited",
|
||||
"code": "limited_king",
|
||||
"sites": "KING",
|
||||
"cancelRingBearerSkirmish": true,
|
||||
"maximumSameName": 100,
|
||||
"set": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
"hall": false
|
||||
"name":"Limited",
|
||||
"code":"limited_king",
|
||||
"sites":"KING",
|
||||
"cancelRingBearerSkirmish":true,
|
||||
"maximumSameName":100,
|
||||
"set":[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
|
||||
"hall":false
|
||||
},
|
||||
{
|
||||
"name": "Limited",
|
||||
"code": "limited_shadows",
|
||||
"sites": "SHADOWS",
|
||||
"cancelRingBearerSkirmish": false,
|
||||
"maximumSameName": 100,
|
||||
"set": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
"hall": false
|
||||
"name":"Limited",
|
||||
"code":"limited_shadows",
|
||||
"sites":"SHADOWS",
|
||||
"cancelRingBearerSkirmish":false,
|
||||
"maximumSameName":100,
|
||||
"set":[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
|
||||
"hall":false
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user