| 1337 | } |
| 1338 | |
| 1339 | sp<AEquipment> Agent::getFirstShield(GameState &state) const |
| 1340 | { |
| 1341 | for (auto &e : equipment) |
| 1342 | { |
| 1343 | if (e->type->type == AEquipmentType::Type::DisruptorShield && e->canBeUsed(state)) |
| 1344 | { |
| 1345 | return e; |
| 1346 | } |
| 1347 | } |
| 1348 | return nullptr; |
| 1349 | } |
| 1350 | |
| 1351 | StateRef<BattleUnitImagePack> Agent::getImagePack(BodyPart bodyPart) const |
| 1352 | { |