Misc Fixes

This commit is contained in:
hondacrx
2017-10-25 17:07:28 -04:00
parent 62585dcfb3
commit d552c65668
15 changed files with 248 additions and 194 deletions
+11 -1
View File
@@ -718,6 +718,10 @@ namespace Game.Arenas
foreach (var member in Members)
{
// Save the effort and go
if (member.WeekGames == 0)
continue;
stmt = DB.Characters.GetPreparedStatement(CharStatements.UPD_ARENA_TEAM_MEMBER);
stmt.AddValue(0, member.PersonalRating);
stmt.AddValue(1, member.WeekGames);
@@ -738,8 +742,12 @@ namespace Game.Arenas
DB.Characters.CommitTransaction(trans);
}
public void FinishWeek()
public bool FinishWeek()
{
// No need to go further than this
if (stats.WeekGames == 0)
return false;
// Reset team stats
stats.WeekGames = 0;
stats.WeekWins = 0;
@@ -750,6 +758,8 @@ namespace Game.Arenas
member.WeekGames = 0;
member.WeekWins = 0;
}
return true;
}
public bool IsFighting()