Example #1
0
        public static bool HasLegendaryPerkUp(this IMissionX m, WorldName world)
        {
            var rslt = m.FindNormalItemById("Reagent_Alteration_Upgrade_SR", world);

            m.SetOrderNumber(rslt, 4);
            if (m.IsGroupMission)
            {
                m.SetOrderNumber(rslt, 3);
            }
            return(rslt);
        }
Example #2
0
        public static bool HasMythicSurvivor(this IMissionX m)
        {
            var rslt = m.HasSurvivor(ItemRarity.Mythic);

            m.SetOrderNumber(rslt, 0);
            return(rslt);
        }
Example #3
0
        public static bool HasLegendarySurvivor(this IMissionX m)
        {
            var rslt = m.HasSurvivor(ItemRarity.Legendary);

            m.SetOrderNumber(rslt, 0);
            return(rslt);
        }
Example #4
0
        public static bool HasLegendaryShematic(this IMissionX m)
        {
            var count = m.Items.Any(f => f.Class == ItemClass.Schematic && f.Rarity == ItemRarity.Legendary);

            m.SetOrderNumber(count, 2);
            return(count);
        }
Example #5
0
        public static bool HasVBuck(this IMissionX m)
        {
            var rslt = m.FindNormalItemById("MtxGiveaway");

            if (!rslt)
            {
                rslt = m.FindNormalItemById("currency_mtxswap");
            }
            if (rslt)
            {
                m.SetOrderNumber(rslt, 0);
            }
            return(rslt);
        }
Example #6
0
        public static bool Has4x(this IMissionX m, string IdContains, WorldName world = WorldName.Twine_Peaks)
        {
            if (!m.Has4xAny())
            {
                return(false);
            }

            var rslt = m.FindNormalItemById(IdContains, world);

            if (!rslt)
            {
                return(false);
            }

            rslt = m.IsMissionReward(IdContains);
            if (!rslt)
            {
                return(false);
            }

            m.SetOrderNumber(rslt, 6);
            return(true);
        }