whodrops should respect drop_rate0item (#5984)

Fixes #5983
Thanks to heyChille#1304 on Discord
This commit is contained in:
Vincent Stumpf 2021-06-01 23:01:13 -07:00 committed by GitHub
parent b7e47d147a
commit ebdce4a530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8006,8 +8006,11 @@ ACMD_FUNC(whodrops)
if(!mob) continue;
#ifdef RENEWAL_DROP
if( battle_config.atcommand_mobinfo_type )
if( battle_config.atcommand_mobinfo_type ) {
dropchance = dropchance * pc_level_penalty_mod( sd, PENALTY_DROP, mob ) / 100;
if (dropchance <= 0 && !battle_config.drop_rate0item)
dropchance = 1;
}
#endif
if (pc_isvip(sd)) // Display item rate increase for VIP
dropchance += (dropchance * battle_config.vip_drop_increase) / 100;