added free and overall spots
This commit is contained in:
parent
bd781d496f
commit
2e7c6f6640
2 changed files with 5 additions and 4 deletions
|
@ -61,7 +61,7 @@ namespace Lieb.Data
|
||||||
possibleClasses.Add(build.GuildWars2Build.Class);
|
possibleClasses.Add(build.GuildWars2Build.Class);
|
||||||
}
|
}
|
||||||
PlannedRaidRole role = new PlannedRaidRole();
|
PlannedRaidRole role = new PlannedRaidRole();
|
||||||
role.Spots = 1;
|
role.Spots = 0;
|
||||||
if (possibleClasses.Count > 0)
|
if (possibleClasses.Count > 0)
|
||||||
{
|
{
|
||||||
role.Name = possibleClasses.ToList()[_random.Next(possibleClasses.Count - 1)].ToString();
|
role.Name = possibleClasses.ToList()[_random.Next(possibleClasses.Count - 1)].ToString();
|
||||||
|
@ -85,7 +85,7 @@ namespace Lieb.Data
|
||||||
possibleEliteSpecs.Add(build.GuildWars2Build.EliteSpecialization);
|
possibleEliteSpecs.Add(build.GuildWars2Build.EliteSpecialization);
|
||||||
}
|
}
|
||||||
PlannedRaidRole role = new PlannedRaidRole();
|
PlannedRaidRole role = new PlannedRaidRole();
|
||||||
role.Spots = 1;
|
role.Spots = 0;
|
||||||
if (possibleEliteSpecs.Count > 0)
|
if (possibleEliteSpecs.Count > 0)
|
||||||
{
|
{
|
||||||
role.Name = possibleEliteSpecs.ToList()[_random.Next(possibleEliteSpecs.Count - 1)].ToString();
|
role.Name = possibleEliteSpecs.ToList()[_random.Next(possibleEliteSpecs.Count - 1)].ToString();
|
||||||
|
@ -113,7 +113,7 @@ namespace Lieb.Data
|
||||||
foreach(var userBuild in signedUpUsers)
|
foreach(var userBuild in signedUpUsers)
|
||||||
{
|
{
|
||||||
PlannedRaidRole role = new PlannedRaidRole();
|
PlannedRaidRole role = new PlannedRaidRole();
|
||||||
role.Spots = 1;
|
role.Spots = 0;
|
||||||
role.Name = userBuild.Value.BuildName;
|
role.Name = userBuild.Value.BuildName;
|
||||||
raid.Roles.Add(role);
|
raid.Roles.Add(role);
|
||||||
RaidSignUp signUp = raid.SignUps.FirstOrDefault(s => s.LiebUserId == userBuild.Key);
|
RaidSignUp signUp = raid.SignUps.FirstOrDefault(s => s.LiebUserId == userBuild.Key);
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>Role</th>
|
<th>Role</th>
|
||||||
<th>Users</th>
|
<th>Users</th>
|
||||||
|
<th>(@_raid.SignUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count()/@_raid.Roles.Sum(r => r.Spots))</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue