mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Add rating to the client (#1498)
This commit is contained in:
parent
972d59aa37
commit
c781728b97
16 changed files with 234 additions and 52 deletions
|
|
@ -431,7 +431,8 @@ public abstract class MatchImpl implements Match {
|
|||
if (getDraws() > 0) {
|
||||
sb.append(" Draws: ").append(getDraws()).append("<br/>");
|
||||
}
|
||||
sb.append("<br/>").append("You have to win ").append(this.getWinsNeeded()).append(this.getWinsNeeded() == 1 ? " game" : " games").append(" to win the complete match<br/>");
|
||||
sb.append("<br/>").append("Match is ").append(this.getOptions().isRated() ? "" : "not ").append("rated<br/>");
|
||||
sb.append("You have to win ").append(this.getWinsNeeded()).append(this.getWinsNeeded() == 1 ? " game" : " games").append(" to win the complete match<br/>");
|
||||
sb.append("<br/>Game has started<br/><br/>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,7 +195,10 @@ public class UserData implements Serializable {
|
|||
if (UserGroup.COMPUTER.equals(this.groupId)) {
|
||||
return "";
|
||||
}
|
||||
return "Matches: " + this.matchHistory + " (" + this.matchQuitRatio + "%) Tourneys: " + this.tourneyHistory + " (" + this.tourneyQuitRatio + "%)";
|
||||
// todo: add preference to hide rating?
|
||||
return "Matches: " + this.matchHistory + " (" + this.matchQuitRatio + "%), Tourneys: " + this.tourneyHistory + " (" + this.tourneyQuitRatio + "%)"
|
||||
+ ", Constructed Rating: " + getConstructedRating()
|
||||
+ ", Limited Rating: " + getLimitedRating();
|
||||
}
|
||||
|
||||
public void setMatchHistory(String history) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue