Fixed - daily prizes description; Added - Show Prizes but to queues in waiting tables section; Modified - my 'WinForAward' prizes now also give 1 tengwar to the winner
This commit is contained in:
@@ -1065,6 +1065,36 @@ var GempLotrHallUI = Class.extend({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var prizesBut = $("<button>Show Prizes</button>");
|
||||
$(prizesBut).button().click((
|
||||
function(queueInfo) {
|
||||
return function() {
|
||||
var infoDialog = $("<div></div>")
|
||||
.dialog({
|
||||
autoOpen:false,
|
||||
closeOnEscape:true,
|
||||
resizable:false,
|
||||
title:"Prizes details",
|
||||
closeText: ""
|
||||
});
|
||||
|
||||
var prizeDescription = $(queueInfo.getAttribute("prizes")).attr("value");
|
||||
if (prizeDescription) {
|
||||
infoDialog.html(prizeDescription);
|
||||
} else {
|
||||
infoDialog.html("<p>No prize information available.</p>");
|
||||
}
|
||||
|
||||
infoDialog.html(prizeDescription);
|
||||
|
||||
infoDialog.dialog({width: 300, height: 150});
|
||||
infoDialog.dialog("open");
|
||||
}
|
||||
})(queue));
|
||||
actionsField.append(prizesBut);
|
||||
|
||||
|
||||
var type = queue.getAttribute("type");
|
||||
if(type !== null)
|
||||
type = type.toLowerCase();
|
||||
|
||||
@@ -76,6 +76,12 @@ public class DailyTournamentPrizes implements TournamentPrizes {
|
||||
@Override
|
||||
public String getPrizeDescription() {
|
||||
return """
|
||||
<div class='prizeHint' value='<ul><li>1st - 10 random foil cards, 4 Tengwar selection, 3 High Place Event Reward</li><li>2nd - 8 random foil cards, 3 Tengwar selection, 2 High Place Event Reward</li><li>3rd - 6 random foil cards, 2 Tengwar selection, 1 High Place Event Reward</li><li>4th - 4 random foil cards, 1 Tengwar selection</li><li>5th-8th - 3 random foil cards</li><li>9th-16th - 2 random foil cards</li><li>17th-32nd - 1 random foil card</li></ul>'>Prize Breakdown</div>""";
|
||||
<div class='prizeHint' value='<ul>
|
||||
<li>2+ Wins: Required for Event Awards and Tengwar cards</li>
|
||||
<li>Top 4: Get Tengwar cards (up to 4 for 1st place)</li>
|
||||
<li>Top 10: Get Event Award (up to 10 for 1st place)</li>
|
||||
<li>Top 32: Receive random foils (more for higher placement)</li>
|
||||
</ul>'>Prize Breakdown</div>
|
||||
""";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,10 @@ public class WinForAwardTournamentPrizes implements TournamentPrizes {
|
||||
int hasBye = playerStanding.byeRound > 0 ? 1 : 0;
|
||||
int numberOfWins = playerStanding.playerWins + hasBye;
|
||||
prize.addItem("Placement Random Chase Card Selector", numberOfWins, true);
|
||||
// The winner also gets one tengwar card
|
||||
if (playerStanding.standing == 1) {
|
||||
prize.addItem("(S)Tengwar", 1, true);
|
||||
}
|
||||
|
||||
if (prize.getAll().iterator().hasNext())
|
||||
return prize;
|
||||
@@ -44,6 +48,10 @@ public class WinForAwardTournamentPrizes implements TournamentPrizes {
|
||||
@Override
|
||||
public String getPrizeDescription() {
|
||||
return """
|
||||
<div class='prizeHint' value='If 4+ players, get one Event Award for each win or bye'>Prize Breakdown</div>""";
|
||||
<div class='prizeHint' value='<ul>
|
||||
<li>4+ Players required for any prizes</li>
|
||||
<li>1 Event Award per win or bye</li>
|
||||
<li>1 Tengwar card for the tournament winner</li>
|
||||
</ul>'>Prize Breakdown</div>""";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user