| 146 | } |
| 147 | |
| 148 | void TechnoExt::ExtData::InitializeAttachEffects() |
| 149 | { |
| 150 | if (auto pTypeExt = this->TypeExtData) |
| 151 | { |
| 152 | if (pTypeExt->AttachEffects.AttachTypes.size() < 1) |
| 153 | return; |
| 154 | |
| 155 | auto const pThis = this->OwnerObject(); |
| 156 | AttachEffectClass::Attach(pThis, pThis->Owner, pThis, pThis, pTypeExt->AttachEffects); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | // Gets tint colors for invulnerability, airstrike laser target and berserk, depending on parameters. |
| 161 | int TechnoExt::GetTintColor(TechnoClass* pThis, bool invulnerability, bool airstrike, bool berserk) |