|
@@ -6,15 +6,15 @@ namespace loyalsoft;
|
|
// 由CodeGenerator创建。
|
|
// 由CodeGenerator创建。
|
|
// Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
|
|
// Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
|
|
// author: gwang
|
|
// author: gwang
|
|
-// 日期: 2020-11-24 15:46:47
|
|
|
|
|
|
+// 日期: 2020-12-14 09:58:03
|
|
////////////////////
|
|
////////////////////
|
|
|
|
|
|
/**
|
|
/**
|
|
* 常量配置数据
|
|
* 常量配置数据
|
|
*/
|
|
*/
|
|
class GameConfig {
|
|
class GameConfig {
|
|
-
|
|
|
|
// <editor-fold defaultstate="collapsed" desc=" 基础代码 ">
|
|
// <editor-fold defaultstate="collapsed" desc=" 基础代码 ">
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 是否启用codegen
|
|
* 是否启用codegen
|
|
*/
|
|
*/
|
|
@@ -82,6 +82,7 @@ class GameConfig {
|
|
}
|
|
}
|
|
|
|
|
|
// </editor-fold>
|
|
// </editor-fold>
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 全局参数
|
|
* 全局参数
|
|
* @return \globalsettings
|
|
* @return \globalsettings
|
|
@@ -123,22 +124,6 @@ class GameConfig {
|
|
return self::get_hash_item('heroextra_level', $heroId)->$quality;
|
|
return self::get_hash_item('heroextra_level', $heroId)->$quality;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 开服七天活动
|
|
|
|
- * @return \day7
|
|
|
|
- */
|
|
|
|
- public static function day7() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'day7');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_day7 day7 item数据
|
|
|
|
- */
|
|
|
|
- public static function day7_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('day7', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* [废弃]
|
|
* [废弃]
|
|
* @return \item
|
|
* @return \item
|
|
@@ -171,22 +156,6 @@ class GameConfig {
|
|
return self::get_hash_item('itemlevel', $itemid);
|
|
return self::get_hash_item('itemlevel', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 英雄的好感度提升(消耗金币)
|
|
|
|
- * @return \heroextra_favor
|
|
|
|
- */
|
|
|
|
- public static function heroextra_favor() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'heroextra_favor');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_heroextra_favor heroextra_favor item数据
|
|
|
|
- */
|
|
|
|
- public static function heroextra_favor_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('heroextra_favor', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 英雄的升级——每级成长消耗经验需求表
|
|
* 英雄的升级——每级成长消耗经验需求表
|
|
* @return \hero_levelexp
|
|
* @return \hero_levelexp
|
|
@@ -203,22 +172,6 @@ class GameConfig {
|
|
return self::get_hash_item('hero_levelexp', $itemid);
|
|
return self::get_hash_item('hero_levelexp', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 英雄的升星(消耗金币+ 属性加成)
|
|
|
|
- * @return \heroextra_star
|
|
|
|
- */
|
|
|
|
- public static function heroextra_star() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'heroextra_star');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_heroextra_star heroextra_star item数据
|
|
|
|
- */
|
|
|
|
- public static function heroextra_star_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('heroextra_star', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 英雄的升阶(消耗金币+ 属性加成)
|
|
* 英雄的升阶(消耗金币+ 属性加成)
|
|
* @return \heroextra_dengjie
|
|
* @return \heroextra_dengjie
|
|
@@ -331,22 +284,6 @@ class GameConfig {
|
|
return self::get_hash_item('item_yanling', $itemid);
|
|
return self::get_hash_item('item_yanling', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 技能升级消耗金币
|
|
|
|
- * @return \skill_upgrade_cost
|
|
|
|
- */
|
|
|
|
- public static function skill_upgrade_cost() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'skill_upgrade_cost');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_skill_upgrade_cost skill_upgrade_cost item数据
|
|
|
|
- */
|
|
|
|
- public static function skill_upgrade_cost_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('skill_upgrade_cost', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 商城
|
|
* 商城
|
|
* @return \shop
|
|
* @return \shop
|
|
@@ -411,22 +348,6 @@ class GameConfig {
|
|
return self::get_hash_item('item_taskcard', $itemid);
|
|
return self::get_hash_item('item_taskcard', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 无穷无尽关卡模式
|
|
|
|
- * @return \gate_forever
|
|
|
|
- */
|
|
|
|
- public static function gate_forever() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'gate_forever');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_gate_forever gate_forever item数据
|
|
|
|
- */
|
|
|
|
- public static function gate_forever_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('gate_forever', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 系统邮件
|
|
* 系统邮件
|
|
* @return \sysmail
|
|
* @return \sysmail
|
|
@@ -507,22 +428,6 @@ class GameConfig {
|
|
return self::get_hash_item('pvp_shop', $itemid);
|
|
return self::get_hash_item('pvp_shop', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 熔炼实验室
|
|
|
|
- * @return \smelting
|
|
|
|
- */
|
|
|
|
- public static function smelting() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'smelting');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_smelting smelting item数据
|
|
|
|
- */
|
|
|
|
- public static function smelting_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('smelting', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 配置的关卡相关的战斗数据
|
|
* 配置的关卡相关的战斗数据
|
|
* @return \gate_combat
|
|
* @return \gate_combat
|
|
@@ -539,22 +444,6 @@ class GameConfig {
|
|
return self::get_hash_item('gate_combat', $itemid);
|
|
return self::get_hash_item('gate_combat', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * [废弃]
|
|
|
|
- * @return \gate_carbon_content
|
|
|
|
- */
|
|
|
|
- public static function gate_carbon_content() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'gate_carbon_content');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_gate_carbon_content gate_carbon_content item数据
|
|
|
|
- */
|
|
|
|
- public static function gate_carbon_content_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('gate_carbon_content', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 每日任务
|
|
* 每日任务
|
|
* @return \task_daily
|
|
* @return \task_daily
|
|
@@ -571,22 +460,6 @@ class GameConfig {
|
|
return self::get_hash_item('task_daily', $itemid);
|
|
return self::get_hash_item('task_daily', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 抽奖保底数据
|
|
|
|
- * @return \choujiang_baodi
|
|
|
|
- */
|
|
|
|
- public static function choujiang_baodi() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'choujiang_baodi');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_choujiang_baodi choujiang_baodi item数据
|
|
|
|
- */
|
|
|
|
- public static function choujiang_baodi_getItem($typeId, $cishu) {
|
|
|
|
- return self::get_hash_item('choujiang_baodi', "$typeId-$cishu");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 英雄的升级——成长可消耗的道具表
|
|
* 英雄的升级——成长可消耗的道具表
|
|
* @return \hero_levelexp_costitem
|
|
* @return \hero_levelexp_costitem
|
|
@@ -603,38 +476,6 @@ class GameConfig {
|
|
return self::get_hash_item('hero_levelexp_costitem', $itemid);
|
|
return self::get_hash_item('hero_levelexp_costitem', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 抽奖设置数据
|
|
|
|
- * @return \choujiang_settings
|
|
|
|
- */
|
|
|
|
- public static function choujiang_settings() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'choujiang_settings');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_choujiang_settings choujiang_settings item数据
|
|
|
|
- */
|
|
|
|
- public static function choujiang_settings_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('choujiang_settings', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 引导步骤
|
|
|
|
- * @return \guide_step
|
|
|
|
- */
|
|
|
|
- public static function guide_step() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'guide_step');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_guide_step guide_step item数据
|
|
|
|
- */
|
|
|
|
- public static function guide_step_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('guide_step', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 引导触发
|
|
* 引导触发
|
|
* @return \guide_trigger
|
|
* @return \guide_trigger
|
|
@@ -667,54 +508,6 @@ class GameConfig {
|
|
return self::get_hash_item('task_node', $itemid);
|
|
return self::get_hash_item('task_node', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 宝箱
|
|
|
|
- * @return \box
|
|
|
|
- */
|
|
|
|
- public static function box() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'box');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_box box item数据
|
|
|
|
- */
|
|
|
|
- public static function box_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('box', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 宝箱的奖池
|
|
|
|
- * @return \boxpool
|
|
|
|
- */
|
|
|
|
- public static function boxpool() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'boxpool');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_boxpool boxpool item数据
|
|
|
|
- */
|
|
|
|
- public static function boxpool_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('boxpool', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 英雄————神血系统
|
|
|
|
- * @return \heroextra_godblood
|
|
|
|
- */
|
|
|
|
- public static function heroextra_godblood() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'heroextra_godblood');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_heroextra_godblood heroextra_godblood item数据
|
|
|
|
- */
|
|
|
|
- public static function heroextra_godblood_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('heroextra_godblood', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 碎片
|
|
* 碎片
|
|
* @return \segment
|
|
* @return \segment
|
|
@@ -747,22 +540,6 @@ class GameConfig {
|
|
return self::get_hash_item('gate_world', $itemid);
|
|
return self::get_hash_item('gate_world', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * [废弃]
|
|
|
|
- * @return \gate_city
|
|
|
|
- */
|
|
|
|
- public static function gate_city() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'gate_city');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_gate_city gate_city item数据
|
|
|
|
- */
|
|
|
|
- public static function gate_city_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('gate_city', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 神秘商城道具表-by goodstype
|
|
* 神秘商城道具表-by goodstype
|
|
* @return \secretshop_goodsType
|
|
* @return \secretshop_goodsType
|
|
@@ -876,19 +653,19 @@ class GameConfig {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 碎片融合的概率表
|
|
|
|
- * @return \segment_ronghe
|
|
|
|
|
|
+ * 任务卡商店
|
|
|
|
+ * @return \taskcard_shop
|
|
*/
|
|
*/
|
|
- public static function segment_ronghe() {
|
|
|
|
|
|
+ public static function taskcard_shop() {
|
|
static $a = null;
|
|
static $a = null;
|
|
- return self::initValue($a, 'segment_ronghe');
|
|
|
|
|
|
+ return self::initValue($a, 'taskcard_shop');
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @return \sm_segment_ronghe segment_ronghe item数据
|
|
|
|
|
|
+ * @return \sm_taskcard_shop taskcard_shop item数据
|
|
*/
|
|
*/
|
|
- public static function segment_ronghe_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('segment_ronghe', $itemid);
|
|
|
|
|
|
+ public static function taskcard_shop_getItem($itemid) {
|
|
|
|
+ return self::get_hash_item('taskcard_shop', $itemid);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -907,22 +684,6 @@ class GameConfig {
|
|
return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
|
|
return self::get_hash_item('segment_byPinzhi', $quailty)->$itemType;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 宝箱经验卡掉落数据
|
|
|
|
- * @return \boxJingYanCards
|
|
|
|
- */
|
|
|
|
- public static function boxJingYanCards() {
|
|
|
|
- static $a = null;
|
|
|
|
- return self::initValue($a, 'boxJingYanCards');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \sm_boxJingYanCards boxJingYanCards item数据
|
|
|
|
- */
|
|
|
|
- public static function boxJingYanCards_getItem($itemid) {
|
|
|
|
- return self::get_hash_item('boxJingYanCards', $itemid);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 活动: 在线礼包
|
|
* 活动: 在线礼包
|
|
* @return \activity_onlinegift
|
|
* @return \activity_onlinegift
|