自动战斗添加限制

tcx_xiyou_dev
PC-202302260912\Administrator 2024-04-28 17:09:13 +08:00
parent 00967764c6
commit 8c973c8aae
4 changed files with 8429 additions and 8422 deletions

View File

@ -1815,7 +1815,7 @@ FUNCTION_OPEN_TYPE = {
Train = 150, --特训 Train = 150, --特训
TrainBuild = 151, --特训建筑 TrainBuild = 151, --特训建筑
HelpFight = 152, --助阵 HelpFight = 152, --助阵
AutoSoliderDraw =154,--自动抽小兵
} }

View File

@ -291,7 +291,7 @@ Language = {
[10290] = GetLanguageStrById("已通过"), [10290] = GetLanguageStrById("已通过"),
[10291] = GetLanguageStrById("<color=red>战力:%s</color>"), [10291] = GetLanguageStrById("<color=red>战力:%s</color>"),
[10292] = GetLanguageStrById("未开启"), [10292] = GetLanguageStrById("未开启"),
[10293] = GetLanguageStrById("玩家等级不足%s级"), [10293] = GetLanguageStrById("玩家等级不足%s级"),
[10294] = GetLanguageStrById("战斗力到达%s解锁"), [10294] = GetLanguageStrById("战斗力到达%s解锁"),
[10295] = GetLanguageStrById("通关%s解锁"), [10295] = GetLanguageStrById("通关%s解锁"),
[10296] = GetLanguageStrById("通关前置副本解锁"), [10296] = GetLanguageStrById("通关前置副本解锁"),

View File

@ -298,6 +298,13 @@ function FightPointPassMainPanel:BindEvent()
invadeMonster:BindEvent() invadeMonster:BindEvent()
Util.AddClick(this.btn_auto,function () Util.AddClick(this.btn_auto,function ()
if OperatingManager.IsBuyGift(2202)==false and CheckFunctionOpen(FUNCTION_OPEN_TYPE.AutoSoliderDraw)==false then
local tip=GetFunctionOpenTip(FUNCTION_OPEN_TYPE.AutoSoliderDraw)
PopupTipPanel.ShowTip(string.format("%s或未开通超级特权",tip))
return
end
if SmallSoldierManager.changeSolider then if SmallSoldierManager.changeSolider then
PopupTipPanel.ShowTip("有未操作的神兵,请操作后再进行自动抽取") PopupTipPanel.ShowTip("有未操作的神兵,请操作后再进行自动抽取")
return return