| 72 | } |
| 73 | |
| 74 | uint64_t Item::setCount(uint64_t count, bool overfill) { |
| 75 | if (overfill) |
| 76 | m_count = count; |
| 77 | else |
| 78 | m_count = std::min(count, m_maxStack); |
| 79 | return count - m_count; |
| 80 | } |
| 81 | |
| 82 | bool Item::stackableWith(ItemConstPtr const& item) const { |
| 83 | return item && name() == item->name() && parameters() == item->parameters(); |
no outgoing calls
no test coverage detected