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

Function MakeEnemyReward

tests/game_enemy.cpp:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static decltype(auto) MakeEnemyReward(int exp, int gold, int drop_id, int drop_prob) {
155 return MakeEnemy(1, 1, 1, 1, 1, 1, 1, [&](auto& e) {
156 e.exp = exp;
157 e.gold = gold;
158 e.drop_id = drop_id;
159 e.drop_prob = drop_prob;
160 });
161}
162
163TEST_CASE("RewardExp") {
164 const MockActor m;

Callers 1

game_enemy.cppFile · 0.85

Calls 1

MakeEnemyFunction · 0.70

Tested by

no test coverage detected