コード例 #1
0
        public override void Execute()
        {
            Reward item = new Reward();

            item.ChestType = ChestType.ServerGift;
            item.addShopEntryDrop(GameLogic.Binder.GameState.Player, this.m_id, false);
            List <Reward> rewards = new List <Reward>();

            rewards.Add(item);
            RewardHelper.ClaimReward(rewards, true);
        }
コード例 #2
0
        public override void Execute()
        {
            Reward item = new Reward();

            item.Pets = new List <PetReward>();
            if (App.Binder.ConfigMeta.IsActivePetId(this.m_id))
            {
                item.ChestType = ChestType.ServerGift;
                List <string> list = new List <string>();
                list.Add("PetBundleSmall");
                item.ShopEntryDrops = list;
                PetReward reward2 = new PetReward();
                reward2.PetId  = this.m_id;
                reward2.Amount = this.m_amount;
                item.Pets.Add(reward2);
                item.Sprite = "icon_" + this.m_id.ToLower();
            }
            List <Reward> rewards = new List <Reward>();

            rewards.Add(item);
            RewardHelper.ClaimReward(rewards, true);
        }