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: use loot modifiers correctly when creating loot #1310

Merged
merged 5 commits into from
Jul 28, 2023

Conversation

luan
Copy link
Contributor

@luan luan commented Jul 27, 2023

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.

@luan luan force-pushed the luan/silence-warnings branch from 6dfa224 to 067a086 Compare July 27, 2023 02:29
@luan luan mentioned this pull request Jul 27, 2023
1 task
Copy link
Contributor

@QuebradaZN QuebradaZN left a comment

Choose a reason for hiding this comment

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

Working

@luan luan changed the title fix: noisy warnings fix: use loot modifiers correctly when creating loot Jul 27, 2023
@luan luan force-pushed the luan/silence-warnings branch from 0e36e4e to 89562f6 Compare July 27, 2023 22:40
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@dudantas dudantas merged commit 024fe56 into main Jul 28, 2023
@dudantas dudantas deleted the luan/silence-warnings branch July 28, 2023 03:41
luan added a commit that referenced this pull request Jul 28, 2023
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.
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.

4 participants