Enum.ts 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. /** @format */
  2. import {UI} from './UI'
  3. export enum LOCAL {
  4. bgmVolume = 'ONLY_TAG:bgmVolume', // 背景音乐音量
  5. sfxVolume = 'ONLY_TAG:sfxVolume', // 声效开关
  6. isMusicEnable = 'ONLY_TAG:isMusicEnable', // 背景音乐是否静音
  7. isSoundEnable = 'ONLY_TAG:isSoundEnable', // 音效是否静音
  8. chooseMultRole = 'ONLY_TAG:chooseMultRole', // 测试多选的阵容ID
  9. chooseMultCard = 'ONLY_TAG:chooseMultCard', // 测试多选的卡牌ID
  10. selectLanguage = 'ONLY_TAG:selectLanguage', // 选择的语言
  11. adFreeInfo = 'adFreeInfo', //存储广告时间和剩余次数
  12. isEditName = 'isEditName', //是否改过名字
  13. loginDay = 'loginDay', //登录的当天0点0时0分0秒的时间戳
  14. firstChargePop = 'firstChargePop', //第一次首充弹出
  15. gameSpeedTime = 'gameSpeedTime', //双倍时间
  16. lastLoginServer = 'ONLY_TAG:lastLoginServer', //上次登录的服务器
  17. }
  18. export enum EVENT {
  19. canvasResize = 'canvasResize', // Socket开启
  20. webSocketOpen = 'webSocketOpen', // Socket开启
  21. webSocketClose = 'webSocketClose', // Socket关闭
  22. serverMaintain = 'serverMaintain', // 服务器维护
  23. goodsChangeSync = 'goodsChangeSync', // 物品改变数量同步
  24. screenChange = 'screenChange', // 屏幕翻转
  25. mainPopAnyUI = 'mainPopAnyUI', // 主界面弹出一些UI
  26. facebookLoginSuccess = 'facebookLoginSuccess', // facebook登录成功
  27. facebookLoginFail = 'facebookLoginFail', // facebook登录失败
  28. googleLoginSuccess = 'googleLoginSuccess', // google登录成功
  29. googleLoginFail = 'googleLoginFail', // google登录失败
  30. mainRed = 'mainRed', // 主界面红点刷新
  31. changeLanguage = 'changeLanguage', // 切换语言
  32. chooseServer = 'chooseServer', // 选择服务器
  33. openLotteryTask = 'openLotteryTask', // 宝藏任务
  34. heroTrail = 'heroTrail', // 英雄体验
  35. }
  36. // app版本
  37. export enum APP_TYPE {
  38. windows, // 电脑端
  39. }
  40. // 游戏类型
  41. export enum GAME_TYPE {
  42. normal, // 普通关卡
  43. elite, // 精英关卡
  44. relic, // 遗迹关卡
  45. dailyCoin, //日常金币
  46. dailyExp, //日常经验
  47. dailyCard, //日常技能卡牌经验
  48. none = 1000, // 测试场景
  49. }
  50. export enum GAME_WIN_TYPE {
  51. killNum = 1, //击杀指定数量怪物
  52. surviveTime, //存活到指定时间
  53. boss, //boss关卡
  54. }
  55. // 游戏英雄提示类型
  56. export enum GAME_ROLE_TIP {
  57. buffTip = 'buffTip', //血条顶部buff提示
  58. damageTip = 'damageTip', //普通扣血提示
  59. hpTip = 'hpTip', //加血提示
  60. critTip = 'critTip', //暴击提示
  61. missTip = 'missTip', //攻击闪避提示
  62. }
  63. // 游戏预制体类型
  64. export enum GAME_PREFAB_TYPE {
  65. bullet = 'bullet', //子弹
  66. frameAni = 'frameAni', //动画
  67. role = 'role', //角色
  68. roleSpine = 'roleSpine', //角色spine
  69. skill = 'skill', //技能
  70. }
  71. // 游戏层级
  72. export enum GAME_LAYER {
  73. floor = 10, //子弹
  74. drop = 20, //掉落
  75. roleSpine = 30, //角色
  76. role = 40, //角色spine
  77. bullet = 50, //子弹
  78. skill = 60, //技能
  79. }
  80. export enum GOODS_TYPE {
  81. currency = 1, //货币
  82. fatigue = 2, //体力
  83. diamond = 3, //充值代币
  84. cast = 4, //消耗道具
  85. cost = 5, //召唤费用
  86. roleSpecial = 6, // 英雄特殊道具
  87. equipSpecial = 7, // 装备特殊道具
  88. randomBox = 8, // 随机宝箱
  89. selectBox = 9, // 选择宝箱
  90. }
  91. // 道具ID
  92. export enum GOODS {
  93. coin = 100001, //金币
  94. fatigue = 110001, //体力
  95. cost = 110002, //费点
  96. activation = 110003, //活跃度
  97. weeklyIntegral = 110004, //周积分
  98. roleSoulStone = 110007, //英雄魂石
  99. equipRuneStones = 110008, //装备符石
  100. diamond = 130001, //钻石
  101. exp = 140003, //队伍经验
  102. weaponsScroll = 140007, //武器卷轴
  103. normalDrawScroll = 140050, //普通抽卡卷轴
  104. rarelDrawScroll = 140051, //高级抽卡卷轴
  105. relicPoints = 110005, //遗迹积分
  106. relicCoin = 110006, //遗迹币
  107. drawEquip = 110009, //锻造次数
  108. talentCoin = 140006, //天赋石
  109. launchLotteryCoin = 130006, //宝藏币
  110. }
  111. export enum QUALITY_TYPE {
  112. normal = 1, //普通
  113. excellent, //优秀
  114. rare, //稀有
  115. elite, //精英
  116. legend, //传奇
  117. mythology, //神话
  118. }
  119. export let QUALITY_COLOR: string[] = ['', '#FFFFFF', '#6CDA2B', '#1DCDF2', '#D56FFF', '#FFAB3E', '#FF3E3E']
  120. export enum ATTR_NAME {
  121. HP = 'HP', //血量
  122. attack = 'attack', //物理攻击
  123. spellAttack = 'spellAttack', //法术攻击
  124. realAttack = 'realAttack', //真实攻击
  125. defense = 'defense', //物理防御
  126. spellDefense = 'spellDefense', //法术防御
  127. attackCrit = 'attackCrit', //暴击率
  128. critNum = 'critNum', //暴击伤害
  129. hit = 'hit', //命中
  130. dodge = 'dodge', //闪避
  131. attackSpeed = 'attackSpeed', // 攻击速度
  132. moveSpeed = 'moveSpeed', // 移动速度
  133. attackRange = 'attackRange', // 攻击范围
  134. attackCD = 'attackCD', // 攻击CD
  135. }
  136. export enum ATTR_CASTLE_BULLET {
  137. rechargeCD = 'rechargeCD', //充能CD
  138. rechargeNum = 'rechargeNum', //充能数量
  139. }
  140. export enum PROFESSION {
  141. warrior = 1, //战士
  142. mage, //法师
  143. archer, //射手
  144. assassin, //刺客
  145. }
  146. export enum CARD_PROFESSION {
  147. mage = 1, //法术卡
  148. warrior, //物理卡
  149. }
  150. export enum EQUIPMENT {
  151. none = 0,
  152. weapons, //武器
  153. jewelry, //饰品
  154. bracers, //腰带
  155. clothes, //衣服
  156. belt, //裤子
  157. pants, //鞋子
  158. }
  159. //建筑类型
  160. export enum BUILDING {
  161. main = 1, //主城
  162. wood, //伐木场
  163. iron, //铁矿场
  164. gold, //金矿
  165. farm, //农场,产出体力
  166. }
  167. export enum BUILDING_ATTR {
  168. HP = 'HP', //基地血量
  169. }
  170. //----------------战斗-----------------
  171. export enum ROLE_TYPE {
  172. normal = 1, //普通角色
  173. only, //唯一单卡
  174. totem, //图腾
  175. baby, //召唤物
  176. base, //基地
  177. }
  178. export enum MONSTER_TYPE {
  179. normal = 21, //普通怪物
  180. elite, //精英
  181. boss, //boss
  182. baby, //召唤物
  183. }
  184. //技能施放对象
  185. export enum SKILL_DIR_TYPE {
  186. normal, //范围内n个对象
  187. selfRole, //自己
  188. anyRole, //单体目标对象
  189. baby, //召唤物对象
  190. minHpRole, //最少血量对象
  191. maxDistance, //距离最大对象
  192. selfNormal, //以自己为中心的范围内n个对象
  193. }
  194. export enum SKILL_TYPE {
  195. normal = 1, //普通技能
  196. holo, //光环技能
  197. moveBack = 3, //背刺位移技能
  198. createRole, //召唤技能
  199. transRole, //变身技能
  200. shield, //顶盾技能
  201. attackBack, //击退技能
  202. addHP, //加血技能
  203. addShieldHPByHP, //血量加白血技能
  204. addShieldHPBySpAttack, //法术攻击加白血技能
  205. skillBullet, //子弹技能
  206. ejectionSkillBullet, //反弹子弹技能
  207. }
  208. export enum BULLET_TYPE {
  209. normal = 1, //普通子弹
  210. skill = 2, //技能子弹
  211. }
  212. export enum BULLET_FLY_TYPE {
  213. normal = 1, //普通子弹
  214. parabolic = 2, //抛物线子弹
  215. bezier = 3, //贝塞尔曲线子弹
  216. boomerang = 4, //回旋子弹
  217. horizon = 5, //水平子弹
  218. }
  219. export enum BULLET_EFFECT_TYPE {
  220. ejection = 1, //弹射
  221. attackRange = 2, //终点为攻击范围
  222. castleVoid = 3, //城堡免疫
  223. skillEjection = 4, //战场反弹,跟随主人技能生命周期
  224. boomerangRange = 5, //回旋镖距离
  225. line = 6, //连线拖尾,用做闪链点等特效
  226. }
  227. export enum SKILL_EFFECT_TYPE {
  228. boss = 1, //技能产生的伤害对boss的效果比例
  229. reduce, //伤害递减
  230. addExtraHP, //对生命低于x%的加血增加
  231. rateHpHurt, //血量百分比伤害
  232. castBySkill, //技能由前置技能触发
  233. addRateHP, //增加x%生命血量
  234. addRateShieldHP, //增加x%生命白血量
  235. skillBullet, //发射技能子弹
  236. hurtBase, //对基地产生伤害
  237. addCost, //加费点
  238. shieldHolo, //绿巨人顶盾光环
  239. move, //可移动技能
  240. killSelf, //自杀
  241. }
  242. export enum BUFF_TYPE {
  243. normal = 1, //普通buff
  244. backAddHurt = 3, //背刺加伤
  245. realByHp = 4, //攻击带当前血量的x%真伤
  246. sputter = 5, //攻击带溅射
  247. addHp = 6, //每秒回血
  248. reboundAttack = 7, //物理反伤
  249. reboundReal = 8, //真实反伤
  250. attackGetHp = 9, //物理攻击吸血
  251. dizzy = 10, //晕眩
  252. killNum = 11, //杀敌加攻
  253. attackNumAddHurt = 13, //N次攻击加伤
  254. skillImmune = 14, //技能免疫
  255. shieldReduceHurt = 15, //顶盾减伤
  256. attackAddBabyHP = 16, //攻击给宝宝加血
  257. negativeImmune = 17, //免疫负面效果
  258. rangedImmune = 18, //免疫远程伤害为1点
  259. }
  260. export enum BUFF_EFFECT_TYPE {
  261. boss = 1, //buff产生的数值对boss的效果比例
  262. immune, //一段时间内免疫某个技能伤害
  263. addHpByAttack, //万分比生命值的额外加血量
  264. changeSpineAttack, //修改spine攻击动作
  265. immuneNegative, //免疫负面效果
  266. }
  267. export enum NEGATIVE_TYPE {
  268. delay = 1, //晕眩
  269. slow, //减速
  270. back, //击退
  271. }
  272. export enum BUFF_ANI_TYPE {
  273. delay = 1001, //晕眩
  274. slow = 1002, //减速
  275. }
  276. export enum CARD_CAST_AREA {
  277. fullScreen, //全屏
  278. radius, //椭圆
  279. rect, //矩形
  280. }
  281. export enum START_POS {
  282. role, //人物枪口
  283. straightFall, //从天上垂直下落
  284. obliqueFall, //从天上斜向下落
  285. leftScreen, //屏幕左边
  286. areaCenter, //预警中心
  287. fightCenter, //战场中心
  288. base, //基地
  289. }
  290. export enum CARD_END_POS {
  291. none, //暂无
  292. random, //范围内随机位置
  293. rowCol, //N行N列
  294. role, //角色位置
  295. rightScreen, //屏幕右边
  296. }
  297. //卡牌技能每一次施放的对象类型
  298. export enum CARD_MORE_DIR {
  299. one2One = 1, //一次对一个对象
  300. one2All, //一次对技能配置多个对象
  301. noOne, //没有对象,直接按开始点施放
  302. }
  303. //特效名称
  304. export enum FRAME_ANI_NAME {
  305. normalHurt = 101, //通用受击
  306. gangtiexiaBulletSign = 102, //钢铁侠技能子弹标记
  307. energe = 50701, //卡牌能量灌注
  308. lightLine = 50901, //闪链电特效
  309. }
  310. //缩放类型
  311. export enum GAME_SCALE_TYPE {
  312. spine = 0, //spine比例
  313. skillHit, //命中自身技能比例
  314. }
  315. //缩放类型
  316. export enum ROLE_HEIGHT_TYPE {
  317. foot = 1, //脚底
  318. center, //中心
  319. head, //头部
  320. }
  321. export enum ANI_TYPE {
  322. frameAni = 1,
  323. action,
  324. shader,
  325. }
  326. //受击特效类型
  327. export enum HIT_ANI_TYPE {
  328. role = 0,
  329. floor,
  330. }
  331. //----------------战斗-----------------
  332. export enum Language {
  333. en = 'en',
  334. zh = 'zh',
  335. }
  336. export enum ENTRY {
  337. HP = 1, //血量
  338. attack, //物理攻击
  339. spellAttack, //法术攻击
  340. defense, //物理防御
  341. spellDefense, //法术防御
  342. attackCrit, //暴击率
  343. critNum, //暴击伤害
  344. hit, //命中
  345. dodge, //闪避,
  346. attackSpeed, //攻速
  347. moveSpeed, //移速
  348. realAttack, //真实攻击
  349. addRoleHP, //增加单体生命值 单角色+
  350. talAddHP, //天赋提供的生命值 所有角色+(普通天赋激活的生命值*万分比)
  351. talAddattack, // 天赋提供的攻击力 所有角色+(普通天赋激活的攻击力*万分比)=
  352. talAddspellAttack, // 天赋提供的法术攻击 所有角色+(普通天赋激活的法术攻击*万分比)
  353. talAdddefense, // 天赋提供的防御 所有角色+(普通天赋激活的防御*万分比)
  354. talAddspellDefense, // 天赋提供的法术防御 所有角色+(普通天赋激活的法术防御*万分比)
  355. equipAddAttack, // 装备基础攻击力 当前装备+(装备提供的攻击力*万分比)
  356. talAddAllDefense, // +法术防御和物理防御
  357. HPRate, //血量 单角色+万分比
  358. attackRate, //物理攻击 单角色+万分比
  359. spellAttackRate, //法术攻击 单角色+万分比
  360. defenseRate, //物理防御 单角色+万分比
  361. spellDefenseRate, //法术防御 单角色+万分比
  362. attackCritRate, //暴击率 单角色+万分比
  363. critNumRate, //暴击伤害 单角色+万分比
  364. hitRate, //命中 单角色+万分比
  365. dodgeRate, //闪避, 单角色+万分比
  366. attackSpeedRate, //攻速 单角色+万分比
  367. moveSpeedRate, //移速 单角色+万分比
  368. realAttackRate, //真实攻击 单角色+万分比
  369. ignoreDefense = 50, //忽略防御
  370. hurt2HP, //普攻伤害转化生命值
  371. addHealing, //治疗效果提升
  372. addBabyHP, //召唤物生命值
  373. skillHurtRate, //加技能伤害倍率
  374. skillCD, //技能冷却CD
  375. createBackCost, //召唤返费
  376. hurtRebound, //受伤反弹
  377. hurtReduce, //受伤减少固定值 大于0的值
  378. healing2Shield, //受治疗溢出转化护盾
  379. startShieldHP, //出场自带生命护盾
  380. boosHurt, //对精英/首领伤害
  381. moreThanHPAttr, //血量>提高属性
  382. belowHPAttr, //血量<提高属性
  383. skillRestoreHP, //释放技能回复生命
  384. delayReduce, //受控时间减少
  385. delayAdd, //控制时间延长
  386. startCostAdd, //战斗初始费点增加
  387. addBabyAttack, //召唤物物理法术攻击力
  388. healingMore, //受到治疗效果增加
  389. textShow = 1000, //文本显示
  390. }
  391. export enum LANGUAGE_TYPE {
  392. none = '',
  393. HP = 't1001', //血量
  394. attack = 't1002', //物理攻击
  395. defense = 't1003', //法术防御
  396. spellAttack = 't1004', //法术攻击
  397. spellDefense = 't1005', //法术防御
  398. attackCrit = 't1006', //暴击
  399. critNum = 't1007', //暴击伤害
  400. hit = 't1008', //命中
  401. dodge = 't1009', //闪避
  402. attackSpeed = 't1010', //攻击速度
  403. moveSpeed = 't1011', //移速
  404. realAttack = 't1012', //真实攻击
  405. attackRange = 't1013', //攻击范围
  406. attackCD = 't1014', //攻击CD
  407. warrior = 't1051', //战士
  408. mage = 't1052', //法师
  409. assassin = 't1053', //刺客
  410. archer = 't1054', //射手
  411. normal = 't1081', //普通
  412. excellent = 't1082', //优秀
  413. rare = 't1083', //稀有
  414. elite = 't1084', //精英
  415. legend = 't1085', //传奇
  416. mythology = 't1086', //神话
  417. weapons = 't1111', //武器
  418. jewelry = 't1112', //饰品
  419. bracers = 't1113', //腰带
  420. clothes = 't1114', //衣服
  421. belt = 't1115', //裤子
  422. pants = 't1116', //鞋子
  423. heroIsUpReset = 't801', //当前英雄处于上阵中,是否继续重置该英雄?
  424. equipIsUpReset = 't802', //当前装备穿戴在英雄身上,是否继续重置该装备?
  425. dailyDeposit = 't505', //充值
  426. payFailed = 't507', //支付失败
  427. payCancel = 't507', //支付取消
  428. buildingMaterials = 't509', //建筑材料
  429. activityLevel = 't302', //战令活动等级
  430. copySuccess = 't307', //复制成功
  431. buyHeroTokenExp = 't318', //是否花费钻石购买战勋经验立即解锁奖励
  432. castle = 't326', //城堡
  433. loggingYard = 't327', //木场
  434. goldMine = 't328', //金矿
  435. farm = 't329', //农场
  436. mine = 't330', //铁矿
  437. maxInputLimit = 't333', //输入字符过多
  438. minInputLimit = 't334', //输入字符过少
  439. successfully = 't341', //修改成功
  440. specificSymbol = 't342', //不能输入特殊字符
  441. summoning = 't346', //英雄召唤
  442. forging = 't347', //装备锻造
  443. commonHero = 't356', //普通英雄
  444. excellentHero = 't357', //优秀英雄
  445. rareHero = 't358', //稀有英雄
  446. eliteHero = 't359', //精英英雄
  447. skillFragment = 't361', //综合概率
  448. commonEquip = 't363', //普通装备
  449. excellentEquip = 't364', //优秀装备
  450. rareEquip = 't365', //精良装备
  451. eliteEquip = 't366', //稀有装备
  452. legendaryEquip = 't367', //传说装备
  453. tokenLevelMax = 't368', //战令等级提升至最高
  454. onlyEliteBattlefield = 't377', //只可上阵精英级以上的英雄角色
  455. onlyReplaceHero = 't378', //只能置换精英级以上的英雄
  456. notOwnedHero = 't379', //当前未拥有可以上阵的精英级英雄
  457. clearCD = 't382', //清除CD
  458. notOwnedQualityHero = 't385', //未拥有对应品级的英雄
  459. exchangeSuccess = 't387', //置换成功
  460. notOwnedQualityEquip = 't388', //未拥有对应品级的装备
  461. onlyReplaceEquip = 't389', //置换成功
  462. shortageMaterial = 't390', //置换材料不足
  463. purchased = 't393', //已购买
  464. notReset = 't395', //在祭坛中、不能重置
  465. limitedNum = 't399', //限制#0次
  466. changeNameCD = 't400', //修改昵称冷却中
  467. autoBreakTip = 't37', //自动突破精英以下品质的角色
  468. needBreakTip = 't44', //需要#0个<color=#1>#2</c>
  469. remain = 't406', //剩余时间\n
  470. all = 't62', //全部
  471. confirm = 't52', //确定
  472. unlockLastTalent = 't76', //请解锁前置天赋
  473. lvUnlock = 't23', //等级#0解锁
  474. levelStage = 't416', //等级#0(关卡)#1
  475. lvOpen = 't77', //队伍等级#0开启
  476. waveFightTip = 't79', //一大波怪物来袭
  477. bossFightTip = 't80', //boss来袭
  478. whichDay = 't415', //第几天
  479. free = 't422', //免费
  480. days = 't423', //天
  481. hour = 't424', //小时
  482. min = 't425', //分钟
  483. purchaseStamina = 't419', //购买体力
  484. purchaseCoins = 't427', //购买金币
  485. lvMax = 't82', //等级上限
  486. teamLevel = 't428', //队伍等级#0开启#1
  487. normalBarrier = 't429', //通关#0开启#1
  488. createRoleDay = 't430', //第#0天开启#1
  489. dailyGift = 't624', //每日礼包
  490. weeklyGift = 't625', //每周礼包
  491. noviceGift = 't626', //新手礼包
  492. dailyPurchase = 't433', //每日购买
  493. weeklyPurchase = 't439', //每周购买
  494. novicePurchase = 't440', //新手购买
  495. soldOut = 't434', //售尽
  496. readyBuyTime = 't437', //有余次购买次数
  497. noBuyTime = 't438', //没有购买次数
  498. resetTimes = 't107', //重置次数
  499. resetTime = 't87', //重置时间
  500. relicLevel = 't115', //遗迹关卡
  501. d = 't117', //天
  502. h = 't118', //时
  503. m = 't119', //分
  504. s = 't120', //秒
  505. dailyCoin = 't126', //日常金币
  506. dailyExp = 't127', //日常经验
  507. dailyCard = 't128', //日常卡牌技能经验
  508. loading = 't131', //加载中
  509. connectServer = 't132', //连接服务器中
  510. loadingNum = 't133', //载入中......#0
  511. hotUpdate = 't134', //资源更新中...
  512. netCut = 't136', //网络请求超时\,请您检测网络状况重新登陆
  513. preCompletion = 't124', //通关上一难度解锁
  514. received = 't392', //收到(奖励)
  515. growthInfo = 't1800', //队伍等级达到#0级
  516. adventureInfo = 't1801', //通关主线关卡[#0]
  517. eliteInfo = 't1802', //通关精英关卡[#0]
  518. forgeInfo = 't453', //锻造#0次
  519. summonInfo = 't454', //召唤#0次
  520. sureResetRelic = 't138', //是否重置当前遗迹进度?
  521. relicResetCD = 't139', //遗迹探索CD冷却中,无法重置!
  522. relicMaxLayer = 't141', //当前已是最高层
  523. isVacant = 't418', //虚位以待
  524. freeHas = 't420', //拥有免费次数(体力&金币)
  525. purchaseHas = 't421', //拥有购买次数(体力&金币)
  526. freeDone = 't455', //免费次数用尽(体力&金币)
  527. purchaseDone = 't456', //购买次数用尽(体力&金币)
  528. notOpen = 't149', //暂未开放
  529. agreeTip = 't150', //请勾选同意用户协议和隐私政策
  530. rules = 't109', //规则
  531. userAgreement = 't151', //用户协议
  532. policy = 't152', //隐私政策
  533. agreementContent = 't4100', //用户协议内容
  534. policyContent = 't4101', //隐私政策内容
  535. loginIng = 't153', //正在登录中
  536. killBaseTip = 't154', //摧毁敌方基地
  537. bossTip = 't155', //击败BOSS并且摧毁地方基地
  538. autoBreakEquipTip = 't156', //自动突破精英以下品质的装备
  539. serverConnect = 't157', //服务器链接成功
  540. serverCut = 't158', //服务器链接断开
  541. httpFail = 't159', //链接失败,请检查网络重试:#0
  542. httpTimeout = 't160', //网络请求超时,请检查联网状态后重试
  543. needUpgrade = 't161', //需要升级
  544. updating = 't162', //正在更新中,请耐心等待
  545. updateFail = 't163', //热更新失败
  546. materialsLimit = 't164', //材料达到上限
  547. materialsNeed = 't165', //材料不足,无法突破
  548. professionEquip = 't166', //当前英雄职业无法穿戴该装备!
  549. slotLock = 't167', //当前槽位未解锁
  550. sameRoleOrCard = 't168', //不能上阵两个同名卡
  551. samePos = 't169', //不能重复上阵
  552. costAdd = 't170', //能量点+
  553. materialsLvUp = 't171', //当前材料已升级,是否继续合成?
  554. maxLevel = 'e101303', //等级达到上限,提升队伍等级或突破进阶可提升等级上限!
  555. maxStar = 'e101300', //达到最大突破等级
  556. needGoods = 'e101203', //道具不足
  557. on = 't516', //开
  558. off = 't517', //关
  559. magicBullet = 't512', //魔法炮弹
  560. buildingLv = 't515', //建筑等级#0解锁
  561. magicMaxLv = 't518', //魔法等级不能超过队伍等级
  562. explore = 't520', //#0探索
  563. canReceive = 't524', //可领取
  564. gotoUpgrade = 't530', //前往升级
  565. buildRule = 't506', //建筑规则
  566. castleSkillRule = 't531', //城堡技能规则
  567. exploreRule = 't532', //探索规则
  568. notExploreTimes = 't533', //探索次数不足
  569. rechargeCD = 't539', //充能CD
  570. rechargeNum = 't540', //充能数量
  571. inRecharge = 't542', //魔法炮弹充能中...
  572. chooseServer = 't549', //请选择服务器
  573. serverMaintenance = 't550', //服务器维护中
  574. explain = 't226', //说明
  575. specialEnemy = 't551', //特殊敌人
  576. star = 't552', //星
  577. upRole = 't553', //请前往队伍界面上阵英雄
  578. adNotInit = 't555', //广告正在初始化...
  579. adLoading = 't556', //广告正在准备中...
  580. rank = 't561', //第#0名
  581. }
  582. export enum TIMESTAMP_TYPE {
  583. day = 86400, //一天的秒数
  584. hour = 3600, //一小时的秒数
  585. minute = 60, //一分钟的秒数
  586. }
  587. export enum DIS_ID {
  588. fatigue = 1, //体力
  589. maxLv = 2, //data1:建筑存储资源时间(单位/H) data2:账号创建时获得初始资源奖励ID data3:版本当前最大等级上限(队伍等级) data3:战斗加多少秒能量点
  590. heroSlot = 3, //英雄槽位
  591. cardSlot = 4, //卡牌技能槽位
  592. heroQuality = 5, //英雄阶级
  593. freeStamina = 7, //免费体力
  594. buyStamina = 8, //购买体力
  595. freeCoin = 9, //免费金币
  596. buyCoin = 10, //购买金币
  597. gameSpeed = 11, //游戏加速
  598. heroToken = 12, //活动战令是否开启等
  599. heroTokenData = 13, //活动战令消耗数据等
  600. normalSummon = 14, //普通召唤
  601. rareSummon = 15, //高级召唤
  602. equipSummon = 16, //装备锻造
  603. adFreeTime = 19, //广告冷却时间
  604. language = 21, //多语言
  605. relicTime = 22, //遗迹战令
  606. relicCost = 24, //遗迹费点
  607. altar = 34, //祭坛
  608. altarHero = 35, //祭坛英雄数据
  609. altarEquip = 36, //祭坛装备数据
  610. altarHeroMax = 37, //祭坛英雄免费置换次数
  611. altarEquipMax = 38, //祭坛装备免费置换次数
  612. dailyIns = 45, //日常副本
  613. onlineIdx1 = 49, //在线奖励挡位1
  614. onlineIdx2 = 50, //在线奖励挡位2
  615. onlineIdx3 = 51, //在线奖励挡位3
  616. onlineIdx4 = 52, //在线奖励挡位4
  617. onlineIdx5 = 53, //在线奖励挡位5
  618. onlineIdx6 = 54, //在线奖励挡位6
  619. castleSkill = 57, //城堡技能
  620. explore = 58, //探索
  621. exploreSlot = 59, //探索槽位
  622. launchLottery = 71, //开服宝藏
  623. thousandSign = 73, //千抽计费
  624. }
  625. export enum PREFAB_TYPE {
  626. goods = 'goods', //道具 游戏内所有物品包括货币英雄卡牌道具
  627. card = 'card', //技能卡牌
  628. cardDebris = 'cardDebris', //技能卡牌碎片
  629. role = 'role', //英雄
  630. equip = 'equip', //装备
  631. }
  632. export enum CONDITION_FUNC {
  633. none, //无条件
  634. teamLevel, //队伍等级
  635. normalBarrier, //主线关卡通关数
  636. createRoleDay, //创建角色天数
  637. eliteBarrier, //精英关卡通关数
  638. }
  639. export enum STATE {
  640. undo, //未完成
  641. ready, //完成未领取
  642. done, //完成已领取
  643. }
  644. export enum MOD {
  645. daily = 1001, //日常
  646. events = 1002, //活动
  647. challenge = 1003, //挑战
  648. elite = 2001, //精英关卡
  649. dailyStore = 2002, //每日商店
  650. relicStore = 2003, //遗迹商店
  651. equipGet = 2004, //装备锻造
  652. giftStore = 2005, //礼包商店
  653. dailyGift = 2006, //每日礼包
  654. weekGift = 2007, //每周礼包
  655. noviceGift = 2008, //新手礼包
  656. resourceStore = 2009, //钻石商店
  657. chapterGift = 2010, //章节礼包
  658. privilegeCard = 2011, //特权卡
  659. gameADCost = 2012, //游戏看广告加能量点
  660. doubleADGameReward = 2013, //双倍结算广告奖励
  661. castleSkill = 2014, //主城魔法炮弹
  662. explore = 2015, //探索
  663. speedGame = 2016, //战斗加速
  664. levelGift = 2017, //等级礼包
  665. fatigueBuy = 3000, //体力购买
  666. moneyBuy = 3001, //金币购买
  667. advancedCharge = 3002, //进阶首充
  668. luxuryCharge = 3003, //豪华首充
  669. }
  670. export type MOD_UI = MOD | UI
  671. export enum RELIC_EVENT {
  672. normal = 1, //普通关卡
  673. elite, //精英关卡
  674. defense, //驻军关卡
  675. swipe, //许愿池-事件
  676. gemBox, //钻石宝箱-事件
  677. randomBox, //随机宝箱-事件
  678. boss, //守关boss关卡
  679. }
  680. export enum RELIC_EVENT_NTY {
  681. fight = 2,
  682. swipe = 3,
  683. buff = 4,
  684. }
  685. export enum DIFF_LEVEL {
  686. normal = 't98', //普通
  687. hard = 't99', //困难
  688. elite = 't100', //精英
  689. master = 't101', //大师
  690. epic = 't102', //史诗
  691. nightmare = 't103', //噩梦
  692. }
  693. export enum SPEND_TYPE {
  694. adFree, //广告免费
  695. recharge, //计费点
  696. resource, //资源消耗
  697. }
  698. export enum LIMIT_TYPE {
  699. free, //不限购
  700. daily, //每日限购
  701. weekly, //每周限购
  702. }
  703. export enum SHOP_TYPE {
  704. gift = 1, //礼包
  705. daily, //每日
  706. resource, //资源
  707. relic, //积分
  708. }
  709. export enum HERO_TOKEN_TYPE {
  710. braveToken = 0, //勇者令
  711. strongToken = 1, //强者令
  712. kingToken = 2, //王者令
  713. }
  714. export enum GIFT_ID {
  715. strongToken = 50001, //强者令礼包
  716. kingToken = 50002, //王者令礼包
  717. normalCharge = 50045, //普通首充
  718. advancedCharge = 50046, //进阶首充
  719. luxuryCharge = 50047, //豪华首充
  720. relicToken = 50050, //遗迹高级礼包
  721. }
  722. //活动类型
  723. export enum ACTIVITY_TYPE {
  724. chapterGift = 2010, //冒险礼包
  725. adCard = 2012, //广告卡
  726. monthlyCard = 2013, //月卡
  727. supremeCard = 2014, //至尊卡
  728. dailyRecharge = 2015, //连续充值
  729. levelGift = 2017, //等级礼包
  730. normalCharge = 54, //普通首充
  731. advancedCharge = 3002, //进阶首充
  732. luxuryCharge = 3003, //豪华首充
  733. growthFund = 3006, //成长基金
  734. adventureFund = 3007, //冒险基金
  735. eliteFund = 3008, //精英基金
  736. summonFund = 3009, //召唤基金
  737. forgeFund = 3010, //锻造基金
  738. heroRank = 4001, //英雄排名
  739. stageRank = 4002, //闯关排名
  740. powerRank = 4003, //战力排名
  741. eliteRank = 4004, //精英排名
  742. launchLottery = 4005, //开服宝藏
  743. }
  744. //抽奖类型
  745. export enum RECRUIT_TYPE { //列表类型
  746. summoning = 0, //英雄抽卡
  747. forging = 1, //武器鍛造
  748. }
  749. export enum BASIC_NUMBER { //基数转换
  750. convertNum100 = 100, //用于金钱额度的除数
  751. }
  752. //说明引导类型
  753. export enum GUIDE_TYPE {
  754. game = 201, //战斗
  755. build, //建筑
  756. winType, //胜利条件
  757. monster, //特殊怪物
  758. }
  759. export enum LOGIN_TYPE {
  760. test = 0, //测试
  761. guest = 1, //游客
  762. facebook = 2, //facebook
  763. google = 3, //google
  764. }
  765. //广告位ID
  766. export enum AD_ID {
  767. gold = 99900, //看广告购买金币
  768. tili, //购买体力
  769. energy, //战斗看广告恢复能量
  770. dailyshop, //每日商店看广告购买商品
  771. dailygift, //每日礼包商店看广告商品
  772. weeklygift, //每周礼包商店看广告商品
  773. summoning, //英雄召唤看广告
  774. forging, //装备锻造看广告
  775. coincopy, //金币每日副本看广告
  776. expcopy, //经验每日副本看广告
  777. skillcopy, //技能每日副本看广告
  778. firstpass, //关卡首通双倍看广告
  779. gamespeed, //游戏速度双倍看广告
  780. }
  781. export enum CHANNEL {
  782. none = '',
  783. googleplay = 'googleplay', //谷歌商店
  784. yfy = 'yfy', //云飞扬
  785. }
  786. export enum TASK_TYPE {
  787. daily = 1, //日常
  788. weekly, //周常
  789. achievement, //成就
  790. mainQuest, //主线任务
  791. }
  792. export enum SERVER_STATE {
  793. maintenance = 0, //维护
  794. hot, //火爆
  795. newServer, //新服
  796. }
  797. export enum RankType {
  798. stageRanking = 1,
  799. powerRanking,
  800. heroRanking,
  801. eliteRanking,
  802. }
  803. export enum Ranking {
  804. first,
  805. second,
  806. third,
  807. }