Skip to content

Commit

Permalink
Fix bug in effective health kill rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
GooberRF authored and rafalh committed Aug 31, 2024
1 parent e991954 commit aeb2621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_patch/multi/kill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void multi_apply_kill_reward(rf::Player* player)
}
if (conf.kill_reward_effective_health > 0.0f) {
float life_to_add = std::min(conf.kill_reward_effective_health, max_life - ep->life);
float armor_to_add = std::min((conf.kill_reward_effective_health - life_to_add) / 2, max_armor - ep->life);
float armor_to_add = std::min((conf.kill_reward_effective_health - life_to_add) / 2, max_armor - ep->armor);
ep->life += life_to_add;
ep->armor += armor_to_add;
}
Expand Down

0 comments on commit aeb2621

Please sign in to comment.