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 not decaying duration and related bugs #869

Merged
merged 12 commits into from
Feb 21, 2023

Conversation

dudantas
Copy link
Member

@dudantas dudantas commented Feb 18, 2023

Description

• Fixed item decay with duration (both equip/deEquip and onUse),
• Fixed the look of items with duration, it did not show the duration of some items (eg rings, when equipped),
• Functions created in the Item class to avoid code duplication and facilitate the maintenance readability of some systems
• Removed old code from imbuement, which is no longer used
• Removed the decay of items created by loading the .otbm from decay map, thus decreasing by about three thousand five hundred items in the decay check.

Behaviour

Actual

Systems mentioned in the description did not work correctly.

Expected

Everything working perfectly.

Type of change

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

How Has This Been Tested

Basically test the decay of the duration of items and also the decay of items for other ids.

@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 5 Code Smells

0.0% 0.0% Coverage
23.1% 23.1% Duplication

@dudantas dudantas changed the title fix: item not decaying duration fix: item not decaying duration and related bugs Feb 21, 2023
@dudantas dudantas merged commit 5c6498f into opentibiabr:main Feb 21, 2023
@dudantas dudantas mentioned this pull request Feb 24, 2023
5 tasks
@dudantas dudantas linked an issue Feb 24, 2023 that may be closed by this pull request
5 tasks
beats-dh pushed a commit to beats-dh/canary that referenced this pull request Feb 26, 2023
• Fixed item decay with duration (both equip/deEquip and onUse),
• Fixed the look of items with duration, it did not show the duration of some items (example rings, when equipped),
• Functions created in the Item class to avoid code duplication and facilitate the maintenance readability of some systems
• Removed old code from imbuement, which is no longer used
• Removed the decay of items created by loading the ".otbm" map from decay std::map, thus decreasing by about three thousand five hundred items in the decay check.
luan pushed a commit that referenced this pull request Jul 11, 2023
• Fixed item decay with duration (both equip/deEquip and onUse),
• Fixed the look of items with duration, it did not show the duration of some items (example rings, when equipped),
• Functions created in the Item class to avoid code duplication and facilitate the maintenance readability of some systems
• Removed old code from imbuement, which is no longer used
• Removed the decay of items created by loading the ".otbm" map from decay std::map, thus decreasing by about three thousand five hundred items in the decay check.
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.

Softboots auto recharging
1 participant