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

Remove definition of "ITEM_TYPE_MAGICFIELD" from items.xml "field" tag #47

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

dudantas
Copy link
Member

@dudantas dudantas commented Sep 21, 2021

Description

When using a fire field rune (client id 3188), for example, on top of a campfire (client id 1999), the campfire disappeared.
The problem was because the "field" tag was setting the itemtype as "ITEM_TYPE_MAGICFIELD", which caused the two items to become the same type and conflict in sqm, removing the previous one.
The correct thing is to use the tag "type" to define the type of the item:

<attribute key="type" value="magicfield"/>

Behaviour

Actual

image
image

Expected

image

Type of change

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

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

@Costallat Costallat force-pushed the master branch 4 times, most recently from 70cfa99 to ccd27ed Compare September 24, 2021 18:26
@beats-dh beats-dh force-pushed the fix-items-xml-field-tag-rune branch from dc35d0e to 3457604 Compare October 4, 2021 04:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2021

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

@Costallat Costallat force-pushed the master branch 19 times, most recently from 144148b to 29e30e0 Compare October 5, 2021 14:16
@Costallat Costallat force-pushed the master branch 9 times, most recently from 88b2e44 to 4ab42fc Compare October 6, 2021 20:09
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 2, 2021

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 merged commit bb21078 into master Nov 2, 2021
@majestyotbr majestyotbr deleted the fix-items-xml-field-tag-rune branch November 2, 2021 19:45
luan added a commit that referenced this pull request Jul 23, 2023
luan added a commit that referenced this pull request Jul 27, 2023
luan added a commit that referenced this pull request Jul 27, 2023
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