Permalink
Browse files

Season 5 & 6 changes.

  • Loading branch information...
roncli committed Oct 29, 2017
1 parent 9607146 commit a0f5e61454bb4a2fec799b4c63b1106f2814d85f
Showing with 3 additions and 3 deletions.
  1. +3 −3 fusion.js
@@ -204,7 +204,7 @@ Fusion.start = (_tmi, _discord) => {
generalChannel = obsDiscord.channels.find("name", "general");
resultsChannel = obsDiscord.channels.find("name", "match-results");
eventRole = obsDiscord.roles.find("name", "In Current Event");
seasonRole = obsDiscord.roles.find("name", "Season 4 Participant");
seasonRole = obsDiscord.roles.find("name", "Season 6 Participant");
roncli = obsDiscord.owner;
if (!readied) {
@@ -1016,7 +1016,7 @@ Fusion.discordMessages = {
matches: []
};
Fusion.discordQueue("Hey @everyone, a new tournament has been created. `!join` the tournament if you'd like to play!", generalChannel);
Fusion.discordQueue("Hey @everyone, a new tournament has been created. If you'd like to play be sure you have set your home levels for the season by using the `!home` command, setting one level at a time, for example, `!home Logic x2`. Then `!join` the tournament!", generalChannel);
},
// # # #
@@ -1205,7 +1205,7 @@ Fusion.discordMessages = {
RatingDeviation: 200,
Volatility: 0.06
},
points: event.matches.filter((m) => !m.cancelled && m.winner === id).length,
points: event.matches.filter((m) => !m.cancelled && m.winner === id).length - (event.matches.filter((m) => !m.cancelled && m.players.indexOf(id) !== -1).length - event.matches.filter((m) => !m.cancelled && m.winner === id).length),
matches: event.matches.filter((m) => !m.cancelled && m.players.indexOf(id) !== -1).length
};
}).sort((a, b) => b.points - a.points || b.ratedPlayer.Rating - a.ratedPlayer.Rating || b.matches - a.matches || (Math.random() < 0.5 ? 1 : -1)),

0 comments on commit a0f5e61

Please sign in to comment.