Lines Matching refs:Game_Battler

45 static void testRowAdjBattler(const Game_Battler& battler, bool offense, bool bug,  in testRowAdjBattler()
210 …REQUIRE_EQ(res, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sys… in testAgi()
232 static void testStates(Game_Battler& source, Game_Battler& target, int base) { in testStates()
235 …REQUIRE_EQ(100, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sys… in testStates()
241 …REQUIRE_EQ(0, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Syste… in testStates()
249 …REQUIRE_EQ(0, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Syste… in testStates()
269 …REQUIRE_EQ(45, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Syst…
276 static void testHitRateRow(Game_Battler& source, Game_Battler& target, int none, int back, int surr… in testHitRateRow()
277 …REQUIRE_EQ(none, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sy… in testHitRateRow()
278 …REQUIRE_EQ(none, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sy… in testHitRateRow()
279 …REQUIRE_EQ(back, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sy… in testHitRateRow()
280 …REQUIRE_EQ(surround, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg… in testHitRateRow()
281 …REQUIRE_EQ(pincer, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::… in testHitRateRow()
283 …REQUIRE_EQ(none, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sy… in testHitRateRow()
284 …REQUIRE_EQ(none, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Sy… in testHitRateRow()
285 …REQUIRE_EQ(back_no_bug, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::… in testHitRateRow()
286 …REQUIRE_EQ(surround_no_bug, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, l… in testHitRateRow()
287 …REQUIRE_EQ(pincer, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::… in testHitRateRow()
348 static void testHitRateRow2k(Game_Battler& source, Game_Battler& target, int rate) { in testHitRateRow2k()
398 REQUIRE_EQ(source.GetAgi(Game_Battler::WeaponAll), 150);
399 REQUIRE(source.AttackIgnoresEvasion(Game_Battler::WeaponAll));
400 …REQUIRE_EQ(90, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponAll, lcf::rpg::Syst…
402 REQUIRE_EQ(source.GetAgi(Game_Battler::WeaponNone), 100);
403 REQUIRE_FALSE(source.AttackIgnoresEvasion(Game_Battler::WeaponNone));
404 …REQUIRE_EQ(85, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponNone, lcf::rpg::Sys…
406 REQUIRE_EQ(source.GetAgi(Game_Battler::WeaponPrimary), 100);
407 REQUIRE(source.AttackIgnoresEvasion(Game_Battler::WeaponPrimary));
408 …REQUIRE_EQ(90, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponPrimary, lcf::rpg::…
410 REQUIRE_EQ(source.GetAgi(Game_Battler::WeaponSecondary), 150);
411 REQUIRE_FALSE(source.AttackIgnoresEvasion(Game_Battler::WeaponSecondary));
412 …REQUIRE_EQ(88, Algo::CalcNormalAttackToHit(source, target, Game_Battler::WeaponSecondary, lcf::rpg…
433 REQUIRE_EQ(0, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponAll));
442 REQUIRE_EQ(0, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponAll));
452 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponAll));
453 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponNone));
454 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponPrimary));
455 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponSecondary));
462 REQUIRE_EQ(83, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponAll));
463 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponNone));
464 REQUIRE_EQ(53, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponPrimary));
465 REQUIRE_EQ(83, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponSecondary));
476 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponAll));
477 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponNone));
478 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponPrimary));
479 REQUIRE_EQ(3, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponSecondary));
485 REQUIRE_EQ(0, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponAll));
486 REQUIRE_EQ(0, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponNone));
487 REQUIRE_EQ(0, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponPrimary));
488 REQUIRE_EQ(0, Algo::CalcCriticalHitChance(source, target, Game_Battler::WeaponSecondary));
561 static void testSkillStats(int power, int phys, int mag, Game_Battler& source, Game_Battler& target… in testSkillStats()
678 static void testEnemyAttackEnemy(Game_Battler& source, Game_Battler& target, int dmg, int crit, int… in testEnemyAttackEnemy()
685 …REQUIRE_EQ(dmg, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), false, fal… in testEnemyAttackEnemy()
686 …REQUIRE_EQ(dmg, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), false, fal… in testEnemyAttackEnemy()
690 …REQUIRE_EQ(crit, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), true, fal… in testEnemyAttackEnemy()
691 …REQUIRE_EQ(crit, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), true, fal… in testEnemyAttackEnemy()
695 …REQUIRE_EQ(charged, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), false,… in testEnemyAttackEnemy()
696 …REQUIRE_EQ(charged, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), false,… in testEnemyAttackEnemy()
700 …REQUIRE_EQ(crit, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), true, tru… in testEnemyAttackEnemy()
701 …REQUIRE_EQ(crit, Algo::CalcNormalAttackEffect(source, target, Game_Battler::Weapon(wid), true, tru… in testEnemyAttackEnemy()
707 static void testActorAttackRow(Game_Battler& source, Game_Battler& target, int none, int back, int … in testActorAttackRow()
708 …REQUIRE_EQ(none, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, fals… in testActorAttackRow()
709 …REQUIRE_EQ(none, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, fals… in testActorAttackRow()
710 …REQUIRE_EQ(back, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, fals… in testActorAttackRow()
711 …REQUIRE_EQ(surround, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, … in testActorAttackRow()
712 …REQUIRE_EQ(pincers, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, f… in testActorAttackRow()
714 …REQUIRE_EQ(none, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, fals… in testActorAttackRow()
715 …REQUIRE_EQ(none, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, fals… in testActorAttackRow()
716 …REQUIRE_EQ(back_no_bug, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, fals… in testActorAttackRow()
717 …REQUIRE_EQ(surround_no_bug, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, … in testActorAttackRow()
718 …REQUIRE_EQ(pincers, Algo::CalcNormalAttackEffect(source, target, Game_Battler::WeaponAll, false, f… in testActorAttackRow()
742 …REQUIRE_EQ(0, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponAll, false, false… in TestNormalAttack()
749 …REQUIRE_EQ(4999, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponAll, false, fa… in TestNormalAttack()
791 REQUIRE_EQ(140, source->GetAtk(Game_Battler::WeaponAll)); in TestNormalAttack()
792 …REQUIRE_EQ(120, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponAll, false, fal… in TestNormalAttack()
793 …REQUIRE_EQ(47, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponNone, false, fal… in TestNormalAttack()
794 …REQUIRE_EQ(60, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponPrimary, false, … in TestNormalAttack()
795 …REQUIRE_EQ(94, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponSecondary, false… in TestNormalAttack()
797 REQUIRE_EQ(140, source->GetAtk(Game_Battler::WeaponAll)); in TestNormalAttack()
798 …REQUIRE_EQ(96, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponAll, false, fals… in TestNormalAttack()
799 …REQUIRE_EQ(38, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponNone, false, fal… in TestNormalAttack()
800 …REQUIRE_EQ(48, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponPrimary, false, … in TestNormalAttack()
801 …REQUIRE_EQ(76, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponSecondary, false… in TestNormalAttack()
902 …REQUIRE_EQ(46, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponAll, false, fals…
906 …REQUIRE_EQ(31, Algo::CalcNormalAttackEffect(*source, *target, Game_Battler::WeaponAll, false, fals…
911 static void testSkillVar(Game_Battler& source, Game_Battler& target, int var, int dmg_low, int dmg_… in testSkillVar()