| 284 | |
| 285 | bool goalByCount() { return config.ival(2) & 1; } |
| 286 | void setGoalByCount(bool v) { |
| 287 | if (v) |
| 288 | config.ival(2) |= 1; |
| 289 | else |
| 290 | config.ival(2) &= ~1; |
| 291 | } |
| 292 | |
| 293 | int curItemStock() { return goalByCount() ? item_count : item_amount; } |
| 294 |
no test coverage detected