| 3338 | } |
| 3339 | |
| 3340 | int Vehicle::getShieldRechargeRate() const |
| 3341 | { |
| 3342 | int shieldRecharge = 0; |
| 3343 | |
| 3344 | for (auto &e : this->equipment) |
| 3345 | { |
| 3346 | if (e->type->type != EquipmentSlotType::VehicleGeneral) |
| 3347 | continue; |
| 3348 | shieldRecharge += e->type->shielding > 0 ? 1 : 0; |
| 3349 | } |
| 3350 | |
| 3351 | return shieldRecharge; |
| 3352 | } |
| 3353 | |
| 3354 | bool Vehicle::isCloaked() const |
| 3355 | { |