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

Replace "gold only" chest dialog with "gold or exp" one in case when hero has no space for an artifact #9607

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

Conversation

roman-yagodin
Copy link
Contributor

This will resolve #9546.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@ihhub ihhub added improvement New feature, request or improvement ui UI/GUI related stuff labels Mar 5, 2025
@ihhub ihhub added this to the 1.1.7 milestone Mar 5, 2025
Copy link
Owner

@ihhub ihhub left a comment

Choose a reason for hiding this comment

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

Hi @roman-yagodin , I left few comments here. Could you please take a look when you have time?

@@ -1835,24 +1849,12 @@ namespace
const Artifact & art = getArtifactFromTile( tile );

if ( gold ) {
Copy link
Owner

Choose a reason for hiding this comment

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

We need to do the same change for the AI in void AIToTreasureChest() function.

Copy link
Owner

Choose a reason for hiding this comment

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

Hi @roman-yagodin , we haven't addressed this comment. We have to do the similar changes for the AI as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I will look at it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ihhub, I've made some changes to AIToTreasureChest() function, but not sure I understand all ins and outs. Could you please check it out and give me some further directions? I wonder how it can be tested in first place.

@roman-yagodin
Copy link
Contributor Author

OK, sure.

in case when hero has no space for an artifact
- pass gold param via reference,
- standardize msg var declaration,
- move function code up the source
@ihhub
Copy link
Owner

ihhub commented Mar 21, 2025

Hi @roman-yagodin , if you would be able to update the pull request by today then we can merge it to the upcoming release.

@ihhub ihhub modified the milestones: 1.1.7, 1.1.8 Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement ui UI/GUI related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adventure map, treasure chest does not offer exp when hero has no space for an artifact
2 participants