Searched refs:targetResistance (Results 1 – 3 of 3) sorted by relevance
138 int targetResistance = capture_expected_resistance(townRecno, &captureUnitRecno); in think_capture_independent() local140 int minResistance = MIN( averageResistance, targetResistance ); in think_capture_independent()240 int targetResistance; in capture_expected_resistance() local242 *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() local302 unitRecno = find_best_capturer(townRecno, raceId, targetResistance); in capture_build_camp()364 int targetResistance; in find_best_capturer() local431 …targetResistance = 100-targetTown->camp_influence(unitPtr->sprite_recno); // influence of this un… in find_best_capturer()435 if( targetResistance < bestTargetResistance ) in find_best_capturer()[all …]
1040 int curResistance, targetResistance; in think_capture_use_spy2() local1045 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()
1548 float targetResistance; in update_resistance() local1569 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()