/// <summary> /// 是特殊的新手引导吗? --------- 已经不再使用,服务器来保存这个值 /// </summary> /// winOrLose 战斗的输赢, 1 左边赢 0 右边赢 bool Assignment(int winOrLose) { bool isSpecial = false; TemporyData temp = Core.Data.temper; AccountConfigManager AccMgr = Core.Data.AccountMgr; ClientBattleParam param = temp.clientReqParam; if (temp.currentBattleType == TemporyData.BattleType.BossBattle && param != null) { int floorId = param.doorId; if (floorId == 60104) //60104副本第一次打 { if (!TeamUI.secondPosUnLock) { AccMgr.UserConfig.SpecialGuideID = 1000; AccMgr.save(); } } if (floorId == 60109) //60109副本第一次打,必须失败 { isSpecial = AccMgr.UserConfig.FB_60109 == 0; if (isSpecial) { AccMgr.UserConfig.FB_60109 = 1; AccMgr.UserConfig.SpecialGuideID = isSpecial ? 2000 : 0; AccMgr.save(); } } //是技能副本吗 if (floorId / 100 == 301) { isSpecial = temp.warBattle.battleData.isfirst == 1; if (isSpecial) { AccMgr.UserConfig.SpecialGuideID = isSpecial ? 3000 : 0; AccMgr.save(); } } } return(isSpecial); }
/// /// 判定是否为第16关的boss 属性克制 /// bool isGuide16Floor(Item curItem, BanBattleManager battleMgr) { bool found = false; NewFloor floor = Core.Data.newDungeonsManager.curFightingFloor; if (floor != null && floor.config.ID == 60116) { BanBattleRole curBattleRole = battleMgr.GetBattleRole(curItem.defenseIndex); if (curBattleRole != null) { if (curBattleRole.isBoss == (short)1) { if (curItem.period == Period.AttributeConflict) { AccountConfigManager accMgr = Core.Data.AccountMgr; if (accMgr.UserConfig.ShengWuZhe == (short)0) { ConsoleEx.DebugLog("isGuide16Floor is going", ConsoleEx.RED); accMgr.UserConfig.ShengWuZhe = 1; accMgr.save(); found = true; } } } } } return(found); }
/// /// 两个同时保存, 得要根据战斗类型类判定 /// public void SpeedUpAndAutoSave() { TemporyData temp = Core.Data.temper; if (temp.currentBattleType == TemporyData.BattleType.BossBattle || temp.currentBattleType == TemporyData.BattleType.FinalTrialBuou || temp.currentBattleType == TemporyData.BattleType.FinalTrialShalu) { AccountConfigManager accMgr = Core.Data.AccountMgr; if (curLoopAuto == 0) { accMgr.UserConfig.AutoBat = 0; } else { accMgr.UserConfig.AutoBat = 1; } if (curLoop == 0) { accMgr.UserConfig.SpeedUp = 0; } else { accMgr.UserConfig.SpeedUp = 1; } accMgr.save(); } }
public void SaveAuto() { AccountConfigManager accMgr = Core.Data.AccountMgr; if (curLoopAuto == 0) { accMgr.UserConfig.AutoBat = 0; } else { accMgr.UserConfig.AutoBat = 1; } accMgr.save(); }
/// <summary> /// 战斗结算的时候保存速度的状态 /// </summary> public void SaveSpeedUp() { AccountConfigManager accMgr = Core.Data.AccountMgr; if (curLoop == 0) { accMgr.UserConfig.SpeedUp = 0; } else { accMgr.UserConfig.SpeedUp = 1; } accMgr.save(); }