refactor: move wave length calculation to util class

This commit is contained in:
jeefo 2023-08-22 09:45:29 +03:00
commit 5fddfed5ce
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 87 additions and 86 deletions

View file

@ -1170,7 +1170,7 @@ int Bot::pickBestWeapon (Array <int> &vec, int moneySave) {
for (const auto &w : vec) {
const auto &weapon = tab[w];
// if wea have enough money for weapon buy it
// if weaзщт have enough money for weapon buy it
if (weapon.price + moneySave < m_moneyAmount + rg.get (50, 200) && rg.chance (chance)) {
return w;
}