| 115 | // load / save |
| 116 | |
| 117 | void WarheadTypeExt::ExtData::LoadFromINIFile(CCINIClass* const pINI) |
| 118 | { |
| 119 | auto pThis = this->OwnerObject(); |
| 120 | const char* pSection = pThis->ID; |
| 121 | INI_EX exINI(pINI); |
| 122 | |
| 123 | // Miscs |
| 124 | this->SpySat.Read(exINI, pSection, "SpySat"); |
| 125 | this->BigGap.Read(exINI, pSection, "BigGap"); |
| 126 | this->TransactMoney.Read(exINI, pSection, "TransactMoney"); |
| 127 | this->TransactMoney_Display.Read(exINI, pSection, "TransactMoney.Display"); |
| 128 | this->TransactMoney_Display_Houses.Read(exINI, pSection, "TransactMoney.Display.Houses"); |
| 129 | this->TransactMoney_Display_AtFirer.Read(exINI, pSection, "TransactMoney.Display.AtFirer"); |
| 130 | this->TransactMoney_Display_Offset.Read(exINI, pSection, "TransactMoney.Display.Offset"); |
| 131 | this->SplashList.Read(exINI, pSection, "SplashList"); |
| 132 | this->SplashList_PickRandom.Read(exINI, pSection, "SplashList.PickRandom"); |
| 133 | this->SplashList_CreateAll.Read(exINI, pSection, "SplashList.CreateAll"); |
| 134 | this->SplashList_CreationInterval.Read(exINI, pSection, "SplashList.CreationInterval"); |
| 135 | this->SplashList_ScatterMin.Read(exINI, pSection, "SplashList.ScatterMin"); |
| 136 | this->SplashList_ScatterMax.Read(exINI, pSection, "SplashList.ScatterMax"); |
| 137 | this->AnimList_PickRandom.Read(exINI, pSection, "AnimList.PickRandom"); |
| 138 | this->AnimList_CreateAll.Read(exINI, pSection, "AnimList.CreateAll"); |
| 139 | this->AnimList_CreationInterval.Read(exINI, pSection, "AnimList.CreationInterval"); |
| 140 | this->AnimList_ScatterMin.Read(exINI, pSection, "AnimList.ScatterMin"); |
| 141 | this->AnimList_ScatterMax.Read(exINI, pSection, "AnimList.ScatterMax"); |
| 142 | this->CreateAnimsOnZeroDamage.Read(exINI, pSection, "CreateAnimsOnZeroDamage"); |
| 143 | this->Conventional_IgnoreUnits.Read(exINI, pSection, "Conventional.IgnoreUnits"); |
| 144 | this->RemoveDisguise.Read(exINI, pSection, "RemoveDisguise"); |
| 145 | this->RemoveMindControl.Read(exINI, pSection, "RemoveMindControl"); |
| 146 | this->RemoveParasite.Read(exINI, pSection, "RemoveParasite"); |
| 147 | this->DecloakDamagedTargets.Read(exINI, pSection, "DecloakDamagedTargets"); |
| 148 | this->ShakeIsLocal.Read(exINI, pSection, "ShakeIsLocal"); |
| 149 | this->ApplyModifiersOnNegativeDamage.Read(exINI, pSection, "ApplyModifiersOnNegativeDamage"); |
| 150 | this->PenetratesIronCurtain.Read(exINI, pSection, "PenetratesIronCurtain"); |
| 151 | this->PenetratesForceShield.Read(exINI, pSection, "PenetratesForceShield"); |
| 152 | this->Rocker_AmplitudeMultiplier.Read(exINI, pSection, "Rocker.AmplitudeMultiplier"); |
| 153 | this->Rocker_AmplitudeOverride.Read(exINI, pSection, "Rocker.AmplitudeOverride"); |
| 154 | |
| 155 | // Crits |
| 156 | this->Crit_Chance.Read(exINI, pSection, "Crit.Chance"); |
| 157 | this->Crit_ApplyChancePerTarget.Read(exINI, pSection, "Crit.ApplyChancePerTarget"); |
| 158 | this->Crit_ExtraDamage.Read(exINI, pSection, "Crit.ExtraDamage"); |
| 159 | this->Crit_Warhead.Read<true>(exINI, pSection, "Crit.Warhead"); |
| 160 | this->Crit_Warhead_FullDetonation.Read(exINI, pSection, "Crit.Warhead.FullDetonation"); |
| 161 | this->Crit_Affects.Read(exINI, pSection, "Crit.Affects"); |
| 162 | this->Crit_AffectsHouses.Read(exINI, pSection, "Crit.AffectsHouses"); |
| 163 | this->Crit_AnimList.Read(exINI, pSection, "Crit.AnimList"); |
| 164 | this->Crit_AnimList_PickRandom.Read(exINI, pSection, "Crit.AnimList.PickRandom"); |
| 165 | this->Crit_AnimList_CreateAll.Read(exINI, pSection, "Crit.AnimList.CreateAll"); |
| 166 | this->Crit_ActiveChanceAnims.Read(exINI, pSection, "Crit.ActiveChanceAnims"); |
| 167 | this->Crit_AnimOnAffectedTargets.Read(exINI, pSection, "Crit.AnimOnAffectedTargets"); |
| 168 | this->Crit_AffectBelowPercent.Read(exINI, pSection, "Crit.AffectBelowPercent"); |
| 169 | this->Crit_SuppressWhenIntercepted.Read(exINI, pSection, "Crit.SuppressWhenIntercepted"); |
| 170 | |
| 171 | this->MindControl_Anim.Read(exINI, pSection, "MindControl.Anim"); |
| 172 | |
| 173 | // Shields |
| 174 | this->Shield_Penetrate.Read(exINI, pSection, "Shield.Penetrate"); |
nothing calls this directly
no test coverage detected