mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
add 5 minute match timer option (closes #11925)
This commit is contained in:
parent
59bf39f666
commit
73e9b8da49
1 changed files with 5 additions and 4 deletions
|
|
@ -2,12 +2,13 @@ package mage.constants;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The time per player to have activity in a match.
|
* The time per player to have activity in a match.
|
||||||
* If time runs out for a player, they loose the currently running game of a match.
|
* If time runs out for a player, they lose the match.
|
||||||
*
|
*
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public enum MatchTimeLimit {
|
public enum MatchTimeLimit {
|
||||||
NONE(0),
|
NONE(0),
|
||||||
|
MIN___5(300),
|
||||||
MIN__10(600),
|
MIN__10(600),
|
||||||
MIN__15(900),
|
MIN__15(900),
|
||||||
MIN__20(1200),
|
MIN__20(1200),
|
||||||
|
|
@ -33,10 +34,10 @@ public enum MatchTimeLimit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
if (this == NONE){
|
if (this == NONE) {
|
||||||
return "None";
|
return "None";
|
||||||
} else {
|
} else {
|
||||||
return (prioritySecs/60)+" Minutes";
|
return (prioritySecs/60) + " Minutes";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -46,7 +47,7 @@ public enum MatchTimeLimit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getShortName() {
|
public String getShortName() {
|
||||||
if (this == NONE){
|
if (this == NONE) {
|
||||||
return "None";
|
return "None";
|
||||||
} else {
|
} else {
|
||||||
return (prioritySecs/60) + "m";
|
return (prioritySecs/60) + "m";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue