CvUnit::reconRange() const
- Defined in
- CvUnit.cpp, line 11571
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_reconRange
Hooks
static bool BeforeCvUnit_reconRange(const CvUnit* self, int& result);static void AfterCvUnit_reconRange(const CvUnit* self, int& result);static int ReplaceCvUnit_reconRange(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_reconRange>(host, &BeforeCvUnit_reconRange);CivRegisterAfter<CivHooks::CvUnit_reconRange>(host, &AfterCvUnit_reconRange);CivRegisterReplace<CivHooks::CvUnit_reconRange>(host, &ReplaceCvUnit_reconRange);
Code
11571int CvUnit::reconRange() const11572{11573 VALIDATE_OBJECT1157411575 int iRtnValue = GC.getRECON_VISIBILITY_RANGE();1157611577 if(MOD_PROMOTIONS_VARIABLE_RECON)11578 {11579 iRtnValue += m_iExtraReconRange;11580 }1158111582 return iRtnValue;11583}
Calls
- CustomMods::isPROMOTIONS_VARIABLE_RECON()
- CvGlobals::getRECON_VISIBILITY_RANGE()
FAutoVariable::operator const int &