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: item loaded by map decays duration when moved by player #875

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

dudantas
Copy link
Member

@dudantas dudantas commented Feb 21, 2023

Description

This fix ensures that map items decay properly when moved, preventing infinite items from accumulating in the game. When a player interacts with the item by moving it, it will decay and become a common item on the map.

Behaviour

Actual

Item not decay duration.

Expected

Item decay duration.

Type of change

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

How Has This Been Tested

Goto position, for example: {x = 33254, y = 31839, z = 3} (it's just for testing, it's not possible to check here with player)
Equip the item and it's go decay duration

@dudantas dudantas force-pushed the fix-decay-map-item-on-move branch from eaa55a2 to ec837ee Compare February 21, 2023 05:45
@dudantas dudantas changed the title fix: decay loaded item from map on move fix: decay duration of loaded item from map on move Feb 21, 2023
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
22.8% 22.8% Duplication

@dudantas dudantas changed the title fix: decay duration of loaded item from map on move fix: duration of map carried item decay when moved by player Feb 23, 2023
@dudantas dudantas changed the title fix: duration of map carried item decay when moved by player fix: item loaded by map decays when moved by player Feb 23, 2023
@dudantas dudantas changed the title fix: item loaded by map decays when moved by player fix: item loaded by map decays duration when moved by player Feb 23, 2023
@dudantas dudantas merged commit e607ad5 into opentibiabr:main Feb 23, 2023
luan pushed a commit that referenced this pull request Jul 11, 2023
This fix ensures that map items decay properly when moved, preventing infinite items from accumulating in the game. When a player interacts with the item by moving it, it will decay and become a common item on the map.
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.

2 participants