From 1e7807c659a4ee6c8ac088d04891d89d8d51d86e Mon Sep 17 00:00:00 2001 From: thanna Date: Mon, 16 Sep 2024 19:54:07 +0800 Subject: [PATCH] Fix Mob View not reflecting values from $server->dropRates['CardMVP'], $server->dropRates['CardBoss'] & $server->dropRates['Card'] (#401) --- modules/monster/view.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/monster/view.php b/modules/monster/view.php index 10693fb17..4e0d0151f 100644 --- a/modules/monster/view.php +++ b/modules/monster/view.php @@ -167,6 +167,12 @@ $ratemax = $server->dropRates['EquipMax']; break; + case 'Card': + $rate_adjust = $is_mvp ? $server->dropRates['CardMVP'] : ($is_boss ? $server->dropRates['CardBoss'] : $server->dropRates['Card']); + $ratemin = $server->dropRates['CardMin']; + $ratemax = $server->dropRates['CardMax']; + break; + default: // Common $rate_adjust = $is_mvp ? $server->dropRates['CommonMVP'] : ($is_boss ? $server->dropRates['CommonBoss'] : $server->dropRates['Common']); $ratemin = $server->dropRates['CommonMin'];