Enum.ts 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  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. ball = 110002, //祖玛球
  96. activation = 110005, //活跃点
  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. skillCD, //技能CD
  260. skillHurt, //技能伤害
  261. attackCritGetHp, //物理攻击暴击吸血
  262. hurtRateChange, //最终伤害比例改变
  263. }
  264. export enum BUFF_EFFECT_TYPE {
  265. boss = 1, //buff产生的数值对boss的效果比例
  266. immune, //一段时间内免疫某个技能伤害
  267. addHpByAttack, //万分比生命值的额外加血量
  268. changeSpineAttack, //修改spine攻击动作
  269. immuneNegative, //免疫负面效果
  270. normalSkill, //对普通技能产生效果
  271. specialSkill, //对必杀技能产生效果
  272. }
  273. export enum NEGATIVE_TYPE {
  274. delay = 1, //晕眩
  275. slow, //减速
  276. back, //击退
  277. }
  278. export enum BUFF_ANI_TYPE {
  279. delay = 1001, //晕眩
  280. slow = 1002, //减速
  281. }
  282. export enum CARD_CAST_AREA {
  283. fullScreen, //全屏
  284. radius, //椭圆
  285. rect, //矩形
  286. }
  287. export enum START_POS {
  288. role, //人物枪口
  289. straightFall, //从天上垂直下落
  290. obliqueFall, //从天上斜向下落
  291. leftScreen, //屏幕左边
  292. areaCenter, //预警中心
  293. fightCenter, //战场中心
  294. base, //基地
  295. }
  296. export enum CARD_END_POS {
  297. none, //暂无
  298. random, //范围内随机位置
  299. rowCol, //N行N列
  300. role, //角色位置
  301. rightScreen, //屏幕右边
  302. }
  303. //卡牌技能每一次施放的对象类型
  304. export enum CARD_MORE_DIR {
  305. one2One = 1, //一次对一个对象
  306. one2All, //一次对技能配置多个对象
  307. noOne, //没有对象,直接按开始点施放
  308. }
  309. //特效名称
  310. export enum FRAME_ANI_NAME {
  311. normalHurt = 101, //通用受击
  312. gangtiexiaBulletSign = 102, //钢铁侠技能子弹标记
  313. energe = 50701, //卡牌能量灌注
  314. lightLine = 50901, //闪链电特效
  315. }
  316. //缩放类型
  317. export enum GAME_SCALE_TYPE {
  318. spine = 0, //spine比例
  319. skillHit, //命中自身技能比例
  320. }
  321. //缩放类型
  322. export enum ROLE_HEIGHT_TYPE {
  323. foot = 1, //脚底
  324. center, //中心
  325. head, //头部
  326. }
  327. export enum ANI_TYPE {
  328. frameAni = 1,
  329. action,
  330. shader,
  331. }
  332. //受击特效类型
  333. export enum HIT_ANI_TYPE {
  334. role = 0,
  335. floor,
  336. }
  337. //----------------战斗-----------------
  338. export enum Language {
  339. en = 'en',
  340. zh = 'zh',
  341. }
  342. export enum ENTRY {
  343. HP = 1, //血量
  344. attack, //物理攻击
  345. spellAttack, //法术攻击
  346. defense, //物理防御
  347. spellDefense, //法术防御
  348. attackCrit, //暴击率
  349. critNum, //暴击伤害
  350. hit, //命中
  351. dodge, //闪避,
  352. attackSpeed, //攻速
  353. moveSpeed, //移速
  354. realAttack, //真实攻击
  355. addRoleHP, //增加单体生命值 单角色+
  356. talAddHP, //天赋提供的生命值 所有角色+(普通天赋激活的生命值*万分比)
  357. talAddattack, // 天赋提供的攻击力 所有角色+(普通天赋激活的攻击力*万分比)=
  358. talAddspellAttack, // 天赋提供的法术攻击 所有角色+(普通天赋激活的法术攻击*万分比)
  359. talAdddefense, // 天赋提供的防御 所有角色+(普通天赋激活的防御*万分比)
  360. talAddspellDefense, // 天赋提供的法术防御 所有角色+(普通天赋激活的法术防御*万分比)
  361. equipAddAttack, // 装备基础攻击力 当前装备+(装备提供的攻击力*万分比)
  362. talAddAllDefense, // +法术防御和物理防御
  363. HPRate, //血量 单角色+万分比
  364. attackRate, //物理攻击 单角色+万分比
  365. spellAttackRate, //法术攻击 单角色+万分比
  366. defenseRate, //物理防御 单角色+万分比
  367. spellDefenseRate, //法术防御 单角色+万分比
  368. attackCritRate, //暴击率 单角色+万分比
  369. critNumRate, //暴击伤害 单角色+万分比
  370. hitRate, //命中 单角色+万分比
  371. dodgeRate, //闪避, 单角色+万分比
  372. attackSpeedRate, //攻速 单角色+万分比
  373. moveSpeedRate, //移速 单角色+万分比
  374. realAttackRate, //真实攻击 单角色+万分比
  375. ignoreDefense = 50, //忽略防御
  376. hurt2HP, //普攻伤害转化生命值
  377. addHealing, //治疗效果提升
  378. addBabyHP, //召唤物生命值
  379. skillHurtRate, //加技能伤害倍率
  380. skillCD, //技能冷却CD
  381. createBackCost, //召唤返费
  382. hurtRebound, //受伤反弹
  383. hurtReduce, //受伤减少固定值 大于0的值
  384. healing2Shield, //受治疗溢出转化护盾
  385. startShieldHP, //出场自带生命护盾
  386. boosHurt, //对精英/首领伤害
  387. moreThanHPAttr, //血量>提高属性
  388. belowHPAttr, //血量<提高属性
  389. skillRestoreHP, //释放技能回复生命
  390. delayReduce, //受控时间减少
  391. delayAdd, //控制时间延长
  392. startCostAdd, //战斗初始费点增加
  393. addBabyAttack, //召唤物物理法术攻击力
  394. healingMore, //受到治疗效果增加
  395. textShow = 1000, //文本显示
  396. }
  397. export enum LANGUAGE_TYPE {
  398. none = '',
  399. HP = 't1001', //血量
  400. attack = 't1002', //物理攻击
  401. defense = 't1003', //法术防御
  402. spellAttack = 't1004', //法术攻击
  403. spellDefense = 't1005', //法术防御
  404. attackCrit = 't1006', //暴击
  405. critNum = 't1007', //暴击伤害
  406. hit = 't1008', //命中
  407. dodge = 't1009', //闪避
  408. attackSpeed = 't1010', //攻击速度
  409. moveSpeed = 't1011', //移速
  410. realAttack = 't1012', //真实攻击
  411. attackRange = 't1013', //攻击范围
  412. attackCD = 't1014', //攻击CD
  413. warrior = 't1051', //战士
  414. mage = 't1052', //法师
  415. assassin = 't1053', //刺客
  416. archer = 't1054', //射手
  417. normal = 't1081', //普通
  418. excellent = 't1082', //优秀
  419. rare = 't1083', //稀有
  420. elite = 't1084', //精英
  421. legend = 't1085', //传奇
  422. mythology = 't1086', //神话
  423. weapons = 't1111', //武器
  424. jewelry = 't1112', //饰品
  425. bracers = 't1113', //腰带
  426. clothes = 't1114', //衣服
  427. belt = 't1115', //裤子
  428. pants = 't1116', //鞋子
  429. heroIsUpReset = 't801', //当前英雄处于上阵中,是否继续重置该英雄?
  430. equipIsUpReset = 't802', //当前装备穿戴在英雄身上,是否继续重置该装备?
  431. dailyDeposit = 't505', //充值
  432. payFailed = 't507', //支付失败
  433. payCancel = 't507', //支付取消
  434. buildingMaterials = 't509', //建筑材料
  435. activityLevel = 't302', //战令活动等级
  436. copySuccess = 't307', //复制成功
  437. buyHeroTokenExp = 't318', //是否花费钻石购买战勋经验立即解锁奖励
  438. castle = 't326', //城堡
  439. loggingYard = 't327', //木场
  440. goldMine = 't328', //金矿
  441. farm = 't329', //农场
  442. mine = 't330', //铁矿
  443. maxInputLimit = 't333', //输入字符过多
  444. minInputLimit = 't334', //输入字符过少
  445. successfully = 't341', //修改成功
  446. specificSymbol = 't342', //不能输入特殊字符
  447. summoning = 't346', //英雄召唤
  448. forging = 't347', //装备锻造
  449. commonHero = 't356', //普通英雄
  450. excellentHero = 't357', //优秀英雄
  451. rareHero = 't358', //稀有英雄
  452. eliteHero = 't359', //精英英雄
  453. skillFragment = 't361', //综合概率
  454. commonEquip = 't363', //普通装备
  455. excellentEquip = 't364', //优秀装备
  456. rareEquip = 't365', //精良装备
  457. eliteEquip = 't366', //稀有装备
  458. legendaryEquip = 't367', //传说装备
  459. tokenLevelMax = 't368', //战令等级提升至最高
  460. onlyEliteBattlefield = 't377', //只可上阵精英级以上的英雄角色
  461. onlyReplaceHero = 't378', //只能置换精英级以上的英雄
  462. notOwnedHero = 't379', //当前未拥有可以上阵的精英级英雄
  463. clearCD = 't382', //清除CD
  464. notOwnedQualityHero = 't385', //未拥有对应品级的英雄
  465. exchangeSuccess = 't387', //置换成功
  466. notOwnedQualityEquip = 't388', //未拥有对应品级的装备
  467. onlyReplaceEquip = 't389', //置换成功
  468. shortageMaterial = 't390', //置换材料不足
  469. purchased = 't393', //已购买
  470. notReset = 't395', //在祭坛中、不能重置
  471. limitedNum = 't399', //限制#0次
  472. changeNameCD = 't400', //修改昵称冷却中
  473. autoBreakTip = 't37', //自动突破精英以下品质的角色
  474. needBreakTip = 't44', //需要#0个<color=#1>#2</c>
  475. remain = 't406', //剩余时间\n
  476. all = 't62', //全部
  477. confirm = 't6', //确定
  478. unlockLastTalent = 't76', //请解锁前置天赋
  479. lvUnlock = 't23', //等级#0解锁
  480. levelStage = 't416', //等级#0(关卡)#1
  481. lvOpen = 't77', //队伍等级#0开启
  482. waveFightTip = 't79', //一大波怪物来袭
  483. bossFightTip = 't80', //boss来袭
  484. whichDay = 't415', //第几天
  485. free = 't422', //免费
  486. days = 't423', //天
  487. hour = 't424', //小时
  488. min = 't425', //分钟
  489. purchaseStamina = 't419', //购买体力
  490. purchaseCoins = 't427', //购买金币
  491. lvMax = 't82', //等级上限
  492. teamLevel = 't428', //队伍等级#0开启#1
  493. normalBarrier = 't429', //通关#0开启#1
  494. createRoleDay = 't430', //第#0天开启#1
  495. dailyGift = 't624', //每日礼包
  496. weeklyGift = 't625', //每周礼包
  497. noviceGift = 't626', //新手礼包
  498. dailyPurchase = 't433', //每日购买
  499. weeklyPurchase = 't439', //每周购买
  500. novicePurchase = 't440', //新手购买
  501. soldOut = 't434', //售尽
  502. readyBuyTime = 't437', //有余次购买次数
  503. noBuyTime = 't438', //没有购买次数
  504. resetTimes = 't107', //重置次数
  505. resetTime = 't87', //重置时间
  506. relicLevel = 't115', //遗迹关卡
  507. d = 't117', //天
  508. h = 't118', //时
  509. m = 't119', //分
  510. s = 't120', //秒
  511. dailyCoin = 't126', //日常金币
  512. dailyExp = 't127', //日常经验
  513. dailyCard = 't128', //日常卡牌技能经验
  514. loading = 't131', //加载中
  515. connectServer = 't132', //连接服务器中
  516. loadingNum = 't133', //载入中......#0
  517. hotUpdate = 't134', //资源更新中...
  518. netCut = 't136', //网络请求超时\,请您检测网络状况重新登陆
  519. preCompletion = 't124', //通关上一难度解锁
  520. received = 't392', //收到(奖励)
  521. growthInfo = 't1800', //队伍等级达到#0级
  522. adventureInfo = 't1801', //通关主线关卡[#0]
  523. eliteInfo = 't1802', //通关精英关卡[#0]
  524. forgeInfo = 't453', //锻造#0次
  525. summonInfo = 't454', //召唤#0次
  526. sureResetRelic = 't138', //是否重置当前遗迹进度?
  527. relicResetCD = 't139', //遗迹探索CD冷却中,无法重置!
  528. relicMaxLayer = 't141', //当前已是最高层
  529. isVacant = 't418', //虚位以待
  530. freeHas = 't420', //拥有免费次数(体力&金币)
  531. purchaseHas = 't421', //拥有购买次数(体力&金币)
  532. freeDone = 't455', //免费次数用尽(体力&金币)
  533. purchaseDone = 't456', //购买次数用尽(体力&金币)
  534. notOpen = 't149', //暂未开放
  535. agreeTip = 't150', //请勾选同意用户协议和隐私政策
  536. rules = 't109', //规则
  537. userAgreement = 't151', //用户协议
  538. policy = 't152', //隐私政策
  539. agreementContent = 't4100', //用户协议内容
  540. policyContent = 't4101', //隐私政策内容
  541. loginIng = 't153', //正在登录中
  542. killBaseTip = 't154', //摧毁敌方基地
  543. bossTip = 't155', //击败BOSS并且摧毁地方基地
  544. autoBreakEquipTip = 't156', //自动突破精英以下品质的装备
  545. serverConnect = 't157', //服务器链接成功
  546. serverCut = 't158', //服务器链接断开
  547. httpFail = 't159', //链接失败,请检查网络重试:#0
  548. httpTimeout = 't160', //网络请求超时,请检查联网状态后重试
  549. needUpgrade = 't161', //需要升级
  550. updating = 't162', //正在更新中,请耐心等待
  551. updateFail = 't163', //热更新失败
  552. materialsLimit = 't164', //材料达到上限
  553. materialsNeed = 't165', //材料不足,无法突破
  554. professionEquip = 't166', //当前英雄职业无法穿戴该装备!
  555. slotLock = 't167', //当前槽位未解锁
  556. sameRoleOrCard = 't168', //不能上阵两个同名卡
  557. samePos = 't169', //不能重复上阵
  558. costAdd = 't170', //能量点+
  559. materialsLvUp = 't171', //当前材料已升级,是否继续合成?
  560. maxLevel = 'e101303', //等级达到上限,提升队伍等级或突破进阶可提升等级上限!
  561. maxStar = 'e101300', //达到最大突破等级
  562. needGoods = 'e101203', //道具不足
  563. on = 't516', //开
  564. off = 't517', //关
  565. magicBullet = 't512', //魔法炮弹
  566. buildingLv = 't515', //建筑等级#0解锁
  567. magicMaxLv = 't518', //魔法等级不能超过队伍等级
  568. explore = 't520', //#0探索
  569. canReceive = 't524', //可领取
  570. gotoUpgrade = 't530', //前往升级
  571. buildRule = 't506', //建筑规则
  572. castleSkillRule = 't531', //城堡技能规则
  573. exploreRule = 't532', //探索规则
  574. notExploreTimes = 't533', //探索次数不足
  575. rechargeCD = 't539', //充能CD
  576. rechargeNum = 't540', //充能数量
  577. inRecharge = 't542', //魔法炮弹充能中...
  578. chooseServer = 't549', //请选择服务器
  579. serverMaintenance = 't550', //服务器维护中
  580. explain = 't226', //说明
  581. specialEnemy = 't551', //特殊敌人
  582. star = 't552', //星
  583. upRole = 't553', //请前往队伍界面上阵英雄
  584. adNotInit = 't555', //广告正在初始化...
  585. adLoading = 't556', //广告正在准备中...
  586. rank = 't561', //第#0名
  587. }
  588. export enum TIMESTAMP_TYPE {
  589. day = 86400, //一天的秒数
  590. hour = 3600, //一小时的秒数
  591. minute = 60, //一分钟的秒数
  592. }
  593. export enum DIS_ID {
  594. fatigue = 1, //体力
  595. maxLv = 2, //data1:建筑存储资源时间(单位/H) data2:账号创建时获得初始资源奖励ID data3:版本当前最大等级上限(队伍等级) data3:战斗加多少秒能量点
  596. heroSlot = 3, //英雄槽位
  597. cardSlot = 4, //卡牌技能槽位
  598. heroQuality = 5, //英雄阶级
  599. freeStamina = 7, //免费体力
  600. buyStamina = 8, //购买体力
  601. freeCoin = 9, //免费金币
  602. buyCoin = 10, //购买金币
  603. gameSpeed = 11, //游戏加速
  604. heroToken = 12, //活动战令是否开启等
  605. heroTokenData = 13, //活动战令消耗数据等
  606. normalSummon = 14, //普通召唤
  607. rareSummon = 15, //高级召唤
  608. equipSummon = 16, //装备锻造
  609. adFreeTime = 19, //广告冷却时间
  610. language = 21, //多语言
  611. relicTime = 22, //遗迹战令
  612. relicCost = 24, //遗迹费点
  613. altar = 34, //祭坛
  614. altarHero = 35, //祭坛英雄数据
  615. altarEquip = 36, //祭坛装备数据
  616. altarHeroMax = 37, //祭坛英雄免费置换次数
  617. altarEquipMax = 38, //祭坛装备免费置换次数
  618. dailyIns = 45, //日常副本
  619. onlineIdx1 = 49, //在线奖励挡位1
  620. onlineIdx2 = 50, //在线奖励挡位2
  621. onlineIdx3 = 51, //在线奖励挡位3
  622. onlineIdx4 = 52, //在线奖励挡位4
  623. onlineIdx5 = 53, //在线奖励挡位5
  624. onlineIdx6 = 54, //在线奖励挡位6
  625. castleSkill = 57, //城堡技能
  626. explore = 58, //探索
  627. exploreSlot = 59, //探索槽位
  628. launchLottery = 71, //开服宝藏
  629. thousandSign = 73, //千抽计费
  630. }
  631. export enum PREFAB_TYPE {
  632. goods = 'goods', //道具 游戏内所有物品包括货币英雄卡牌道具
  633. card = 'card', //技能卡牌
  634. cardDebris = 'cardDebris', //技能卡牌碎片
  635. role = 'role', //英雄
  636. equip = 'equip', //装备
  637. }
  638. export enum CONDITION_FUNC {
  639. none, //无条件
  640. teamLevel, //队伍等级
  641. normalBarrier, //主线关卡通关数
  642. createRoleDay, //创建角色天数
  643. eliteBarrier, //精英关卡通关数
  644. }
  645. export enum STATE {
  646. undo, //未完成
  647. ready, //完成未领取
  648. done, //完成已领取
  649. }
  650. export enum MOD {
  651. daily = 1001, //日常
  652. events = 1002, //活动
  653. challenge = 1003, //挑战
  654. elite = 2001, //精英关卡
  655. dailyStore = 2002, //每日商店
  656. relicStore = 2003, //遗迹商店
  657. equipGet = 2004, //装备锻造
  658. giftStore = 2005, //礼包商店
  659. dailyGift = 2006, //每日礼包
  660. weekGift = 2007, //每周礼包
  661. noviceGift = 2008, //新手礼包
  662. resourceStore = 2009, //钻石商店
  663. chapterGift = 2010, //章节礼包
  664. privilegeCard = 2011, //特权卡
  665. gameADCost = 2012, //游戏看广告加能量点
  666. doubleADGameReward = 2013, //双倍结算广告奖励
  667. castleSkill = 2014, //主城魔法炮弹
  668. explore = 2015, //探索
  669. speedGame = 2016, //战斗加速
  670. levelGift = 2017, //等级礼包
  671. fatigueBuy = 3000, //体力购买
  672. moneyBuy = 3001, //金币购买
  673. advancedCharge = 3002, //进阶首充
  674. luxuryCharge = 3003, //豪华首充
  675. }
  676. export type MOD_UI = MOD | UI
  677. export enum RELIC_EVENT {
  678. normal = 1, //普通关卡
  679. elite, //精英关卡
  680. defense, //驻军关卡
  681. swipe, //许愿池-事件
  682. gemBox, //钻石宝箱-事件
  683. randomBox, //随机宝箱-事件
  684. boss, //守关boss关卡
  685. }
  686. export enum RELIC_EVENT_NTY {
  687. fight = 2,
  688. swipe = 3,
  689. buff = 4,
  690. }
  691. export enum DIFF_LEVEL {
  692. normal = 't98', //普通
  693. hard = 't99', //困难
  694. elite = 't100', //精英
  695. master = 't101', //大师
  696. epic = 't102', //史诗
  697. nightmare = 't103', //噩梦
  698. }
  699. export enum SPEND_TYPE {
  700. adFree, //广告免费
  701. recharge, //计费点
  702. resource, //资源消耗
  703. }
  704. export enum LIMIT_TYPE {
  705. free, //不限购
  706. daily, //每日限购
  707. weekly, //每周限购
  708. }
  709. export enum SHOP_TYPE {
  710. gift = 1, //礼包
  711. daily, //每日
  712. resource, //资源
  713. relic, //积分
  714. }
  715. export enum HERO_TOKEN_TYPE {
  716. braveToken = 0, //勇者令
  717. strongToken = 1, //强者令
  718. kingToken = 2, //王者令
  719. }
  720. export enum GIFT_ID {
  721. strongToken = 50001, //强者令礼包
  722. kingToken = 50002, //王者令礼包
  723. normalCharge = 50045, //普通首充
  724. advancedCharge = 50046, //进阶首充
  725. luxuryCharge = 50047, //豪华首充
  726. relicToken = 50050, //遗迹高级礼包
  727. }
  728. //活动类型
  729. export enum ACTIVITY_TYPE {
  730. chapterGift = 2010, //冒险礼包
  731. adCard = 2012, //广告卡
  732. monthlyCard = 2013, //月卡
  733. supremeCard = 2014, //至尊卡
  734. dailyRecharge = 2015, //连续充值
  735. levelGift = 2017, //等级礼包
  736. normalCharge = 54, //普通首充
  737. advancedCharge = 3002, //进阶首充
  738. luxuryCharge = 3003, //豪华首充
  739. growthFund = 3006, //成长基金
  740. adventureFund = 3007, //冒险基金
  741. eliteFund = 3008, //精英基金
  742. summonFund = 3009, //召唤基金
  743. forgeFund = 3010, //锻造基金
  744. heroRank = 4001, //英雄排名
  745. stageRank = 4002, //闯关排名
  746. powerRank = 4003, //战力排名
  747. eliteRank = 4004, //精英排名
  748. launchLottery = 4005, //开服宝藏
  749. }
  750. //抽奖类型
  751. export enum RECRUIT_TYPE { //列表类型
  752. summoning = 0, //英雄抽卡
  753. forging = 1, //武器鍛造
  754. }
  755. export enum BASIC_NUMBER { //基数转换
  756. convertNum100 = 100, //用于金钱额度的除数
  757. }
  758. //说明引导类型
  759. export enum GUIDE_TYPE {
  760. game = 201, //战斗
  761. build, //建筑
  762. winType, //胜利条件
  763. monster, //特殊怪物
  764. }
  765. export enum LOGIN_TYPE {
  766. test = 0, //测试
  767. guest = 1, //游客
  768. facebook = 2, //facebook
  769. google = 3, //google
  770. }
  771. //广告位ID
  772. export enum AD_ID {
  773. gold = 99900, //看广告购买金币
  774. tili, //购买体力
  775. energy, //战斗看广告恢复能量
  776. dailyshop, //每日商店看广告购买商品
  777. dailygift, //每日礼包商店看广告商品
  778. weeklygift, //每周礼包商店看广告商品
  779. summoning, //英雄召唤看广告
  780. forging, //装备锻造看广告
  781. coincopy, //金币每日副本看广告
  782. expcopy, //经验每日副本看广告
  783. skillcopy, //技能每日副本看广告
  784. firstpass, //关卡首通双倍看广告
  785. gamespeed, //游戏速度双倍看广告
  786. }
  787. export enum CHANNEL {
  788. none = '',
  789. googleplay = 'googleplay', //谷歌商店
  790. yfy = 'yfy', //云飞扬
  791. }
  792. export enum TASK_TYPE {
  793. daily = 1, //日常
  794. weekly, //周常
  795. achievement, //成就
  796. mainQuest, //主线任务
  797. }
  798. export enum SERVER_STATE {
  799. maintenance = 0, //维护
  800. hot, //火爆
  801. newServer, //新服
  802. }
  803. export enum RankType {
  804. stageRanking = 1,
  805. powerRanking,
  806. heroRanking,
  807. eliteRanking,
  808. }
  809. export enum Ranking {
  810. first,
  811. second,
  812. third,
  813. }