| 183 | } |
| 184 | |
| 185 | static InventoryTile _tile_for_ability(ability_type ability) |
| 186 | { |
| 187 | InventoryTile desc; |
| 188 | desc.tile = tileidx_ability(ability); |
| 189 | desc.idx = (int) ability; |
| 190 | desc.quantity = ability_mp_cost(ability); |
| 191 | |
| 192 | if (tile_command_not_applicable(CMD_USE_ABILITY, true) |
| 193 | || !check_ability_possible(ability, true)) |
| 194 | { |
| 195 | desc.flag |= TILEI_FLAG_INVALID; |
| 196 | } |
| 197 | |
| 198 | return desc; |
| 199 | } |
| 200 | |
| 201 | void AbilityRegion::update() |
| 202 | { |
no test coverage detected