| 1428 | } |
| 1429 | |
| 1430 | int Agent::getShield(GameState &state) const |
| 1431 | { |
| 1432 | int curShield = 0; |
| 1433 | |
| 1434 | for (auto &e : equipment) |
| 1435 | { |
| 1436 | if (e->type->type != AEquipmentType::Type::DisruptorShield || !e->canBeUsed(state)) |
| 1437 | continue; |
| 1438 | curShield += e->ammo; |
| 1439 | } |
| 1440 | |
| 1441 | return curShield; |
| 1442 | } |
| 1443 | |
| 1444 | void Agent::destroy() |
| 1445 | { |