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

Core/Creatures: Allow profession tools to be used as equipment #29915

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

meji46
Copy link
Member

@meji46 meji46 commented Apr 11, 2024

Changes proposed:

  • Allow profession tools to be used as equipment

Issues addressed:
None

Tests performed:
Builds, tested in-game: Lee Sunspark

Known issues and TODO list: (add/remove lines as needed)
None

@@ -415,6 +415,20 @@ enum InventoryType : uint8

#define MAX_INVTYPE 35

constexpr std::array<InventoryType, 10> InventoryTypesEquipable =
Copy link
Member

Choose a reason for hiding this comment

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

Eh, making it local in ObjectMgr::LoadEquipmentTemplates seems fine (I don't see another use for this)

Copy link
Member Author

Choose a reason for hiding this comment

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

True, I don't know why I was thinking about validations for SAI. Fixed

Copy link
Member

Choose a reason for hiding this comment

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

Maybe because SAI can set random items (not validated) if action_param1 = 0

Copy link
Member Author

Choose a reason for hiding this comment

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

Sooo... should I move it back to where I put it? I don't like the idea of being able to try to equip any item in that SAI action

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.

None yet

2 participants