Be able to craft multiple items when holding Right Click

BlaDe

Farmer
1.5.5 came with the welcome addition to purchase and craft in stacks of 25 when holding down both Left Control and Left Shift.

When buying items, holding down right click lets you quickly purchase items. Holding Left Shift and Left Control lets you buy in stacks of 25 fast.

When crafting items, holding down right click lets you quickly purchase items. However Left Shift and Left Control have no affect here; you only quickly craft in stacks of 1.

Can we get Left Shift and Left Control affecting right click when crafting?

Should just be able to port code from CraftingPage::receiveLeftClick to CraftingPage::receiveRightClick. i.e.
C#:
                int times = ((!Game1.oldKBState.IsKeyDown(Keys.LeftShift)) ? 1 : (Game1.oldKBState.IsKeyDown(Keys.LeftControl) ? 25 : 5));
                for (int i = 0; i < times; i++)
                {
                    if (c.containsPoint(x, y) && !c.hoverText.Equals("ghosted") && this.pagesOfCraftingRecipes[this.currentCraftingPage][c].doesFarmerHaveIngredientsInInventory(this.getContainerContents()))
                    {
                        this.clickCraftingRecipe(c, i == 0);
                    }
                }
 
Top