This commit is contained in:
aozhiwei 2024-10-17 10:46:45 +08:00
parent fd8f358357
commit c43b938564

View File

@ -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;
}