* Gets the time unit cost to place an item in another section. * @param slot The new section id. * @return The time unit cost. */
| 229 | * @return The time unit cost. |
| 230 | */ |
| 231 | int RuleInventory::getCost(RuleInventory* slot) const |
| 232 | { |
| 233 | if (slot == this) |
| 234 | return 0; |
| 235 | return _costs.find(slot->getId())->second; |
| 236 | } |
| 237 | |
| 238 | int RuleInventory::getListOrder() const |
| 239 | { |