This commit is contained in:
aozhiwei 2024-10-17 10:38:07 +08:00
parent 31e73b5fa8
commit fd8f358357
2 changed files with 10 additions and 0 deletions

View File

@ -59,6 +59,9 @@ class LuckySymbol extends BaseModel {
public static function getLuckyInc()
{
$val = 0;
if (self::hasLuckySymbol()) {
$itemMeta = myself()->_callMtStatic('Item', 'getLuckySymbolMeta');
}
return $val;
}

View File

@ -139,6 +139,8 @@ class Item {
const LUCKY_SYMBOL_SUBTYPE = 8;
const BATTLE_POTION_SUBTYPE = 9;
const LUCKY_SYMBOL_ITEM_ID = 900007;
public static function get($id)
{
return getXVal(self::getMetaList(), $id, null);
@ -358,6 +360,11 @@ class Item {
$guns = array_unique($guns);
}
public static function getLuckySymbolMeta()
{
return self::get(self::LUCKY_SYMBOL_ITEM_ID);
}
protected static function getMetaList()
{
if (!self::$metaList) {