Commit c3bafd8
authored
fix: add taint experience boost for Soul War monsters (opentibiabr#3494)
# Description
This PR introduces a fix and enhancement for the experience boost system
related to the Soul War quest. Specifically, it ensures that the taint
level of the player is correctly factored into the experience
calculation when defeating monsters listed in the
SoulWarQuest.bagYouDesireMonsters.
## Behaviour
### **Actual**
The taint level boost was not applied correctly in some cases.
Experience calculation did not account for edge cases where the taint
level or boost map might be undefined.
### **Expected**
The taint level boost is applied consistently and correctly.
Experience calculation handles edge cases gracefully.
## Type of change
- [x] New feature (non-breaking change which adds functionality)
## How Has This Been Tested
- [x] Hunt any SoulWar monster and see the EXP increasing with different
taint levels.
## Checklist
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I checked the PR checks reports
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works1 parent 5e0e531 commit c3bafd8
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
585 | 597 | | |
586 | 598 | | |
587 | 599 | | |
| |||
0 commit comments