Skip to content

Fix Issue Eternal Belt Buckle usage #1791 - #36

Closed
kadeshar wants to merge 6 commits into
kadeshar:masterfrom
Wishmaster117:Autogear-improvment
Closed

kadeshar wants to merge 6 commits into
kadeshar:masterfrom
Wishmaster117:Autogear-improvment

Conversation

@kadeshar

@kadeshar kadeshar commented Nov 1, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 1, 2025 20:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements support for the Eternal Belt Buckle mechanic from WotLK, which adds a prismatic socket to belts. The changes enable bots to automatically apply belt buckles and socket gems into the prismatic slot.

Key changes:

  • Added belt buckle application logic in the PlayerbotFactory to automatically equip belt buckles during bot setup
  • Enhanced gem socketing logic to support prismatic sockets created by belt buckles
  • Updated enchantment and gem selection algorithms to handle the additional prismatic socket slot

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/strategy/actions/UseItemAction.cpp Adds prismatic socket support to the SocketItem function, enabling gems to be placed in belt buckle slots
src/factory/PlayerbotFactory.cpp Implements belt buckle application logic and extends gem assignment to include prismatic slots

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/strategy/actions/UseItemAction.cpp Outdated
nicePacket.Read();
bot->GetSession()->HandleSocketOpcode(nicePacket);

return true;

Copilot AI Nov 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation: this line uses tabs while the rest of the file uses spaces. Replace the tab with 8 spaces to match the surrounding code style.

Suggested change
return true;
return true;

Copilot uses AI. Check for mistakes.
Comment on lines +337 to +339
// Does the belt have an active "buckle" (prismatic hunt)?
const bool hasPrismaticBeltSocket =
item->GetEnchantmentId(PRISMATIC_ENCHANTMENT_SLOT) == ENCHANT_SOCKET_BELT;

Copilot AI Nov 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable hasPrismaticBeltSocket is declared but never used. The same check is performed again at line 398. Either remove this unused variable or refactor the code at line 398 to use it.

Copilot uses AI. Check for mistakes.
WorldPacket packet(CMSG_SOCKET_GEMS);
packet << item->GetGUID();

// Does the belt have an active "buckle" (prismatic hunt)?

Copilot AI Nov 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected 'hunt' to 'slot' in the comment. The term 'prismatic hunt' appears to be a typo; it should likely read 'prismatic slot'.

Suggested change
// Does the belt have an active "buckle" (prismatic hunt)?
// Does the belt have an active "buckle" (prismatic slot)?

Copilot uses AI. Check for mistakes.
namespace
{
// WotLK Eternal Belt Buckle mechanics
constexpr uint32 ITEM_ETERNAL_BELT_BUCKLE = 41611; // Eternal Belt Buckle (consommable)

Copilot AI Nov 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'consommable' to 'consumable'.

Suggested change
constexpr uint32 ITEM_ETERNAL_BELT_BUCKLE = 41611; // Eternal Belt Buckle (consommable)
constexpr uint32 ITEM_ETERNAL_BELT_BUCKLE = 41611; // Eternal Belt Buckle (consumable)

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 5, 2025 15:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

kadeshar and others added 3 commits November 5, 2025 21:10
Warning:
Dont change this PR as draft to make it testable


DONT REVIEW UNTIL Codestyle C++ workflow dont pass
Copilot AI review requested due to automatic review settings November 6, 2025 08:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@kadeshar kadeshar closed this Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants