| 1174 | } |
| 1175 | |
| 1176 | void AEquipScreen::addItemToInventoryBattle(sp<AEquipment> item) |
| 1177 | { |
| 1178 | // Expecting to have an agent |
| 1179 | auto currentAgent = selectedAgents.front(); |
| 1180 | |
| 1181 | item->ownerUnit = currentAgent->unit; |
| 1182 | auto bi = state->current_battle->placeItem(*state, item, currentAgent->unit->position); |
| 1183 | if (bi->findSupport()) |
| 1184 | { |
| 1185 | bi->getSupport(); |
| 1186 | } |
| 1187 | else |
| 1188 | { |
| 1189 | bi->falling = true; |
| 1190 | } |
| 1191 | } |
| 1192 | |
| 1193 | void AEquipScreen::addItemToInventoryBase(sp<AEquipment> item) |
| 1194 | { |
nothing calls this directly
no test coverage detected