This commit is contained in:
aozhiwei 2023-12-13 15:06:58 +08:00
parent 0baf975d79
commit 66867a5b37

View File

@ -1490,6 +1490,12 @@ void Creature::Shot(glm::vec3& target_dir, bool& shot_ok, float fly_distance, in
} else { } else {
A8_ABORT(); A8_ABORT();
} }
if (GetCurrWeapon()->meta->IsMultistageGun()) {
++power_idx;
if (power_idx > GetCurrWeapon()->meta->_power_charge.size()) {
power_idx = 0;
}
}
} else { } else {
A8_ABORT(); A8_ABORT();
} }