ratio stable kill

This commit is contained in:
方而静 2024-01-18 21:38:30 +08:00
parent 2e9791b054
commit c1d79ac699
Signed by: szTom
GPG Key ID: 072D999D60C6473C

View File

@ -306,7 +306,7 @@ int main() {
std::vector<Species> Hnxt, Lnxt; std::vector<Species> Hnxt, Lnxt;
for (auto &s : biosphere) { for (auto &s : biosphere) {
if (s.stable_age <= 15 || s.best_w == best_w) { if (s.stable_age <= 15 * s.best_w / best_w || s.best_w == best_w) {
if (s.best_w < best_w || s.age <= 35) if (s.best_w < best_w || s.age <= 35)
Hnxt.push_back(std::move(s)); Hnxt.push_back(std::move(s));
else else