From fd8f358357eb54bbdbcbf12bd4fdd72576611bf6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 17 Oct 2024 10:38:07 +0800 Subject: [PATCH] 1 --- webapp/models/LuckySymbol.php | 3 +++ webapp/mt/Item.php | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/webapp/models/LuckySymbol.php b/webapp/models/LuckySymbol.php index bd08cb7f..e28924e3 100644 --- a/webapp/models/LuckySymbol.php +++ b/webapp/models/LuckySymbol.php @@ -59,6 +59,9 @@ class LuckySymbol extends BaseModel { public static function getLuckyInc() { $val = 0; + if (self::hasLuckySymbol()) { + $itemMeta = myself()->_callMtStatic('Item', 'getLuckySymbolMeta'); + } return $val; } diff --git a/webapp/mt/Item.php b/webapp/mt/Item.php index 4548cf6a..99dd73f3 100644 --- a/webapp/mt/Item.php +++ b/webapp/mt/Item.php @@ -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) {