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: powerful imbuement price #915

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

PeachieDude
Copy link
Contributor

@PeachieDude PeachieDude commented Mar 8, 2023

Description

Imbuements are being charged incorrectly, found it wasn't a bad config in Lua file (only), running the way it is, the only correct value is for powerful but just cuz it's misconfigured price and protectionPrice were wrongly placed.

Behavior

When going to imbue an equipment, the basic and intricate options are asking for an incorrect amount

127 0 0 1_client_tv6v8r1EOo
basic as example, it should be 5k to imbue and 10k to rise the odds

even though the file is right configured
devenv_Lir4AJo978

the powerful option is configured wrongly but due the way the code is right now, you'll get the right value in game.

Expected

Considering the information
msedge_67jSc3exrv

If going for the basic imbue you should be asked to pay 5k and 10k for rising the odds to 100%
intricate should ask 25k and 30k for rising the odds
(powerful is showing the correct value but again, its configured wrongly as you cans ee the price and protectionPrice set)

Fixes

placing price, protectionPrice in the right place and fixing the values for it will fix it.

# (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
    Logging to the game and trying to imbue an item and being sure to be charged the correct amount of gold
    Before imbuing (plain value 100k)
    127 0 0 1_client_frfrRUyJtZ
    after imbuing (you can see that i was charged correctly, 100k)
    127 0 0 1_client_Ag48WHnOPf

Test Configuration:

  • Server Version: 2.6.1
  • Client: 12.91
  • Operating System: Windows 10

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

placing it right so it will get the values correctly
The way it is now its giving the wrong values for price and protection price
it reads price from xml as protection price and vice versa

the way it is now, only the powerful is correct due the price being set 'incorrectly'
correcting the last option (powerful) to its correct value.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 8, 2023

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
0.0% 0.0% Duplication

@majestyotbr majestyotbr changed the title Imbuements incorrectly set fix: powerful imbuement price Mar 15, 2023
@dudantas dudantas merged commit 8f6ad29 into opentibiabr:main Mar 15, 2023
luan pushed a commit that referenced this pull request Jul 11, 2023
Imbuements are being charged incorrectly, found it wasn't a bad config in Lua file (only), running the way it is, the only correct value is for powerful but just cuz it's misconfigured price and protectionPrice were wrongly placed.
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.

3 participants