Home
last modified time | relevance | path

Searched refs:targetResistance (Results 1 – 3 of 3) sorted by relevance

/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOAI_CAPT.cpp138 int targetResistance = capture_expected_resistance(townRecno, &captureUnitRecno); in think_capture_independent() local
140 int minResistance = MIN( averageResistance, targetResistance ); in think_capture_independent()
240 int targetResistance; in capture_expected_resistance() local
242 *captureUnitRecno = find_best_capturer(townRecno, majorityRace, /*out*/ targetResistance); in capture_expected_resistance()
247 ( targetResistance * townPtr->race_pop_array[majorityRace-1] + in capture_expected_resistance()
299 int targetResistance; in capture_build_camp() local
302 unitRecno = find_best_capturer(townRecno, raceId, targetResistance); in capture_build_camp()
364 int targetResistance; in find_best_capturer() local
431targetResistance = 100-targetTown->camp_influence(unitPtr->sprite_recno); // influence of this un… in find_best_capturer()
435 if( targetResistance < bestTargetResistance ) in find_best_capturer()
[all …]
H A DOF_CAMP2.cpp1040 int curResistance, targetResistance; in think_capture_use_spy2() local
1045 targetResistance = targetTown->race_target_loyalty_array[raceId-1]; in think_capture_use_spy2()
1050 targetResistance = targetTown->race_target_resistance_array[raceId-1][nation_recno-1]; in think_capture_use_spy2()
1053 int minResistance = MIN(curResistance, targetResistance); in think_capture_use_spy2()
H A DOTOWN.cpp1548 float targetResistance; in update_resistance() local
1569 targetResistance = (float) race_target_resistance_array[i][j]; in update_resistance()
1571 if(race_resistance_array[i][j] > targetResistance) // only decrease, no increase for resistance in update_resistance()
1573 float decValue = (race_resistance_array[i][j]-targetResistance) / 30; in update_resistance()
1577 …if(race_resistance_array[i][j] < targetResistance) // avoid resistance oscillate between taregtLoy… in update_resistance()
1578 race_resistance_array[i][j] = (float)targetResistance; in update_resistance()