Code cleanup.
This commit is contained in:
@@ -4,9 +4,9 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Cryville.Crtr {
|
||||
public class Judge {
|
||||
readonly PdtRuleset rs;
|
||||
public Judge() {
|
||||
rs = ChartPlayer.pruleset;
|
||||
readonly PdtRuleset _rs;
|
||||
public Judge(PdtRuleset rs) {
|
||||
_rs = rs;
|
||||
foreach (var s in rs.scores)
|
||||
scores.Add(s.Key, s.Value.init);
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace Cryville.Crtr {
|
||||
public Dictionary<string, string> GetFormattedScoreStrings() {
|
||||
if (ScoreCache.Count == 0) {
|
||||
foreach (var s in scores)
|
||||
ScoreCache.Add(s.Key, s.Value.ToString(rs.scores[s.Key].format));
|
||||
ScoreCache.Add(s.Key, s.Value.ToString(_rs.scores[s.Key].format));
|
||||
}
|
||||
return ScoreCache;
|
||||
}
|
||||
|
Reference in New Issue
Block a user