give enemies hp

This commit is contained in:
2025-12-02 19:53:44 -05:00
parent 8e89f1bf70
commit eec22cd791
3 changed files with 21 additions and 18 deletions

View File

@@ -13,5 +13,5 @@ float Rng::generate(const uint32_t max) {
}
float Rng::generate(const int min, const int max) {
return generate() * (static_cast<float>(max) - static_cast<float>(min)) + static_cast<float>(min);
return generate(max - min) + static_cast<float>(min);
}