Searched refs:hit_chance (Results 1 – 8 of 8) sorted by relevance
/dports/japanese/rogue_s/rogue_s/ |
H A D | hit.c | 29 short damage, hit_chance; local 38 hit_chance = 100; 40 hit_chance = monster->m_hit_chance; 44 hit_chance /= 2; 55 if (!rand_percent(hit_chance)) { 105 short damage, hit_chance; local 114 hit_chance *= 2; 116 if (!rand_percent(hit_chance)) { 380 short hit_chance; local 382 hit_chance = 40 + 3 * to_hit(weapon); [all …]
|
H A D | throw.c | 78 short damage, hit_chance; local 81 hit_chance = get_hit_chance(weapon); 87 hit_chance += (hit_chance / 3); 93 hit_chance += (hit_chance / 3); 100 if (!rand_percent(hit_chance)) {
|
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/ |
H A D | fight.cc | 97 double hit_chance = ((double)hits) / to_land; in to_hit_pct() local 99 …hit_chance = hit_chance * (1 - MIN_HIT_MISS_PERCENTAGE / 200.0) + (1 - hit_chance) * MIN_HIT_MISS_… in to_hit_pct() 101 return (int)(hit_chance*100); in to_hit_pct() 151 double hit_chance = ((double)hits) / (to_land * ev * ev); in mon_to_hit_pct() local 154 hit_chance = hit_chance * (1 - MIN_HIT_MISS_PERCENTAGE / 200.0) in mon_to_hit_pct() 155 + (1 - hit_chance) * MIN_HIT_MISS_PERCENTAGE / 200.0; in mon_to_hit_pct() 157 return (int)(hit_chance*100); in mon_to_hit_pct()
|
H A D | describe.cc | 4095 const int hit_chance = beat_ev_chance * beat_sh_chance / 100; in _describe_mons_to_hit() local 4096 result << " (about " << hit_chance << "% to hit you)"; in _describe_mons_to_hit()
|
/dports/games/wesnoth/wesnoth-1.14.17/utils/ |
H A D | wesnoth-attack-sim.c | 29 unsigned hit_chance; member 60 if (!hits(attacker->hit_chance)) in strike() 187 u->hit_chance = atoi((*argv)[4]); in parse_unit() 245 label, u->damage, u->num_attacks, u->hp, u->hit_chance); in draw_results() 275 label, u->damage, u->num_attacks, u->hp, u->hit_chance); in compare_results() 364 u[i].hit_chance = (i % 6)*10 + 30; // range: 30%-80% in check()
|
/dports/games/wesnoth/wesnoth-1.14.17/src/ |
H A D | attack_prediction.cpp | 1237 void receive_blow_b(double hit_chance); 1239 void receive_blow_a(double hit_chance); 1917 opp_not_hit *= 1.0 - hit_chance; in no_death_fight() 1923 double move = opp_hp_dist[j] * hit_chance; in no_death_fight() 1927 opp_not_hit *= 1.0 - hit_chance; in no_death_fight() 1999 opp_hp_dist[opp_stats.hp] = 1.0 - hit_chance; in one_strike_fight() 2001 opp_not_hit *= 1.0 - hit_chance; in one_strike_fight() 2008 double move = opp_hp_dist[i] * hit_chance; in one_strike_fight() 2013 opp_not_hit *= 1.0 - hit_chance; in one_strike_fight() 2120 pm->receive_blow_b(hit_chance); in complex_fight() [all …]
|
/dports/games/wesnoth/wesnoth-1.14.17/data/ai/micro_ais/cas/ |
H A D | ca_assassin_move.lua | 98 local hit_chance = (wesnoth.unit_defense(unit, wesnoth.get_terrain(x, y))) / 100. 100 local rating = hit_chance * enemy_damage
|
/dports/games/wesnoth/wesnoth-1.14.17/src/actions/ |
H A D | attack.hpp | 122 int hit_chance, in battle_context_unit_stats() 149 , chance_to_hit(hit_chance) in battle_context_unit_stats()
|