1
This commit is contained in:
@@ -287,7 +287,11 @@ public class GameMainPanel_FishBase : GameMainPanel_Base
|
||||
{
|
||||
if (item.gameType == t && l == item.roomLevel)
|
||||
{
|
||||
paoBeiList = item.cannonMultipleList;
|
||||
// ⭐ 炮倍从大到小排列(选择面板显示顺序/切换顺序):倒序拷贝,
|
||||
// 不动服务端下发的原始配置列表;ApplyBotLevelIndex/SyncIndexByConsume 已适配倒序索引
|
||||
paoBeiList = item.cannonMultipleList != null
|
||||
? item.cannonMultipleList.OrderByDescending(x => x).ToList()
|
||||
: item.cannonMultipleList;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4235,7 +4239,10 @@ public class GameMainPanel_FishBase : GameMainPanel_Base
|
||||
int count = GetPaoBeiCount();
|
||||
if (count <= 0 || paoBeiList == null || paoBeiList.Count == 0) return;
|
||||
targetIndex = Mathf.Clamp(targetIndex, 0, count - 1);
|
||||
sit.consumeGoldNum = paoBeiList[targetIndex];
|
||||
// ⭐ paoBeiList 已改为从大到小排列;bot 档位索引沿用"从小到大"语义
|
||||
// (BotConfig.initialLevelIndex / 升降档 ±step / 金币比例判断均不变),
|
||||
// 应用到列表时做镜像映射:0=最小档=列表末尾,count-1=最大档=列表头部
|
||||
sit.consumeGoldNum = paoBeiList[paoBeiList.Count - 1 - targetIndex];
|
||||
if (sit.tMP_TurretConsumeNum != null)
|
||||
sit.tMP_TurretConsumeNum.text = sit.consumeGoldNum.ToString();
|
||||
// ⭐ 同步 indexConsume,保持档位索引与 consumeGoldNum 一致
|
||||
|
||||
Reference in New Issue
Block a user