1
This commit is contained in:
parent
fd8f358357
commit
c43b938564
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user