using Newtonsoft.Json.Linq;
using System;
///
/// 全局变量的参数管理者
///
public class GlobalParameter : Singleton
{
///
/// 快速访问globalsettings
///
private static globalsettings gs
{
get
{
if (GameConfigData.IsReady)
{
return GameConfigData.Ins.globalsettings;
}
return null;
}
}
///
/// 是否开放引导功能
///
public int Game_Guide_IsOpen => Convert.ToInt32(gs.Game_Guide_IsOpen);
///
/// 是否开放聊天功能
///
public int Game_ChatIsOpen => Convert.ToInt32(gs.Game_ChatIsOpen);
///
/// 游戏内玩家的 账号最高等级
///
public int Game_MaxPlayerLevel => Convert.ToInt32(gs.Game_MaxPlayerLevel);
///
/// 战斗类型2 开放的最低等级限制
///
public int Fight_OpenLevelLimit => Convert.ToInt32(gs.Fight_OpenLevelLimit);
#region 战斗数据配置
///
/// 单场战斗总时间, 单位毫秒
///
public int BattleShowTime => Convert.ToInt32(gs.Battle_BattleShowTime);
///
/// 战斗队伍最大人数
///
public int BattleTeamMaxFighter => Convert.ToInt32(gs.Battle_BattleTeamMaxFighter);
///
/// 己方能量值上限
///
public int BlueTeamMaxPower => Convert.ToInt32(gs.Battle_BlueTeamMaxPower);
///
/// 己方技能总能量值上限
///
public int BlueTeamMaxSkillPower => Convert.ToInt32(gs.Battle_BlueTeamMaxSkillPower);
///
/// 敌方技能总能量值上限
///
public int RedTeamMaxSkillPower => Convert.ToInt32(gs.Battle_RedTeamMaxSkillPower);
///
/// 己方必杀时间
///
public int BlueCriticalTime => Convert.ToInt32(gs.Battle_BlueCriticalTime);
///
/// 连击伤害倍率
///
public int BattleLianJiDamageRate => Convert.ToInt32(gs.Battle_BattleLianJiDamageRate);
///
/// 己方释放技能恢复己方团队能量值
///
public int BattleIncreasePowerByCastSkill => Convert.ToInt32(gs.Battle_IncreasePowerByCastSkill);
#endregion
#region 英雄升阶_
#endregion
#region 英雄升级_
///
/// 英雄升级_卡牌的等级限制基础值
///
public int Hero_Upgrade_BasicMaxLevel => Convert.ToInt32(gs.Hero_Upgrade_BasicMaxLevel);
#endregion
#region 英雄升星_
#endregion
#region 英雄分解_
#endregion
#region 战斗相关
///
/// 进入战场后,角色初始能量(sp)
///
public int Arenas_Init_SP => Convert.ToInt32( gs.Arenas_Init_SP);
///
/// 普通攻击(一击)命中目标并造成上海, 增加3点能量SP
///
public int Arenas_hit_SP => Convert.ToInt32(gs.Arenas_hit_SP);
///
/// 触发极限闪避并进入【失控漩涡】时间, 增加2点能量SP
///
public int Arenas_jixianshanbi_SP => Convert.ToInt32(gs.Arenas_jixianshanbi_SP);
#endregion
///
/// 物品升级时,每当5级10级时有个需要的系数。
///
public string ItemUpgrageRatio => gs.item_qianghua.ToString();
#region 物品
///
/// 每购买十个格子需要的钻石
///
public int Item_Packet_NumCostCash => Convert.ToInt32(gs.Item_Packet_NumCostCash);
///
/// 合成一次需要的金币数量
///
public int Compose_Pieces_Gold => Convert.ToInt32(gs.Compose_Pieces_Gold);
#endregion
#region 宝箱
///
/// 开宝箱的公共冷却值(热保护值)
///
public int Box_Total_CoolDown => Convert.ToInt32(gs.Box_Total_CoolDown);
///
/// 免cd开宝箱所花费的钻石数。
///
public string Box_NoCoolDown_Cash => gs.Box_NoCoolDown_Cash.ToString();
#endregion
#region 任务
///
/// 七日奖励的点数限制
///
public int day7_dianshu => Convert.ToInt32(gs.day7_dianshu);
///
/// 七日奖励的奖励物品
///
public string day7_reward => gs.day7_reward.ToString();
#endregion
#region 抽奖
///
/// 用高级抽奖券来抽奖时消耗次数
///
public int choujiang_price305001 => 1;
///
/// 用高级抽奖券的次数限制
///
public int choujiang_cishu305001 => 1;
///
/// 用中级抽奖卡来抽奖时消耗次数
///
public int choujiang_price305002 => 1;
///
/// 用中级抽奖券的次数限制
///
public int choujiang_cishu305002 => 1;
///
/// 用低级抽奖卡来抽奖时消耗次数
///
public int choujiang_price305003 => 1;
///
/// 用低级抽奖券的次数限制
///
public int choujiang_cishu305003 => 1;
///
/// 用友情值抽奖时消耗次数
///
public int choujiang_price399005 => 1;
#endregion
#region pvp
///
/// 手动刷新对手花费钻石数量
///
public string PVP_reFresh_Match_cost => gs.PVP_shop_refresh_cash.ToString();
///
/// 免费刷新商店所需时间(秒)
///
public int PVP_reFresh_Shop_interval => Convert.ToInt32(gs.PVP_shop_refresh_interval);
///
/// 恢复一点体力所需花费钻石数量
///
public string PVP_ticket_price_cash => gs.PVP_pk_ticket_price.ToString();
#endregion
#region 神秘商城
///
/// 神秘商城, 刷新时间间隔(单位: 秒)
///
public int secretshop_refresh_interval => Convert.ToInt32(gs.secretshop_refresh_interval);
///
/// 神秘商城最大刷新次数
///
public int secretshop_refresh_maxtimes => Convert.ToInt32(gs.secretshop_refresh_maxtimes);
///
/// 神秘商城最单个物品大购买次数
///
public int secretshop_itembuy_maxtimes => Convert.ToInt32(gs.secretshop_itembuy_maxtimes);
#endregion
#region 活动—— 赠送体力
///
/// 每次赠送体力的数量
///
public int activity_presentTili_number => Convert.ToInt32(gs.activity_presentTili_number);
///
/// 赠送体力的时间段(24小时的数字无前导0, 逗号分隔)
///
public string activity_presentTili_times => gs.activity_presentTili_times.ToString();
///
/// 首冲礼包ID
///
public string FirstPay_ItemId => gs.FirstPay_ItemId.ToString();
#endregion
}