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

feat: custom pvp system #1403

Merged
merged 17 commits into from
Nov 12, 2023
Merged

Conversation

sebbesiren
Copy link
Contributor

@sebbesiren sebbesiren commented Aug 14, 2023

Description

Created two different systems to modify damage values in PvP.

The first system is damage rate based on levelse. These are controller by three attributes in the config.lua. These have been added to the config.lua.dist.

The second system is damage rates based on vocations. This system is modified using vocations.xml. Added a new tag to the xml named pvp. You can control damage take and dealt per vocation.

All rates are multiplicative so use carefully.

Behaviour

Actual

Do this and that doesn't happens

Expected

Do this and that happens

Fixes #issuenumber

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested

I have tested the system in a test environment.
Tested:

  • Damage mitigation from levels
  • Damage increase from levels
  • Damage mitigation from vocation
  • Damage increase from vocation

Test Configuration:

  • Server Version: main
  • Client: 13.2
  • Operating System: Win 11

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

@sebbesiren sebbesiren changed the title Custom pvp system feat: custom pvp system Aug 14, 2023
@sebbesiren
Copy link
Contributor Author

@dudantas
Is this something that is not wanted? I will try to fix the dependencies until it has been merged.

@dudantas
Copy link
Member

@dudantas Is this something that is not wanted? I will try to fix the dependencies until it has been merged.

Yes, it's desirable, I just didn't merge it due to lack of tests and reviews, at the moment I'm busy with some pull requests and I didn't have time to test it.

@sebbesiren
Copy link
Contributor Author

@dudantas Is this something that is not wanted? I will try to fix the dependencies until it has been merged.

Yes, it's desirable, I just didn't merge it due to lack of tests and reviews, at the moment I'm busy with some pull requests and I didn't have time to test it.

Alright! I will try to updade the PR every now and then.

@SebastianNobbelin
Copy link

@dudantas
Updated to new Player pointers so it works again.
Changes looks approved but noone has merged

@sebbesiren
Copy link
Contributor Author

My bad, commented from another git account :|

@dudantas dudantas marked this pull request as draft October 20, 2023 23:55
@sebbesiren sebbesiren marked this pull request as ready for review October 31, 2023 09:32
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 9 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dudantas dudantas merged commit 336ebb7 into opentibiabr:main Nov 12, 2023
elsongabriel pushed a commit to elsongabriel/canary that referenced this pull request Nov 13, 2023
Created two different systems to modify damage values in PvP. 

The first system is damage rate based on levelse. These are controller by three attributes in the config.lua. These have been added to the config.lua.dist.

The second system is damage rates based on vocations. This system is modified using vocations.xml. Added a new tag to the xml named pvp. Can control damage take and dealt per vocation.
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.

6 participants