MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getShieldRechargeRate

Method getShieldRechargeRate

game/state/city/vehicle.cpp:3340–3352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3338}
3339
3340int 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
3354bool Vehicle::isCloaked() const
3355{

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected