1
0
mirror of synced 2024-11-12 01:50:47 +01:00
This commit is contained in:
0auBSQ 2024-06-23 12:57:21 +09:00
parent 2926404c0f
commit 561170c6d3
4 changed files with 86 additions and 11 deletions

View File

@ -1,7 +1,11 @@
{
"condition": "ch",
"condition": "sp",
"type": "me",
"values": [
8888,
3,
3
],
"references": [
"lostemDashy",
],
}

View File

@ -304,7 +304,70 @@ namespace TJAPlayer3
var statusString = CLangManager.LangInstance.GetString(91010 + _aimedStatus);
return CLangManager.LangInstance.GetString(90011).SafeFormat(statusString, this.Values[2], _aimedDifficulty, _count);
}
}
case "sp":
{
List<string> _rows = new List<string>();
var _challengeCount = this.Values.Length / this.RequiredArgCount;
var _count = 0;
for (int i = 0; i < _challengeCount; i++)
{
int _base = i * this.RequiredArgCount;
string _songId = this.Reference[i];
var _aimedDifficulty = this.Values[_base];
var _aimedStatus = this.Values[_base + 1];
var diffString = CLangManager.LangInstance.GetString(92000 + _aimedDifficulty);
var statusString = CLangManager.LangInstance.GetString(91010 + _aimedStatus);
var _songName = CSongDict.tGetNodeFromID(_songId)?.strタイトル ?? "[Not found]";
_rows.Add(CLangManager.LangInstance.GetString(90013).SafeFormat(statusString, _songName, diffString));
// Safisfied count
if (_aimedDifficulty >= (int)Difficulty.Easy && _aimedDifficulty <= (int)Difficulty.Edit)
{
string key = _songId + _aimedDifficulty.ToString();
var _cht = SaveData.bestPlaysDistinctCharts.TryGetValue(key, out var value) ? value : null;
if (_cht != null && _cht.ClearStatus + 1 >= _aimedStatus) _count++;
}
else if (_aimedDifficulty < (int)Difficulty.Easy)
{
for (int diff = (int)Difficulty.Easy; diff <= (int)Difficulty.Edit; diff++)
{
string key = _songId + diff.ToString();
var _cht = SaveData.bestPlaysDistinctCharts.TryGetValue(key, out var value) ? value : null;
if (_cht != null && _cht.ClearStatus + 1 >= _aimedStatus)
{
_count++;
break;
}
}
}
}
// Push front
_rows.Insert(0, CLangManager.LangInstance.GetString(90012).SafeFormat(_count, _challengeCount));
return String.Join("\n", _rows);
}
case "sg":
{
List<string> _rows = new List<string>();
return String.Join("\n", _rows);
}
case "sc":
{
List<string> _rows = new List<string>();
return String.Join("\n", _rows);
}
}
// Includes cm or ig which are not supposed to be displayed in My Room

View File

@ -494,6 +494,10 @@ namespace TJAPlayer3
[90009] = "Play {0} songs to unlock this item! ({1}/{0})", // tp
[90010] = "{0} {1} songs on {2} difficulty to unlock this item! ({3}/{1})", // dp
[90011] = "{0} {1} songs with a star rating of {2} to unlock this item! ({3}/{1})", // lp
[90012] = "Get the following performances to unlock this item: ({0}/{1})", // sp, sg, sc
[90013] = "- {0} {1} on {2} difficulty.", // sp
[90014] = "- {0} {1} songs within the {2} folder. ({3}/{1})", // sg
[90015] = "- {0} {1} charts made by {2}. ({3}/{1})", // sc
[91000] = "Play",
[91010] = "Play",

View File

@ -558,17 +558,21 @@ namespace TJAPlayer3
[90004] = "コインが足りません !",
[90005] = "下記の条件 : ",
[90006] = "{0}コインを稼ぎましょう! ({1}/{0})", // ce
[90007] = "AI演奏バトルを{0}回挑戦しましょう! ({1}/{0})", // ap
[90008] = "AI演奏バトルを{0}回勝利しましょう! ({1}/{0})", // aw
[90009] = "{0}回プレイしましょう! ({1}/{0})", // tp
[90010] = "{2}で{1}譜面を{0}しましょう! ({3}/{1})", // dp
[90011] = "{2}★の{1}譜面を{0}しましょう! ({3}/{1})", // lp
[90006] = "{0}コイン以上手に入れた ({1}/{0})", // ce
[90007] = "AI演奏バトルを{0}回プレイ ({1}/{0})", // ap
[90008] = "AI演奏バトルで{0}回勝利 ({1}/{0})", // aw
[90009] = "{0}回プレイ ({1}/{0})", // tp
[90010] = "{2}で{1}譜面を{0} ({3}/{1})", // dp
[90011] = "{2}★の{1}譜面を{0} ({3}/{1})", // lp
[90012] = "以下の条件ををクリアしましょう!: ({0}/{1})", // sp, sg, sc
[90013] = "※{1}{2}を{0}", // sp
[90014] = "※{2}ジャンルの{1}譜面を{0} ({3}/{1})", // sg
[90015] = "※{2}さんの{1}譜面を{0} ({3}/{1})", // sc
[91000] = "プレイ",
[91010] = "プレイ",
[91001] = "仮クリア",
[91011] = "クリア(以上)",
[91001] = "アシストクリア",
[91011] = "アシストクリア(以上)",
[91002] = "クリア",
[91012] = "クリア(以上)",
[91003] = "フルコンボ",