This commit is contained in:
aozhiwei 2024-08-23 17:16:13 +08:00
parent 0be164988a
commit c3aff41128

View File

@ -71,11 +71,11 @@ void BoxDrop::OnHumanDeadDrop(Human* hum)
for (int i = 0; i < hum->box_num; ++i) {
int rnd = a8::RandEx(0, 100);
if (hum->stats->abandon_battle) {
if (rnd <= mt::Param::s().battle_event_end_loss_rate_quit * 100) {
if (rnd <= (mt::Param::s().battle_event_end_loss_rate_quit * 100)) {
++drop_num;
}
} else {
if (rnd <= mt::Param::s().battle_event_end_loss_rate_dead * 100) {
if (rnd <= (mt::Param::s().battle_event_end_loss_rate_dead * 100)) {
++drop_num;
}
}