Home
last modified time | relevance | path

Searched refs:to_hit (Results 1 – 25 of 41) sorted by relevance

12

/dports/games/easyrpg-player/Player-0.7.0/src/
H A Dalgo.cpp84 to_hit = (to_hit * source.GetHitChanceModifierFromStates()) / 100; in CalcNormalAttackToHit()
89 return to_hit; in CalcNormalAttackToHit()
93 to_hit = CalcToHitAgiAdjustment(to_hit, source, target, weapon); in CalcNormalAttackToHit()
98 to_hit -= 25; in CalcNormalAttackToHit()
103 to_hit -= 25; in CalcNormalAttackToHit()
106 return to_hit; in CalcNormalAttackToHit()
116 return to_hit; in CalcSkillToHit()
127 to_hit = (to_hit * source.GetHitChanceModifierFromStates()) / 100; in CalcSkillToHit()
132 return to_hit; in CalcSkillToHit()
141 to_hit -= 25; in CalcSkillToHit()
[all …]
H A Dgame_battlealgorithm.cpp626 …auto to_hit = Algo::CalcNormalAttackToHit(source, target, weapon, Game_Battle::GetBattleCondition(… in vExecute() local
630 if (!Rand::PercentChance(to_hit)) { in vExecute()
877 auto to_hit = Algo::CalcSkillToHit(*source, *target, skill); in vExecute() local
903 if (skill.affect_hp && Rand::PercentChance(to_hit)) { in vExecute()
948 if (skill.affect_sp && Rand::PercentChance(to_hit)) { in vExecute()
972 if (skill.affect_attack && Rand::PercentChance(to_hit)) { in vExecute()
982 if (skill.affect_defense && Rand::PercentChance(to_hit)) { in vExecute()
992 if (skill.affect_spirit && Rand::PercentChance(to_hit)) { in vExecute()
1002 if (skill.affect_agility && Rand::PercentChance(to_hit)) { in vExecute()
1015 int to_hit_states = (skill.easyrpg_state_hit != -1 ? skill.easyrpg_state_hit : to_hit); in vExecute()
[all …]
/dports/games/moria/umoria/util/weapons/
H A Dcalchits.c162 double to_hit[MWEAPONS], to_dam[MWEAPONS], weapon_dam[MWEAPONS]; in main() local
195 &to_hit[i], &to_dam[i] ) in main()
233 critical = critical_blow( weight[i], to_hit[i], avg_dam, in main()
238 critical = critical_blow( weight[i], to_hit[i], avg_dam, in main()
H A DREADME148 Enter weight, weapon_dam, to_hit, to_dam for weapon #0: 140 3d4 2 4
149 Enter weight, weapon_dam, to_hit, to_dam for weapon #1: 12 1d4 2 4
150 Enter weight, weapon_dam, to_hit, to_dam for weapon #2: 280 3d6 2 4
/dports/japanese/rogue_s/rogue_s/
H A Dhit.c181 register to_hit, damage; local
187 to_hit = get_number(obj->damage) + obj->hit_enchant;
191 sprintf(new_damage, "%dd%d", to_hit, damage);
219 to_hit(obj) in to_hit() function
382 hit_chance = 40 + 3 * to_hit(weapon);
/dports/games/nlarn/nlarn-NLarn-0.7.6/src/
H A Dweapons.c87 const int to_hit = p->level in weapon_calc_to_hit() local
99 if (to_hit < 1) in weapon_calc_to_hit()
102 if (to_hit >= 20) in weapon_calc_to_hit()
106 return (5 * to_hit); in weapon_calc_to_hit()
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/
H A Dattack.h40 int to_hit; variable
144 int test_hit(int to_hit, int ev, bool randomise_ev);
H A Dmelee-attack.cc287 to_hit = AUTOMATIC_HIT; in handle_phase_attempted()
293 to_hit = AUTOMATIC_HIT; in handle_phase_attempted()
727 ev_margin = test_hit(to_hit, ev, !attacker->is_player()); in attack()
1163 && to_hit >= evasion in player_aux_test_hit()
1172 if (to_hit >= evasion || auto_hit) in player_aux_test_hit()
1209 to_hit = random2(calc_your_to_hit_unarmed()); in player_aux_unarmed()
1358 if (to_hit < ev && to_hit + combined_penalty >= ev) in player_why_missed()
1362 && to_hit + attacker_armour_tohit_penalty >= ev); in player_why_missed()
1365 && to_hit + attacker_shield_tohit_penalty >= ev); in player_why_missed()
H A Dattack.cc55 perceived_attack(false), obvious_effect(false), to_hit(0), in attack()
405 to_hit = calc_to_hit(true); in init_attack()
1280 to_hit, ev, (margin >= 0) ? "hit" : "miss", margin); in test_hit()
1318 const int con_block = random2(attacker->shield_bypass_ability(to_hit) in attack_shield_blocked()
H A Dmon-project.cc274 const int to_hit = 15 + (mons_is_projectile(mon.type) ? in _iood_shielded() local
276 const int con_block = random2(to_hit + victim.shield_block_penalty()); in _iood_shielded()
/dports/games/pcgen/pcgen/system/gameModes/5e/
H A Dbase.xml.ftl580 <to_hit>
584 </to_hit>
634 <to_hit>${pcstring('WEAPON.${weap}.BASEHIT')}</to_hit>
639 <to_hit>${pcstring('WEAPON.${weap}.OHHIT')}</to_hit>
644 <to_hit>${pcstring('WEAPON.${weap}.THHIT')}</to_hit>
649 <to_hit>${pcstring('WEAPON.${weap}.TWPHITH')}</to_hit>
654 <to_hit>${pcstring('WEAPON.${weap}.TWPHITL')}</to_hit>
659 <to_hit>${pcstring('WEAPON.${weap}.TWOHIT')}</to_hit>
920 <to_hit>${pcstring('WEAPON.${weap}.TOTALHIT')}</to_hit>
1585 <to_hit>
[all …]
/dports/games/pcgen/pcgen/system/gameModes/Sagaborn/
H A Dbase.xml.ftl612 <to_hit>
616 </to_hit>
666 <to_hit>${pcstring('WEAPON.${weap}.BASEHIT')}</to_hit>
671 <to_hit>${pcstring('WEAPON.${weap}.OHHIT')}</to_hit>
676 <to_hit>${pcstring('WEAPON.${weap}.THHIT')}</to_hit>
681 <to_hit>${pcstring('WEAPON.${weap}.TWPHITH')}</to_hit>
686 <to_hit>${pcstring('WEAPON.${weap}.TWPHITL')}</to_hit>
691 <to_hit>${pcstring('WEAPON.${weap}.TWOHIT')}</to_hit>
952 <to_hit>${pcstring('WEAPON.${weap}.TOTALHIT')}</to_hit>
1629 <to_hit>
[all …]
/dports/games/pcgen/pcgen/system/gameModes/Fantasy_Craft/
H A Dbase.xml.ftl619 <to_hit>
623 </to_hit>
673 <to_hit>${pcstring('WEAPON.${weap}.BASEHIT')}</to_hit>
678 <to_hit>${pcstring('WEAPON.${weap}.OHHIT')}</to_hit>
683 <to_hit>${pcstring('WEAPON.${weap}.THHIT')}</to_hit>
688 <to_hit>${pcstring('WEAPON.${weap}.TWPHITH')}</to_hit>
693 <to_hit>${pcstring('WEAPON.${weap}.TWPHITL')}</to_hit>
698 <to_hit>${pcstring('WEAPON.${weap}.TWOHIT')}</to_hit>
922 <to_hit>${pcstring('WEAPON.${weap}.TOTALHIT')}</to_hit>
1816 <to_hit>
[all …]
/dports/games/freedroidrpg/freedroidrpg-0.16.1/src/
H A Dstruct.h397 short to_hit; // chance that this droid hits an unarmoured target member
569 float to_hit; // percentage chance, that Tux will hit a random lv 1 bot member
683 short int to_hit; //chance to hit, percent member
H A Dcharacter.c111 Me.to_hit += BonusItem->bonus_to_attack; in AddInfluencerItemSecondaryBonus()
225 Me.to_hit = 100 - 40 * exp(- 0.03 * Me.dexterity); in update_secondary_stats_from_primary_stats()
527 sprintf(CharText, "%d%%", (int)Me.to_hit); in ShowCharacterScreen()
H A Dbullet.c163 if (MyRandom(100) < CurMelS->to_hit) { in DoMeleeDamage()
174 if (MyRandom(100) < CurMelS->to_hit) { in DoMeleeDamage()
/dports/games/pcgen/pcgen/outputsheets/d20/fantasy/htmlxml/
H A Dcsheet_fantasy_generic_export.xml.ftl601 <to_hit>
605 </to_hit>
655 <to_hit>${pcstring('WEAPON.${weap}.BASEHIT')}</to_hit>
660 <to_hit>${pcstring('WEAPON.${weap}.OHHIT')}</to_hit>
665 <to_hit>${pcstring('WEAPON.${weap}.THHIT')}</to_hit>
670 <to_hit>${pcstring('WEAPON.${weap}.TWPHITH')}</to_hit>
675 <to_hit>${pcstring('WEAPON.${weap}.TWPHITL')}</to_hit>
680 <to_hit>${pcstring('WEAPON.${weap}.TWOHIT')}</to_hit>
920 <to_hit>${pcstring('WEAPON.${weap}.TOTALHIT')}</to_hit>
2668 <to_hit>
[all …]
/dports/games/pcgen/pcgen/outputsheets/
H A Dbase.xml.ftl640 <to_hit>
644 </to_hit>
696 <to_hit>${pcstring('WEAPON.${weap}.BASEHIT')}</to_hit>
701 <to_hit>${pcstring('WEAPON.${weap}.OHHIT')}</to_hit>
706 <to_hit>${pcstring('WEAPON.${weap}.THHIT')}</to_hit>
711 <to_hit>${pcstring('WEAPON.${weap}.TWPHITH')}</to_hit>
716 <to_hit>${pcstring('WEAPON.${weap}.TWPHITL')}</to_hit>
721 <to_hit>${pcstring('WEAPON.${weap}.TWOHIT')}</to_hit>
782 <to_hit>${fab}</to_hit>
974 <to_hit>${pcstring('WEAPON.${weap}.TOTALHIT')}</to_hit>
[all …]
/dports/games/devilutionX/devilutionX-1.2.1/Source/
H A Dinv.h59 …int Id, int dur, int mdur, int ch, int mch, int ivalue, DWORD ibuff, int to_hit, int max_dam, int …
/dports/games/zangband/zangband/lib/script/tk/
H A Dcharinfo-canvas.tcl748 set hit [format "%+d" [angband player to_hit]]
753 set hit [angband player to_hit]
770 set hit [angband player to_hit]
/dports/games/zangband/zangband/src/
H A Dl-field.pkg97 extern bool enchant_item(s32b cost, bool to_hit, bool to_dam, bool to_ac, bool weap);
/dports/games/avanor/avanor-0.5.8/creature/
H A Dcreature2.cpp810 int tht = mfd->to_hit > 0 ? mfd->to_hit : 1; in MissileFlight()
H A Dcreature.h151 int to_hit; //hit bonus of missile; member
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tests/
H A Diteminfo_test.cpp526 std::vector<iteminfo_parts> to_hit = { iteminfo_parts::BASE_TOHIT }; variable
528 CHECK( item_info_str( rock, to_hit ) ==
532 CHECK( item_info_str( halligan, to_hit ) ==
536 CHECK( item_info_str( mr_pointy, to_hit ) ==
540 CHECK( item_info_str( arrow, to_hit ) ==
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tests/
H A Diteminfo_test.cpp526 std::vector<iteminfo_parts> to_hit = { iteminfo_parts::BASE_TOHIT }; variable
528 CHECK( item_info_str( rock, to_hit ) ==
532 CHECK( item_info_str( halligan, to_hit ) ==
536 CHECK( item_info_str( mr_pointy, to_hit ) ==
540 CHECK( item_info_str( arrow, to_hit ) ==

12