| 319 | |
| 320 | |
| 321 | int32_t MapExtras::Block::priorityAt(df::coord2d pos) |
| 322 | { |
| 323 | if (!block) |
| 324 | return false; |
| 325 | |
| 326 | if (auto event = getPriorityEvent(block, false)) |
| 327 | return event->priority[pos.x % 16][pos.y % 16]; |
| 328 | |
| 329 | return 0; |
| 330 | } |
| 331 | |
| 332 | bool MapExtras::Block::setPriorityAt(df::coord2d pos, int32_t priority) |
| 333 | { |
no test coverage detected