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

Object: GetInventoryItemCount() will also work on stores. #1699

Merged
merged 4 commits into from
Sep 23, 2023

Conversation

ReachPW
Copy link
Contributor

@ReachPW ReachPW commented Sep 17, 2023

Stores have 5 CItemRepository's (one for each tab).

This adds a a function to count items in CItemRepository and loops over the store's to get full count.

Otherwise, existing Creature/Placeables/Items will call it and just return since they only have 1 CItemRepository.

@Daztek
Copy link
Member

Daztek commented Sep 18, 2023

Please fix the formatting, brackets on a new line, indentation, etc 🙃

@ReachPW
Copy link
Contributor Author

ReachPW commented Sep 18, 2023

ok, hopefully better, I tried to fix by hand.

Does this project use a formatter ? I tried clang-format with a few style, but it raised a bunch of diffs.

@Daztek Daztek changed the base branch from build8193.36 to master September 23, 2023 10:39
@Daztek Daztek merged commit fb56996 into nwnxee:master Sep 23, 2023
5 checks passed
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.

2 participants