Skip to content

Commit 2f7699b

Browse files
authored
refactor: default duel time changed to 450 seconds (#222)
The formats changed: edison Hat Tengu M.D. OCG OCGPRE TCG TCGPRE GENESYS
1 parent bd1d5c0 commit 2f7699b

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

src/mercury/room/domain/RuleMappings.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ export const formatRuleMappings: RuleMappings = {
395395
rule: 5,
396396
lflist: 0,
397397
duelRule: 1,
398+
timeLimit: 450,
398399
};
399400
},
400401
validate: (value) => {
@@ -407,6 +408,7 @@ export const formatRuleMappings: RuleMappings = {
407408
rule: 5,
408409
lflist: 0,
409410
duelRule: 2,
411+
timeLimit: 450,
410412
};
411413
},
412414
validate: (value) => {
@@ -419,6 +421,7 @@ export const formatRuleMappings: RuleMappings = {
419421
rule: 5,
420422
lflist: 0,
421423
duelRule: 2,
424+
timeLimit: 450,
422425
};
423426
},
424427
validate: (value) => {
@@ -431,6 +434,7 @@ export const formatRuleMappings: RuleMappings = {
431434
rule: 5,
432435
lflist: 11,
433436
duelRule: 5,
437+
timeLimit: 450,
434438
};
435439
},
436440
validate: (value) => {
@@ -498,6 +502,7 @@ export const formatRuleMappings: RuleMappings = {
498502
lflist: 0,
499503
duelRule: 5,
500504
maxDeckPoints,
505+
timeLimit: 450,
501506
};
502507
},
503508
validate: (value) => {
@@ -560,6 +565,7 @@ export const formatRuleMappings: RuleMappings = {
560565
return {
561566
rule: 5,
562567
duelRule: 5,
568+
timeLimit: 450,
563569
};
564570
},
565571
validate: (value) => {
@@ -571,6 +577,7 @@ export const formatRuleMappings: RuleMappings = {
571577
return {
572578
rule: 0,
573579
lflist: 0,
580+
timeLimit: 450,
574581
};
575582
},
576583
validate: (value) => {
@@ -582,6 +589,7 @@ export const formatRuleMappings: RuleMappings = {
582589
return {
583590
rule: 5,
584591
duelRule: 5,
592+
timeLimit: 450,
585593
};
586594
},
587595
validate: (value) => {
@@ -594,6 +602,7 @@ export const formatRuleMappings: RuleMappings = {
594602
rule: 5,
595603
duelRule: 5,
596604
lflist: 0,
605+
timeLimit: 450,
597606
};
598607
},
599608
validate: (value) => {
@@ -605,6 +614,7 @@ export const formatRuleMappings: RuleMappings = {
605614
return {
606615
rule: 5,
607616
duelRule: 5,
617+
timeLimit: 450,
608618
};
609619
},
610620
validate: (value) => {
@@ -617,6 +627,7 @@ export const formatRuleMappings: RuleMappings = {
617627
rule: 4,
618628
duelRule: 3,
619629
lflist: 0,
630+
timeLimit: 450,
620631
};
621632
},
622633
validate: (value) => {

tests/modules/mercury/room/domain/MercuryRoom.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ describe("MercuryRoom", () => {
361361
expect(room.isGenesys).toBe(true);
362362
expect(room.hostInfo.rule).toBe(1);
363363
expect(room.hostInfo.lflist).toBe(0);
364-
expect(room.hostInfo.timeLimit).toBe(180);
364+
expect(room.hostInfo.timeLimit).toBe(450);
365365
expect(room.hostInfo.duelRule).toBe(5);
366366
expect(room.hostInfo.maxDeckPoints).toBe(100);
367367
});
@@ -379,7 +379,7 @@ describe("MercuryRoom", () => {
379379
expect(room.isGenesys).toBe(true);
380380
expect(room.hostInfo.rule).toBe(1);
381381
expect(room.hostInfo.lflist).toBe(0);
382-
expect(room.hostInfo.timeLimit).toBe(180);
382+
expect(room.hostInfo.timeLimit).toBe(450);
383383
expect(room.hostInfo.duelRule).toBe(5);
384384
expect(room.hostInfo.maxDeckPoints).toBe(250);
385385
});
@@ -389,7 +389,7 @@ describe("MercuryRoom", () => {
389389
expect(room.isGenesys).toBe(true);
390390
expect(room.hostInfo.rule).toBe(1);
391391
expect(room.hostInfo.lflist).toBe(0);
392-
expect(room.hostInfo.timeLimit).toBe(180);
392+
expect(room.hostInfo.timeLimit).toBe(450);
393393
expect(room.hostInfo.duelRule).toBe(5);
394394
expect(room.hostInfo.maxDeckPoints).toBe(100);
395395
});
@@ -400,7 +400,7 @@ describe("MercuryRoom", () => {
400400
expect(room.isGenesys).toBe(true);
401401
expect(room.hostInfo.rule).toBe(1);
402402
expect(room.hostInfo.lflist).toBe(0);
403-
expect(room.hostInfo.timeLimit).toBe(180);
403+
expect(room.hostInfo.timeLimit).toBe(450);
404404
expect(room.hostInfo.duelRule).toBe(5);
405405
expect(room.hostInfo.maxDeckPoints).toBe(300);
406406
});

0 commit comments

Comments
 (0)