Assuming SuperWeapon & SuperWeapon2 are used (for the moment)
| 8 | |
| 9 | // Assuming SuperWeapon & SuperWeapon2 are used (for the moment) |
| 10 | int BuildingTypeExt::ExtData::GetSuperWeaponCount() const |
| 11 | { |
| 12 | // The user should only use SuperWeapon and SuperWeapon2 if the attached sw count isn't bigger than 2 |
| 13 | return 2 + this->SuperWeapons.size(); |
| 14 | } |
| 15 | |
| 16 | int BuildingTypeExt::ExtData::GetSuperWeaponIndex(const int index, HouseClass* pHouse) const |
| 17 | { |