Exemple #1
0
    public override DropManager.DropData GetDropData()
    {
        Stage_Level_stagechapter currentStageLevel = LocalModelManager.Instance.Stage_Level_stagechapter.GetCurrentStageLevel();

        return(new DropManager.DropData {
            EquipProb = currentStageLevel.EquipProb
        });
    }
 private void reset_reward()
 {
     this.SetRewardType(TurnTableType.eInvalid);
     this.reward_layer = -1;
     if (this.mMode == GameMode.eLevel)
     {
         Stage_Level_stagechapter beanByChapter = LocalModelManager.Instance.Stage_Level_stagechapter.GetBeanByChapter(this.Level_CurrentStage);
         if (((beanByChapter != null) && (beanByChapter.DropAddProb > 0)) && ((GameLogic.Random(0, 100) < beanByChapter.DropAddProb) && (beanByChapter.DropAddCond.Length == 2)))
         {
             int min = beanByChapter.DropAddCond[0];
             int max = beanByChapter.DropAddCond[1];
             if (min > max)
             {
                 max = min;
             }
             this.reward_layer = GameLogic.Random(min, max);
         }
     }
 }
Exemple #3
0
 public void Init(int stageId)
 {
     this.stageId  = stageId;
     this.beanData = LocalModelManager.Instance.Stage_Level_stagechapter.GetBeanByChapter(stageId);
     this.InitStage();
 }