| | |
| | | }
|
| | | return IsBool;
|
| | | }
|
| | |
|
| | | DungeonModel model { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | private void GetWhyjLayerNumber()//获取单人的娲皇层数
|
| | | {
|
| | | DungeonRecord dungeonRecords;
|
| | | if (model.TryGetRecord(ruinsTranscriptMapId, out dungeonRecords))
|
| | | {
|
| | | int Index = -1;
|
| | | for (int i = 0; i < dungeonRecords.lineGrades.Count; i++)
|
| | | {
|
| | | if (dungeonRecords.lineGrades[i] == 5)
|
| | | {
|
| | | Index = i;
|
| | | }
|
| | | }
|
| | | if (Index > -1)
|
| | | {
|
| | | if (Index + 1 >= 7)
|
| | | {
|
| | | if (7 - WaHuangHighestFloor >= 0)
|
| | | LayerNumber = 7 - WaHuangHighestFloor;
|
| | | }
|
| | | else
|
| | | {
|
| | | if ((Index + 1) -WaHuangHighestFloor >= 0)
|
| | | {
|
| | | LayerNumber = (Index + 1) -WaHuangHighestFloor;
|
| | | }
|
| | | else
|
| | | {
|
| | | LayerNumber = 0;
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | LayerNumber = 0;
|
| | | }
|
| | | }
|
| | | }
|
| | | public int GetWHYJNum()
|
| | | {
|
| | | GetWhyjLayerNumber();
|
| | | int Nuber = LayerNumber + 1;
|
| | | int Power = (int)PlayerDatas.Instance.baseData.FightPoint;
|
| | | int Type = 1;
|
| | | for (int i = 1; i <= Nuber; i++)
|
| | | { |
| | | if (WHYJPowerDic.ContainsKey(i) && Power >= WHYJPowerDic[i])
|
| | | {
|
| | | Type=i;
|
| | | }
|
| | | }
|
| | | return Type;
|
| | | }
|
| | | }
|
| | |
|
| | |
|