From c43b9385642f10634b297382219af87089f7ec2d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 17 Oct 2024 10:46:45 +0800 Subject: [PATCH] 1 --- webapp/models/LuckySymbol.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/webapp/models/LuckySymbol.php b/webapp/models/LuckySymbol.php index e28924e3..5c4cf808 100644 --- a/webapp/models/LuckySymbol.php +++ b/webapp/models/LuckySymbol.php @@ -61,6 +61,20 @@ class LuckySymbol extends BaseModel { $val = 0; if (self::hasLuckySymbol()) { $itemMeta = myself()->_callMtStatic('Item', 'getLuckySymbolMeta'); + if ($itemMeta) { + $potionMeta = myself()->_callMtStatic('BattlePotion', 'find', $itemMeta['id']); + if ($potionMeta) { + $effectStrs = explode('|', $potionMeta['effect']); + if (count($effectStrs) > 0) { + $effectStrs2 = explode('|', $effectStrs[0]); + if (count($effectStrs2) >= 2) { + if ($effectStrs2[0] == 54) { + $val += $effectStrs2[1]; + } + } + } + } + } } return $val; }