Ejemplo n.º 1
0
        public bool IsCanStageFight(FightStageInfo stageInfo)
        {
            if (TableReader.FightCapter.EliteCapter.StageNotNull.Contains(stageInfo.FigetRecord))
            {
                var idx = TableReader.FightCapter.EliteCapter.StageNotNull.IndexOf(stageInfo.FigetRecord);
                if (idx < 0)
                {
                    return(false);
                }

                string stageID   = TableReader.FightCapter.NormalCapter[TableReader.FightCapter.NormalCapter.Count - 1].Id;
                var    findStage = GetStageByID(stageID);
                if (findStage == null)
                {
                    return(false);
                }

                return(findStage.MaxPassPoint > 0);
            }
            else
            {
                var idx = _FightStageList.IndexOf(stageInfo);
                if (idx > 0)
                {
                    return(_FightStageList[idx - 1].MaxPassPoint > 0);
                }

                return(true);
            }
        }
Ejemplo n.º 2
0
        public void StartFight(FightStageInfo fightStage)
        {
            _FightStage  = fightStage;
            _FightRecord = fightStage.FigetRecord.FightInfo;

            InitFightInfo();

            LogicManager.Instance.EnterFight();
        }
Ejemplo n.º 3
0
        public int CulFightGoldAward(FightStageInfo stageInfo, int point)
        {
            int goldAward = 0;

            if (point > 0)
            {
                goldAward = ((point / 10000) + 1) * 200;
            }
            else
            {
                goldAward = 200;
            }

            PlayerData.Instance.AddCurrency(CURRENCY_TYPE.GOLD, goldAward);
            return(goldAward);
        }