| 4234 | } |
| 4235 | |
| 4236 | void getItemEmptySlotStackingBehavior(const int player, Item& itemToCheck, int& newQtyForCheckedItem, int& newQtyForDestItem) |
| 4237 | { |
| 4238 | int maxStack = itemToCheck.getMaxStackLimit(player); |
| 4239 | if ( itemToCheck.count > maxStack ) |
| 4240 | { |
| 4241 | newQtyForCheckedItem = itemToCheck.count - maxStack; |
| 4242 | newQtyForDestItem = maxStack; |
| 4243 | } |
| 4244 | else |
| 4245 | { |
| 4246 | newQtyForCheckedItem = 0; |
| 4247 | newQtyForDestItem = itemToCheck.count; |
| 4248 | } |
| 4249 | } |
| 4250 | |
| 4251 | ItemStackResult getItemStackingBehaviorIntoChest(const int player, Item* itemToCheck, Item* itemDestinationStack, int& newQtyForCheckedItem, int& newQtyForDestItem) |
| 4252 | { |
no test coverage detected