-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
feat: concoctions system #1223
feat: concoctions system #1223
Conversation
acho que já vi o bug ali vou arrumar jaja |
@thunerm pode testar o ultimo commit? |
Kudos, SonarCloud Quality Gate passed! |
Description
Implements a system to handle concoctions (aka tibiadrome potions): https://tibia.fandom.com/wiki/Tibiadrome#Rewards
The system is somewhat complex and there's a small need for the concoction duration to be available in C++ so we can send the bytes back.
Most of the logic is in the new
concoctions_lib.lua
which provides a registry to create concoction configurations and later introspect the state/duration of them for a player.I have also added a new config key
partyShareLootBoosts
that allows one (any) party member to give the party a loot boost via either prey or wealth duplex. This is not how Tibia works, but the way Tibia works for these is really annoying to I made it an option to enable this.Note that this only includes 4 of the concoctions, the other ones can be implemented after.
Stamina Extension
Kapture.2023-07-08.at.12.09.36.mp4
Kooldown-Aid
Kapture.2023-07-08.at.12.13.31.mp4
Concoctions in cyclopedia
None

One
Two
Cooldown
Login notification
Wealth Duplex
Bestiary Betterment
Kapture.2023-07-08.at.12.21.51.mp4
Type of change
How Has This Been Tested
See all the screenshots/videos above
Test Configuration:
Checklist