public static bool IsExtraEffectMonster(MonsterData monsterData, GameWebAPI.RespDataMA_GetWorldDungeonExtraEffectM.WorldDungeonExtraEffectM[] effectArray)
    {
        if (MonsterGrowStepData.IsGardenDigimonScope(monsterData.monsterMG.growStep))
        {
            return(false);
        }
        int areaId = ExtraEffectUtil.GetAreaId();

        foreach (int num in monsterData.GetChipEquip().GetChipIdList())
        {
            GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] chipEffectData = ChipDataMng.GetChipEffectData(num.ToString());
            if (chipEffectData != null)
            {
                GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] invocationList = ChipEffectStatus.GetInvocationList(chipEffectData, EffectStatusBase.EffectTriggerType.Area, monsterData.monsterM.monsterGroupId.ToInt32(), null, areaId);
                if (invocationList.Length > 0)
                {
                    return(true);
                }
            }
        }
        GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus[] eventPointBonuses = ExtraEffectUtil.GetEventPointBonuses(ExtraEffectUtil.GetDungeonId().ToString());
        foreach (GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus eventPointBonus in eventPointBonuses)
        {
            bool flag = ExtraEffectUtil.CheckExtraParams(monsterData, eventPointBonus);
            if (flag)
            {
                return(true);
            }
        }
        return(ExtraEffectUtil.CheckExtraStageParams(monsterData, effectArray));
    }
Esempio n. 2
0
    private int GetGardenGrowingMonsterNum(List <MonsterData> monsterDataList)
    {
        int num = 0;

        for (int i = 0; i < monsterDataList.Count; i++)
        {
            int growStep = (int)MonsterGrowStepData.ToGrowStep(monsterDataList[i].monsterMG.growStep);
            if (MonsterGrowStepData.IsGardenDigimonScope(growStep) && (monsterDataList[i].userMonster.IsEgg() || monsterDataList[i].userMonster.IsGrowing()))
            {
                num++;
            }
        }
        return(num);
    }
Esempio n. 3
0
    private int GetDigiHouseMonsterNum(List <MonsterData> monsterDataList)
    {
        int num = 0;

        for (int i = 0; i < monsterDataList.Count; i++)
        {
            int growStep = (int)MonsterGrowStepData.ToGrowStep(monsterDataList[i].monsterMG.growStep);
            if (!MonsterGrowStepData.IsGardenDigimonScope(growStep))
            {
                num++;
            }
        }
        return(num);
    }
 public static void InitializeMonsterPosition(GameObject monster, string growStep)
 {
     if (MonsterGrowStepData.IsGardenDigimonScope(growStep))
     {
         monster.transform.localPosition = Vector3.zero;
     }
     else if (MonsterGrowStepData.IsGrowingScope(growStep))
     {
         monster.transform.localPosition = new Vector3(0f, 0.3f, 0f);
     }
     else
     {
         monster.transform.localPosition = new Vector3(0f, 0.5f, 0f);
     }
 }