Skip to content

[feature] 60 slots backpack#132

Open
FrogSkyWater wants to merge 1 commit into
bcmpinc:mainfrom
FrogSkyWater:main
Open

[feature] 60 slots backpack#132
FrogSkyWater wants to merge 1 commit into
bcmpinc:mainfrom
FrogSkyWater:main

Conversation

@FrogSkyWater
Copy link
Copy Markdown

Expand the 48 slots with a second "buyable" backpack with 60 slots

many things broken as per email chat, backlog :

  • dialogues (first one showing 48, the other one showing 60) during buying process
  • show separate backpack .png for the 48 and 60 bpack
  • in-game commands seems broken
  • edit the config.json generation to allow user to set the price of both backpacks
  • Left-mouse click in any slot of the 5th row closes the interface. fyi 'More Backpack upgrades' mod has the same bug, i tried to resize UI but unsuccessful (it's a minor bug)

Copy link
Copy Markdown
Owner

@bcmpinc bcmpinc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies for the late reply. I had taken a look at it earlier, but did not know how to politely tell you that this still needs a lot of work. The patch lacks branching logic that decides which upgrade is being purchased. That means there's still only one upgrade and it upgrades from 36 to 60. At least it would be if it worked.

Considering the goal was to create a second upgrade, there's a lot that still needs to be done (see my review for where to start). Furthermore the screen for the community bundles has not been updated. Another issue you will run into is that on some screens inventories are going to overlap even more, especially in the museum.

To be honest, forgetting the branching logic, makes me wonder if you have enough programming experience to write this update. It gives me the impression you may have used AI to write this patch for you. If that is indeed the case, then I'm afraid this will turn out to become a waste of both of our time.

"SetBackpackSizeCommand": "Set the size of the player's backpack. This must be a multiple of 12",
"Purchase": "Purchase ({{cost}}g)",
"BackpackUpgrade": "Backpack Upgrade -- 60 slots",
"PremiumPack": "Premium Pack",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There needs to be a second line here for the name of the second upgrade.

BackpackCostName: "Backpack cost", BackpackCostTooltip: "How much you have to pay to buy this backpack in the shop.",
"SetBackpackSizeCommand": "Set the size of the player's backpack. This must be a multiple of 12",
"Purchase": "Purchase ({{cost}}g)",
"BackpackUpgrade": "Backpack Upgrade -- 60 slots",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably should be changed to Backpack Upgrade -- {{slots}} slots and the code referencing this string updated accordingly.

/** How much you have to pay to buy this backpack in the shop. (default = 50000).*/
public int BackpackCost = 50000;
/** How much you have to pay to buy this backpack in the shop. (default = 100000).*/
public int BackpackCost = 100000;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There need to be two lines here. One cost for the first upgrade, another for the second.

}

static void buyBackpack() {
Game1.player.Money -= getBackpackCost();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here needs to be a branch to decide which new upgrade is being bought and how much it costs.

code[2].operand = 104;
code[6].operand = 120;

// Change inventory from a 6x6 grid to a 7x7 grid.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed into an 8*8 grid to accommodate the 60 inventory slots in the community bundle menu. The image used for this needs to be updated as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants