Home
last modified time | relevance | path

Searched refs:reach_range (Results 1 – 25 of 29) sorted by relevance

12

/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/dat/clua/
H A Dautofight.lua89 return wp and wp.reach_range >= 2 and not wp.is_melded
92 local function reach_range() function
95 return wp.reach_range
206 local range = reach_range()
237 local range = reach_range()
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/
H A Dl-moninf.cc602 lua_pushnumber(ls, mi->reach_range()); in LUAFN()
732 MIREG(reach_range),
H A Dquiver.cc508 const reach_type reach_range = !weapon ? REACH_NONE in trigger() local
514 args.range = reach_range; in trigger()
522 if (attack_cleaves(you, -1) && reach_range < REACH_TWO) in trigger()
525 hitfunc = make_unique<targeter_reach>(&you, reach_range); in trigger()
553 if (x_distance > reach_range || y_distance > reach_range) in trigger()
590 if (reach_range < REACH_THREE && (x_distance > 1 || y_distance > 1)) in trigger()
H A Dfineff.cc732 const reach_type sw_range = sw->reach_range(); in fire()
744 const reach_type atk_range = atkr->reach_range(); in fire()
H A Dmon-info.h372 reach_type reach_range() const;
H A Dactor.h176 virtual reach_type reach_range() const = 0;
H A Dmonster.h414 reach_type reach_range() const override;
H A Dmon-info.cc1551 reach_type monster_info::reach_range() const in reach_range() function in monster_info
1727 return mi.type == MONS_DANCING_WEAPON && mi.reach_range() == REACH_TWO; in _has_polearm()
H A Dfight.cc367 && attacker->reach_range() == REACH_TWO in fight_melee()
H A Dl-item.cc579 IDEF(reach_range) in IDEF() argument
H A Dplayer.h522 reach_type reach_range() const override;
H A Dgod-passive.cc1182 return dist <= you.reach_range(); in _in_melee_range()
H A Dmon-act.cc351 if (ally->is_stationary() || ally->reach_range() > REACH_NONE) in _allied_monster_at()
931 const reach_type range = mons.reach_range(); in _handle_reaching()
H A Dmon-util.cc3886 || mon.reach_range() != REACH_NONE in mons_has_ranged_attack()
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/
H A Dnpcmove.cpp765 recoil_total() ) : weapon.reach_range( *this ) ); in move()
1429 int reach_range = weapon.reach_range( *this ); in method_of_attack() local
1431 if( reach_range > 1 && reach_range >= dist && clear_shot_reach( pos(), tar ) ) { in method_of_attack()
1436 if( reach_range > 1 && reach_range >= std::round( trig_dist( pos(), tar ) ) && in method_of_attack()
H A Davatar_action.cpp591 int reach = you.weapon.reach_range( you ); in autoattack()
H A Dmelee.cpp637 if( cur_weapon->reach_range( *this ) > 1 && !reach_attacking && in melee_attack_abstract()
2458 float reach = weap.reach_range( *this ); in melee_value()
H A Ditem.h667 int reach_range( const Character &guy ) const;
H A Dnpc.cpp1227 confident_range_cache = weapon.reach_range( *this ); in invalidate_range_cache()
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/
H A Dnpcmove.cpp765 recoil_total() ) : weapon.reach_range( *this ) ); in move()
1429 int reach_range = weapon.reach_range( *this ); in method_of_attack() local
1431 if( reach_range > 1 && reach_range >= dist && clear_shot_reach( pos(), tar ) ) { in method_of_attack()
1436 if( reach_range > 1 && reach_range >= std::round( trig_dist( pos(), tar ) ) && in method_of_attack()
H A Davatar_action.cpp591 int reach = you.weapon.reach_range( you ); in autoattack()
H A Dmelee.cpp637 if( cur_weapon->reach_range( *this ) > 1 && !reach_attacking && in melee_attack_abstract()
2458 float reach = weap.reach_range( *this ); in melee_value()
H A Ditem.h667 int reach_range( const Character &guy ) const;
H A Dnpc.cpp1227 confident_range_cache = weapon.reach_range( *this ); in invalidate_range_cache()
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/test/stress/
H A Dqw.rc2436 elseif supdist(e.x,e.y) <= 3 and e.m:reach_range() >= 2 then
2820 or (is_ranged(e.m) or dist == 2 and e.m:reach_range() >= 2)
2934 and not is_ranged(m) and m:reach_range() < 2 then
3085 return wp and wp.reach_range == 2 and not wp.is_melded
4464 if e.m:reach_range() >= 2 and supdist(e.x,e.y) <= 2 then

12