perf: 肉鸽投资达限时, 增加输出提示 (#12818)

This commit is contained in:
status102
2025-05-29 22:04:46 +08:00
committed by GitHub
parent 2b7ea316d1
commit b516bbf7fd
8 changed files with 24 additions and 1 deletions

View File

@@ -116,11 +116,16 @@ bool asst::RoguelikeInvestTaskPlugin::_run()
if (count_limit - count <= 0) {
Log.info(__FUNCTION__, "投资达到设置上限,", m_maximum);
auto cb = basic_info_with_what("RoguelikeInvestmentReachLimit");
cb["details"]["limit"] = m_maximum;
callback(AsstMsg::SubTaskExtraInfo, cb);
stop_roguelike();
return true;
}
if (deposit.value_or(0) == 999 && m_stop_when_full) {
Log.info(__FUNCTION__, "存款已满");
auto cb = basic_info_with_what("RoguelikeInvestmentReachFull");
callback(AsstMsg::SubTaskExtraInfo, cb);
stop_roguelike();
return true;
}

View File

@@ -30,7 +30,7 @@ private:
void stop_roguelike() const;
int m_invest_count = 0;
int m_maximum = 0;
int m_maximum = 0; // 最大投资次数
bool m_stop_when_full = false; // 存款满了就停止
bool m_invset_error = false;
};

View File

@@ -861,6 +861,8 @@ Please switch to the stage selection page before starting</system:String>
<system:String x:Key="EncounterOcrError">Event Name OCR Failed</system:String>
<system:String x:Key="FoldartalGainOcrNextLevel">Foldartal Foresee:&#160;</system:String>
<system:String x:Key="RoguelikeInvestment">Invested {1}(+{0}), deposit: {2}</system:String>
<system:String x:Key="RoguelikeInvestmentReachLimit">Coins reach limit({0}), Stop exploring</system:String>
<system:String x:Key="RoguelikeInvestmentReachFull">Coins reach full, Stop exploring</system:String>
<system:String x:Key="RoguelikeSettlement">Roguelike Settlement: {0}\nExplore: {1} Floor {2} Step\nCombat: {3} / {4} Emergency / {5} BOSS\nRecruit: {6}\nCollectibles: {7}\nDifficulty: {8}\nScore: {9} Exp: {10} Skill: {11}</system:String>
<system:String x:Key="RoguelikeGainParadigm">Collapsal Paradigm Deepening: {0}</system:String>
<system:String x:Key="RoguelikeDeepenParadigm">Collapsal Paradigm {0} Deepened to {1}</system:String>

View File

@@ -865,6 +865,8 @@ C:\\leidian\\LDPlayer9
<system:String x:Key="EncounterOcrError">イベント名認識失敗</system:String>
<system:String x:Key="FoldartalGainOcrNextLevel">予見啓示板:</system:String>
<system:String x:Key="RoguelikeInvestment">投資しました: {1}(+{0})、貯蓄: {2}</system:String>
<system:String x:Key="RoguelikeInvestmentReachLimit">オリジニウムインゴットへの投資数が設定数({0})に達したため、探査が停止しました。</system:String>
<system:String x:Key="RoguelikeInvestmentReachFull">投資源となる石のインゴットがいっぱいになったら探索を中止する</system:String>
<system:String x:Key="RoguelikeSettlement">ローグライクスコア: {0}\n探索: {1} 階層 {2} ステップ\n戦闘: {3} / {4} 緊急 / {5} BOSS\n人材招集数: {6}\nアイテム入手数: {7}\n難度: {8}\nスコア: {9}\n経験値: {10}, スキル: {11}</system:String>
<system:String x:Key="RoguelikeGainParadigm">パラダイムロストの深化: {0}</system:String>
<system:String x:Key="RoguelikeDeepenParadigm">パラダイムロスト {0} が {1} に深化した</system:String>

View File

@@ -864,6 +864,8 @@ C:\\leidian\\LDPlayer9
<system:String x:Key="EncounterOcrError">이벤트 인식 오류</system:String>
<system:String x:Key="FoldartalGainOcrNextLevel">암호판:</system:String>
<system:String x:Key="RoguelikeInvestment">각뿔 투자: {1}(+{0}), 예금: {2}</system:String>
<system:String x:Key="RoguelikeInvestmentReachLimit">오리지늄 잉곳에 대한 투자 수가 설정된 수({0})에 도달하여 탐사가 중단되었습니다.</system:String>
<system:String x:Key="RoguelikeInvestmentReachFull">투자원석괴가 가득차면 탐사를 중단하세요</system:String>
<system:String x:Key="RoguelikeSettlement">로그라이크 종착점: {0}\n클리어 : {1} 구역 {2} 노드\n전투 횟수: {3} 일반 / {4} 정예 / {5} 리더\n모집 횟수 : {6} 회\n수집: {7}\n난이도: {8}\n점수: {9}\n경험치: {10}, 스킬: {11}</system:String>
<system:String x:Key="RoguelikeGainParadigm">붕괴 패러다임 심화: {0}</system:String>
<system:String x:Key="RoguelikeDeepenParadigm">붕괴 패러다임 {0}가 {1}로 심화되었습니다</system:String>

View File

@@ -865,6 +865,8 @@ C:\\leidian\\LDPlayer9。\n
<system:String x:Key="EncounterOcrError">事件名识别错误</system:String>
<system:String x:Key="FoldartalGainOcrNextLevel">预见:</system:String>
<system:String x:Key="RoguelikeInvestment">已投资 {1}(+{0}), 存款: {2}</system:String>
<system:String x:Key="RoguelikeInvestmentReachLimit">投资源石锭达到设定次数({0}), 停止探索</system:String>
<system:String x:Key="RoguelikeInvestmentReachFull">投资源石锭存满, 停止探索</system:String>
<system:String x:Key="RoguelikeSettlement">肉鸽结算: {0} (n{8})\n探索: {1} 层 {2} 步\n战斗: {3}/ {4}紧急/ {5}BOSS\n招募: {6} 收藏品: {7}\n得分: {9}\nExp: {10} Skill: {11}</system:String>
<system:String x:Key="RoguelikeGainParadigm">坍缩范式加深: {0}</system:String>
<system:String x:Key="RoguelikeDeepenParadigm">坍缩范式 {0} 加深为 {1}</system:String>

View File

@@ -863,6 +863,8 @@ C:\\leidian\\LDPlayer9。\n
<system:String x:Key="EncounterOcrError">事件名識別錯誤</system:String>
<system:String x:Key="FoldartalGainOcrNextLevel">預見:</system:String>
<system:String x:Key="RoguelikeInvestment">已投資 {1}(+{0}), 存款: {2}</system:String>
<system:String x:Key="RoguelikeInvestmentReachLimit">投資源石錠達到設定次數({0}), 停止探索</system:String>
<system:String x:Key="RoguelikeInvestmentReachFull">投資源石錠存滿, 停止探索</system:String>
<system:String x:Key="RoguelikeSettlement">肉鴿結算: {0}\n探索: {1} 层 {2} 步\n戰鬥: {3}/{4} 緊急/{5} BOSS\n招募: {6} 收藏品: {7}\n難度: {8} 得分: {9}\nExp: {10} Skill: {11}</system:String>
<system:String x:Key="RoguelikeGainParadigm">坍縮範式加深: {0}</system:String>
<system:String x:Key="RoguelikeDeepenParadigm">坍縮範式 {0} 加深為 {1}</system:String>

View File

@@ -872,6 +872,14 @@ public class RoguelikeSettingsUserControlModel : TaskViewModel
var subTaskDetails = details["details"];
switch (details["what"]?.ToString() ?? string.Empty)
{
case "RoguelikeInvestmentReachFull":
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("RoguelikeInvestmentReachFull"), UiLogColor.Info);
break;
case "RoguelikeInvestmentReachLimit":
Instances.TaskQueueViewModel.AddLog(string.Format(LocalizationHelper.GetString("RoguelikeInvestmentReachLimit"), subTaskDetails!["limit"]), UiLogColor.Info);
break;
case "RoguelikeInvestment":
Instances.TaskQueueViewModel.AddLog(string.Format(LocalizationHelper.GetString("RoguelikeInvestment"), subTaskDetails!["count"], subTaskDetails["total"], subTaskDetails["deposit"]), UiLogColor.Info);
break;