MCPcopy Create free account
hub / github.com/EasyRPG/Player / MakeEnemyCrit

Function MakeEnemyCrit

tests/game_enemy.cpp:116–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static decltype(auto) MakeEnemyCrit(bool crit, int rate) {
117 return MakeEnemy(1, 1, 1, 1, 1, 1, 1, [&](auto& e) { e.critical_hit = crit; e.critical_hit_chance = rate; });
118}
119
120TEST_CASE("CritRate") {
121 const MockActor m;

Callers 1

game_enemy.cppFile · 0.85

Calls 1

MakeEnemyFunction · 0.70

Tested by

no test coverage detected