Ejemplo n.º 1
0
        private static void OnPreReturnHome()
        {
            try
            {
                if (GameUtils.IsInstalled(ProductVersion.EP2))
                {
                    PreReturnHome(ConsignedObjectProxy.ConvertToList(ConsignmentRegister.sConsignedObjects));

                    ConsignmentRegister.sConsignedObjects = new Dictionary <ulong, List <ConsignmentRegister.ConsignedObject> >();
                }

                if (GameUtils.IsInstalled(ProductVersion.EP7))
                {
                    PreReturnHome(ConsignedObjectProxy.ConvertToList(PotionShopConsignmentRegister.sConsignedObjects));

                    PotionShopConsignmentRegister.sConsignedObjects = new Dictionary <ulong, List <PotionShopConsignmentRegister.ConsignedObject> >();
                }

                if (GameUtils.IsInstalled(ProductVersion.EP11))
                {
                    PreReturnHome(ConsignedObjectProxy.ConvertToList(BotShopRegister.sConsignedObjects));

                    BotShopRegister.sConsignedObjects = new Dictionary <ulong, List <BotShopRegister.ConsignedObject> >();
                }
            }
            catch (Exception e)
            {
                Common.Exception("OnPreReturnHome", e);
            }
        }
Ejemplo n.º 2
0
        protected static void OnSupernaturalConsign()
        {
            if (PotionShopConsignmentRegister.sSkillVsSaleChanceCurve == null)
            {
                PotionShopConsignmentRegister.InitializeData();
            }

            Dictionary <ulong, List <ConsignedObjectProxy> > objects = ConsignedObjectProxy.ConvertToList(PotionShopConsignmentRegister.sConsignedObjects);

            Consign(objects, PotionShopConsignmentRegister.sConsignAttempts, PotionShopConsignmentRegister.kConsignmentPrices, PotionShopConsignmentRegister.kMadeGoodSaleThreshold, PotionShopConsignmentRegister.kReputationBonusForPositiveFeedback, PotionShopConsignmentRegister.sQualityVsReputationCurve, PotionShopConsignmentRegister.kSellXItemsOpportunityReputationGainMultiplier, PotionShopConsignmentRegister.kConsignmentLifespan, PotionShopConsignmentRegister.kDailyNumberOfAttemptsDecrement, PotionShopConsignmentRegister.sReputationVsStoreFeeCurve, PotionShopConsignmentRegister.kNumberOfTopSellingItems, PotionShopConsignmentRegister.kMakeXSimoleonsOpportunityConsignmentFeeMultiplier);

            PotionShopConsignmentRegister.sConsignedObjects = ConsignedObjectProxy.ConvertToList <PotionShopConsignmentRegister.ConsignedObject>(objects);
        }