| | |
| | | PackModel playerPack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | |
|
| | |
|
| | | public int WipeOutLV = 100; //XX级后可S级扫荡
|
| | | public int maxBossTimes = 0;
|
| | | public override void Init()
|
| | | {
|
| | |
| | | //}
|
| | |
|
| | | maxBossTimes = DungeonOpenTimeConfig.Get(PERSONALBOSS_MAPID).DayTimes;
|
| | |
|
| | | WipeOutLV = int.Parse(FuncConfigConfig.Get("WipeOutLV").Numerical1);
|
| | | }
|
| | |
|
| | | public void RequestGotoDungeon(int _bossId)
|
| | |
| | |
|
| | | public bool IsFreeTime(int bossID)
|
| | | {
|
| | |
|
| | | if (bossID == 0) return false;
|
| | |
|
| | | if (!(findPreciousModel.IsBossUnlock(bossID) && IsPlayerLevelEnough(bossID))) return false;
|
| | |
|
| | | var config = PersonalBossConfig.Get(bossID);
|
| | |
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | //S级可扫荡,增加等级限制(任务必须进副本否则会卡住,也不希望用户过早的扫荡低级BOSS)
|
| | | public bool CanFBWipeOut(int bossID)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV <= WipeOutLV)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | var config = PersonalBossConfig.Get(bossID);
|
| | | DungeonRecord dungeonRecord;
|
| | | if (dungeonModel.TryGetRecord(PERSONALBOSS_MAPID, out dungeonRecord))
|
| | | {
|
| | | if (dungeonRecord.lineGrades.ContainsKey(config.lineId) && dungeonRecord.lineGrades[config.lineId] == 5)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
|
| | | public class PersonalBossData
|