Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine stacks of coins, make combine work in adventure mode #1227

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Crystalwarrior
Copy link
Contributor

@Crystalwarrior Crystalwarrior commented Jul 3, 2024

Allow combine to work in adventure mode and also combine stacks of coins

Note that it's safer to use the (z) -> Items tab to combine stacks currently, as doing so from the (i)nventory will not update the interface to reflect the change until you quit out of the inventory and come back. Currently, this is resolved by closing the inventory interface, prompting the player to bring it up manually themselves.

Copy link
Contributor

@Ozzatron Ozzatron left a comment

Choose a reason for hiding this comment

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

Functionality looks good. Main thing I was concerned about is coins max stacking at 500 (which is what you've done). Some of the user feedback could be improved though.

combine.lua Outdated Show resolved Hide resolved
combine.lua Outdated Show resolved Hide resolved
@myk002
Copy link
Member

myk002 commented Jul 19, 2024

until you quit out of the inventory and come back

can you synthesize this with sent keystrokes?

combine.lua Show resolved Hide resolved
@Crystalwarrior
Copy link
Contributor Author

until you quit out of the inventory and come back

can you synthesize this with sent keystrokes?

The thing is, when you press the "examine" button, the inventory is still technically 'open'. But I can't send the 'inventory' keystroke from the screen that's examining the item, meaning I'd have to create a hook to wait on the user to come back to the inventory to refresh it. Alternatively, I would re-generate the inventory myself from code in the background but I'm sure to miss something. Therefore the safest route is to simply close the inventory interface and tell the user that happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants