Exemplo n.º 1
0
 public MaxAllDamageInWitchTimeChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished      = false;
     this._tempAllDamage = 0f;
     this.targetDamage   = (float)base._metaData.paramList[0];
     this._inStastics    = false;
 }
Exemplo n.º 2
0
 public BaseLevelChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData)
 {
     this._helper     = helper;
     this._metaData   = metaData;
     this.challengeId = this._metaData.challengeId;
     this.active      = true;
 }
 public MaxDamageInCertainTimeChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished              = false;
     this._tempDamageInWindow    = 0f;
     this._tempMaxDamageInWindow = 0f;
     this._stasticsTimer         = 0f;
     this.targetTimeWindow       = (float)base._metaData.paramList[0];
     this.targetDamage           = (float)base._metaData.paramList[1];
     this._damageLs              = new List <Tuple <float, float> >();
     this._inStastics            = false;
 }
Exemplo n.º 4
0
 public LevelChallengeDataItem(int challengeId, LevelMetaData levelMeta, int rewardId = 0)
 {
     this.challengeId = challengeId;
     this._metaData   = LevelChallengeMetaDataReader.GetLevelChallengeMetaDataByKey(challengeId);
     if (this.IsFinishStageFastChallenge() || this.IsFinishStageVeryFastChallenge())
     {
         int num = !this.IsFinishStageFastChallenge() ? levelMeta.sonicBonusTime : levelMeta.fastBonusTime;
         this._metaData = new LevelChallengeMetaData(this._metaData.challengeId, this._metaData.conditionId, new List <int> {
             num
         }, this._metaData.diaplayTarget);
     }
     this.Finished = false;
 }
Exemplo n.º 5
0
 public SpecialLevelTimeChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished = true;
     if (metaData.conditionId != 0x1b)
     {
         LevelMetaData levelMetaDataByKey = LevelMetaDataReader.GetLevelMetaDataByKey(Singleton <LevelScoreManager> .Instance.LevelId);
         this.targetLevelTime = (metaData.conditionId != 0x1d) ? ((float)levelMetaDataByKey.fastBonusTime) : ((float)levelMetaDataByKey.sonicBonusTime);
     }
     else
     {
         this.targetLevelTime = (float)base._metaData.paramList[0];
     }
 }
 public MaxMonsterKilledInWitchTimeChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished            = false;
     this._tempKilledAmount    = 0;
     this._tempMaxKilledAmount = 0;
     this.targetKilledAmount   = base._metaData.paramList[0];
     this._inStastics          = false;
 }
Exemplo n.º 7
0
 public MaxComboChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished      = false;
     this._maxCombo      = 0;
     this.targetMaxCombo = base._metaData.paramList[0];
 }
Exemplo n.º 8
0
 public MaxUltimateSkillTriggeredByDistinctAvatarChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished = false;
     this._tempTriggeredUltimateSkillAvatarIDs      = new List <uint>();
     this.targetUltimateSkillAmountByDistinctAvatar = base._metaData.paramList[0];
 }
Exemplo n.º 9
0
 public LimitTotalDamageTakenChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished         = true;
     this._tempDamageTaken  = 0f;
     this.targetDamageTaken = (float)base._metaData.paramList[0];
 }
Exemplo n.º 10
0
 public MaxUltimateSkillTriggeredChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished = false;
     this._tempUltimateSkillAmount  = 0;
     this.targetUltimateSkillAmount = base._metaData.paramList[0];
 }
 public MonsterLastKilledBySwitchInAttackChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished = false;
 }
Exemplo n.º 12
0
 public HelperAvatarAliveChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished        = true;
     this._hasHelperAvatar = false;
 }
Exemplo n.º 13
0
 public LimitLevelTimeChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished       = true;
     this.targetLevelTime = (float)base._metaData.paramList[0];
 }
Exemplo n.º 14
0
 public LimitAvatarChallege(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this.targetNum = base._metaData.paramList[0];
 }
Exemplo n.º 15
0
 public MaxBoxOpenedChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished          = false;
     this._tempBoxOpenedNum  = 0;
     this.targetBoxOpenedNum = base._metaData.paramList[0];
 }
Exemplo n.º 16
0
 public LimitBeHitDownChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished     = true;
     this._beHitDownNum = 0;
     this.targetDownNum = base._metaData.paramList[0];
 }
Exemplo n.º 17
0
 public LimitBeAddedDebuffChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished              = true;
     this._tempBeAddedDebuffNum  = 0;
     this.targetBeAddedDebuffNum = base._metaData.paramList[0];
 }
 public LimitWitchTimeTriggeredChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished          = false;
     this.targetNum          = base._metaData.paramList[0];
     this._witchTimeTiggered = 0;
 }
Exemplo n.º 19
0
        private BaseLevelChallenge GetChallengeById(int challengeId)
        {
            LevelChallengeMetaData levelChallengeMetaDataByKey = LevelChallengeMetaDataReader.GetLevelChallengeMetaDataByKey(challengeId);

            switch (levelChallengeMetaDataByKey.conditionId)
            {
            case 1:
                return(new LimitAvatarChallege(this, levelChallengeMetaDataByKey));

            case 2:
                return(new LimitAvatarKilledChallenge(this, levelChallengeMetaDataByKey));

            case 3:
                return(new MaxComboChallenge(this, levelChallengeMetaDataByKey));

            case 4:
                return(new LimitBeHitChallenge(this, levelChallengeMetaDataByKey));

            case 5:
                return(new LimitLevelTimeChallenge(this, levelChallengeMetaDataByKey));

            case 6:
                return(new LimitWitchTimeTriggeredChallenge(this, levelChallengeMetaDataByKey));

            case 7:
                return(new MaxDamageInWitchTimeChallenge(this, levelChallengeMetaDataByKey));

            case 8:
                return(new MaxUltimateSkillTriggeredChallenge(this, levelChallengeMetaDataByKey));

            case 9:
                return(new MaxDamageInCertainTimeChallenge(this, levelChallengeMetaDataByKey));

            case 10:
                return(new MaxUltimateSkillTriggeredByDistinctAvatarChallenge(this, levelChallengeMetaDataByKey));

            case 11:
                return(new LimitBeHitDownChallenge(this, levelChallengeMetaDataByKey));

            case 12:
                return(new MaxAvatarClassInTeamChallenge(this, levelChallengeMetaDataByKey));

            case 13:
                return(new MaxMonsterKilledChallenge(this, levelChallengeMetaDataByKey));

            case 14:
                return(new MaxAvatarNatureInTeamChallenge(this, levelChallengeMetaDataByKey));

            case 15:
                return(new LimitTotalDamageTakenChallenge(this, levelChallengeMetaDataByKey));

            case 0x10:
                return(new HelperAvatarAliveChallenge(this, levelChallengeMetaDataByKey));

            case 0x11:
                return(new LimitTrapTriggeredChallenge(this, levelChallengeMetaDataByKey));

            case 0x12:
                return(new MaxBoxOpenedChallenge(this, levelChallengeMetaDataByKey));

            case 0x13:
                return(new MaxDebuffAddChallenge(this, levelChallengeMetaDataByKey));

            case 20:
                return(new LimitBeAddedDebuffChallenge(this, levelChallengeMetaDataByKey));

            case 0x15:
                return(new MaxAllDamageInWitchTimeChallenge(this, levelChallengeMetaDataByKey));

            case 0x16:
                return(new MaxMonsterKilledBySwitchInAttackChallenge(this, levelChallengeMetaDataByKey));

            case 0x17:
                return(new MaxMonsterKilledInWitchTimeChallenge(this, levelChallengeMetaDataByKey));

            case 0x18:
                return(new MonsterLastKilledBySwitchInAttackChallenge(this, levelChallengeMetaDataByKey));

            case 0x19:
                return(new MaxMonsterKilledInCertainTimeChallenge(this, levelChallengeMetaDataByKey));

            case 0x1a:
                return(new MaxMonsterHitAirChallenge(this, levelChallengeMetaDataByKey));

            case 0x1b:
            case 0x1c:
            case 0x1d:
                return(new SpecialLevelTimeChallenge(this, levelChallengeMetaDataByKey));

            case 30:
                return(new MaxMonsterKilledByBranchAttackChallenge(this, levelChallengeMetaDataByKey));

            case 0x1f:
                return(new MaxQTETriggeredChallenge(this, levelChallengeMetaDataByKey));
            }
            throw new Exception("Invalid Type or State!");
        }
Exemplo n.º 20
0
 public LimitTrapTriggeredChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished         = true;
     this._trapTriggeredNum = 0;
     this.targetNum         = base._metaData.paramList[0];
 }
Exemplo n.º 21
0
 public MaxDebuffAddChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished             = false;
     this.targetDebuffAddNum    = base._metaData.paramList[0];
     this._addDebuffMonsterList = new List <uint>();
 }
Exemplo n.º 22
0
 public MaxAvatarClassInTeamChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished   = false;
     this.targetNum   = base._metaData.paramList[0];
     this.targetClass = base._metaData.paramList[1];
 }
Exemplo n.º 23
0
 public MaxMonsterKilledByBranchAttackChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished       = false;
     this._tempKilledNum  = 0;
     this.targetKilledNum = base._metaData.paramList[0];
 }
Exemplo n.º 24
0
 public MaxQTETriggeredChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished       = false;
     this.targetNum       = base._metaData.paramList[0];
     this._qteTiggeredNum = 0;
 }
 public MaxMonsterKilledInCertainTimeChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished = false;
     this._tempKilledAmountInWindow    = 0;
     this._tempMaxKilledAmountInWindow = 0;
     this._stasticsTimer     = 0f;
     this.targetTimeWindow   = (float)base._metaData.paramList[0];
     this.targetKilledAmount = base._metaData.paramList[1];
     this._killedAmountLs    = new List <Tuple <float, int> >();
     this._inStastics        = false;
 }
Exemplo n.º 26
0
 public MaxMonsterHitAirChallenge(LevelChallengeHelperPlugin helper, LevelChallengeMetaData metaData) : base(helper, metaData)
 {
     this._finished          = false;
     this._tempHitAirAmount  = 0;
     this.targetHitAirAmount = base._metaData.paramList[0];
 }