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

fix: safer iteration over reward containers #1305

Merged
merged 8 commits into from
Jul 28, 2023
Merged

fix: safer iteration over reward containers #1305

merged 8 commits into from
Jul 28, 2023

Conversation

luan
Copy link
Contributor

@luan luan commented Jul 23, 2023

• Fixed some iterations related to reward collect.
• Fixed for the loot on the body of bosses to use quickloot and not reward collect.
• Fixed not being able to open the corpse any more after the reward bag is empty.

@beats-dh beats-dh self-requested a review July 23, 2023 22:42
@luan luan marked this pull request as ready for review July 27, 2023 02:59
dudantas and others added 3 commits July 28, 2023 00:44
Container:createLootItem now returns false when no loot was created (either by error or because we rolled a random that didn't add it). This was causing a warning to pop up on the monster callback. This was a harmless warning, but we were missing logs when something actually went wrong (not enough space on the corpse or invalid itemID).

This adds logs inside createLootItem and silences the spurious alerts above.
@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarCloud.

@dudantas dudantas merged commit 873f3ee into main Jul 28, 2023
@dudantas dudantas deleted the luan/fix-collect branch July 28, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants