Esempio n. 1
0
 private void GameLoop_DayEnding(object sender, DayEndingEventArgs e)
 {
     // Check item sell quests for shipping bin items
     foreach (ISalable item in Game1.getFarm().getShippingBin(Game1.player))
     {
         QuestCheckers.CheckSellQuests(item);
     }
 }
Esempio n. 2
0
        private void GameLoop_DayEnding(object sender, DayEndingEventArgs e)
        {
            // Check item sell quests for shipping bin items
            foreach (Item item in Game1.getFarm().getShippingBin(Game1.player))
            {
                int itemPrice = item is StardewValley.Object obj ? obj.sellToStorePrice(-1L) : item.salePrice();

                QuestCheckers.CheckSellQuests(item, itemPrice * item.Stack, ship: true);
            }
        }