-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Fix the logic of transferring artifacts after a battle #9594
Conversation
@oleg-derevenetz . The logic looka correct apart from the transfer of ultimate artifacts. From what I understand, the UA will never leave the defeated hero, right @LeHerosInconnu ? Meanwhile, I'm aware that in the original game the winning hero gets an empty inventory slot per UA on the defeated hero but this seems strange to me, which means that items are skipped. I'll ask for people's opinion on it in the issue thread. |
According to my understanding, they either disappear or remain with the defeated hero. The winner never gets them. It works the same way here.
Well, in this PR, empty slots for UA also remain in the winner's bag, just at the end, not in the middle. I don't think it's essential. |
I've tested this now and can confirm that in the case when a UA is attempted to be transferred when there's space in the winning hero's inventory, it will disappear from the losing hero's inventory too. |
Hello @zenseii and @oleg-derevenetz,
It's only for demonstration purposes, right? :)
If the victorious hero has a free slot in his inventory, he tries to grab the ultimate artifact, but it disappears as soon as he tries.
Yes, it's weird and doesn't really make sense. |
@oleg-derevenetz , a bunch of thanks for the fix! |
fix #9592
If I understood correctly, this is exactly how it should work. Here is a video of the artifact transfer process (the source has been modified a bit to allow the artifact transfer on retreat or surrender):
fheroes2.engine.version_.1.1.6.2025-02-24.23-28-59.mp4