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: reduce merchant item restock range #4164

Merged

Conversation

OrenAudeles
Copy link
Collaborator

Purpose of change

Fixes #3980
Merchant NPCs are pulling all faction owned items within PICKUP_RANGE when restocking. If there are faction owned items in display cases they will disappear and not be replaced. Since merchants drop excess inventory at their feet we should only be picking up that inventory when restocking.

Describe the solution

Reduce range from PICKUP_RANGE to 0

Describe alternatives you've considered

Make a "merchant hammerspace" alternative inventory so that merchant carried sales inventories can go into there without bringing back perf issues from being overburdened while carrying items in the personal inventories. Sorta like the inventory chests that NPCs access in Oblivion / Skyrim.

@github-actions github-actions bot added the src changes related to source code. label Jan 27, 2024
@scarf005 scarf005 merged commit 80fddc4 into cataclysmbnteam:main Jan 27, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initiating A Trade Request With A Merchant Causes The Items Around Them To Disappear/Despawn
3 participants