| 1414 | int Agent::getHealth() const { return modified_stats.health; } |
| 1415 | |
| 1416 | int Agent::getMaxShield(GameState &state) const |
| 1417 | { |
| 1418 | int maxShield = 0; |
| 1419 | |
| 1420 | for (auto &e : equipment) |
| 1421 | { |
| 1422 | if (e->type->type != AEquipmentType::Type::DisruptorShield || !e->canBeUsed(state)) |
| 1423 | continue; |
| 1424 | maxShield += e->type->max_ammo; |
| 1425 | } |
| 1426 | |
| 1427 | return maxShield; |
| 1428 | } |
| 1429 | |
| 1430 | int Agent::getShield(GameState &state) const |
| 1431 | { |