Searched refs:totalStrength (Results 1 – 3 of 3) sorted by relevance
2200 double totalStrength = 0; in GetGarrisonStrength() local2204 totalStrength += heroes.Guest()->GetArmy().GetStrength(); in GetGarrisonStrength()2207 totalStrength += heroes.Guard()->GetArmy().GetStrength(); in GetGarrisonStrength()2210 totalStrength += army.GetStrength(); in GetGarrisonStrength()2214 if ( isCastle() && totalStrength > 1 ) { in GetGarrisonStrength()2218 totalStrength += towerStr; in GetGarrisonStrength()2220 totalStrength += towerStr / 2; in GetGarrisonStrength()2223 totalStrength += towerStr / 2; in GetGarrisonStrength()2227 totalStrength *= isBuild( BUILD_MOAT ) ? 1.2 : 1.15; in GetGarrisonStrength()2231 totalStrength *= isBuild( BUILD_MOAT ) ? 1.45 : 1.25; in GetGarrisonStrength()[all …]
1813 float totalSize, totalStrength; local1904 totalStrength = (float)(0.0);1912 totalStrength += link->clientPtr->spring[axis][0];1916 totalStrength += springs.tail->clientPtr->spring[axis][1];1935 if (totalStrength <= 0.0) {1936 totalStrength = (float)(1.0);1967 gap0 = (int)(gap * spring0 / totalStrength) + adjust;1968 gap1 = (int)(gap * spring1 / totalStrength);
1824 float totalSize, totalStrength; local1915 totalStrength = (float)(0.0);1923 totalStrength += link->clientPtr->spring[axis][0];1927 totalStrength += springs.tail->clientPtr->spring[axis][1];1946 if (totalStrength <= 0.0) {1947 totalStrength = (float)(1.0);1978 gap0 = (int)(gap * spring0 / totalStrength) + adjust;1979 gap1 = (int)(gap * spring1 / totalStrength);