1
This commit is contained in:
parent
31e73b5fa8
commit
fd8f358357
@ -59,6 +59,9 @@ class LuckySymbol extends BaseModel {
|
|||||||
public static function getLuckyInc()
|
public static function getLuckyInc()
|
||||||
{
|
{
|
||||||
$val = 0;
|
$val = 0;
|
||||||
|
if (self::hasLuckySymbol()) {
|
||||||
|
$itemMeta = myself()->_callMtStatic('Item', 'getLuckySymbolMeta');
|
||||||
|
}
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,6 +139,8 @@ class Item {
|
|||||||
const LUCKY_SYMBOL_SUBTYPE = 8;
|
const LUCKY_SYMBOL_SUBTYPE = 8;
|
||||||
const BATTLE_POTION_SUBTYPE = 9;
|
const BATTLE_POTION_SUBTYPE = 9;
|
||||||
|
|
||||||
|
const LUCKY_SYMBOL_ITEM_ID = 900007;
|
||||||
|
|
||||||
public static function get($id)
|
public static function get($id)
|
||||||
{
|
{
|
||||||
return getXVal(self::getMetaList(), $id, null);
|
return getXVal(self::getMetaList(), $id, null);
|
||||||
@ -358,6 +360,11 @@ class Item {
|
|||||||
$guns = array_unique($guns);
|
$guns = array_unique($guns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getLuckySymbolMeta()
|
||||||
|
{
|
||||||
|
return self::get(self::LUCKY_SYMBOL_ITEM_ID);
|
||||||
|
}
|
||||||
|
|
||||||
protected static function getMetaList()
|
protected static function getMetaList()
|
||||||
{
|
{
|
||||||
if (!self::$metaList) {
|
if (!self::$metaList) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user