-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core/Players: Improve trade exchange calculations (#24435)
* Add some comments to Player::CanStoreItems to help me wrap my head around how the method works. * Experimental fix for incoming trade-stack problem. * Only add to stacks that aren't already full. * Use remaining_count instead of static 1. * Remove debug logging from exploration. * More uses of remaining_count for consistency. * Correct space count check * Correct overflow problem. * Remove redundant check, handled in existing for statement. * Store Item pointers in order to be able to merge in multiple incoming stacks. * Build fix - was continually working locally, but failing in CI. * Break build in order to keep PR focused on Player.cpp changes. * Adjust phrasing of how arrays are initialized. * Fix phrasing of comments to avoid sounding like a ToDo item * In the spirit of b649273, rephrase an old comment to be a statement rather than a question.
- Loading branch information
1 parent
4bf5bec
commit e11a13c
Showing
1 changed file
with
98 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e11a13c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close? #24434