ConstGame.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace ET.Server
  5. {
  6. public static class PLAYER
  7. {
  8. public const int initLevel = 1;
  9. public const int initSp = 5000;
  10. public const int initGold = 0; // 1000000;
  11. public const int initTicket = 0; // 1000000;
  12. public const int initPrimaryDiamond = 0;
  13. public const int initDiamond = 0; // 1000000;
  14. public const int initEnergy = 1000;
  15. public const int initFriendly = 0;
  16. public const int initVip = 0;
  17. public const int initHp = 999999;
  18. public const int initMp = 999999;
  19. public const int initPrestige = 0;
  20. public const int initCharm = 100;
  21. public const int maxNum = 4; // 最多角色数量
  22. }
  23. public static class DouyinConst
  24. {
  25. /** 小程序 ID **/
  26. public const string Appid = "tt1f2a69978016076d10";
  27. /** 小程序的 APP Secret,可以在开发者后台获取 **/
  28. public const string Secret = "0a2d84c09dcab30b26a82da1c93da78544ad6f6e";
  29. /** 推送回调验签 **/
  30. public const string SignatureSecret = "oumuamua410";
  31. /** POST 获取开放能力接口的调用凭证 **/
  32. public const string GetAccessTokenUrl = "https://developer.toutiao.com/api/apps/v2/token";
  33. /** POST 获取直播间信息 **/
  34. public const string GetLiveInfoUrl = "https://webcast.bytedance.com/api/webcastmate/info";
  35. /** POST 礼物置顶 **/
  36. public const string TopGiftUrl = "https://webcast.bytedance.com/api/gift/top_gift";
  37. /** POST 启动抖音推送回调任务 **/
  38. public const string StartTaskUrl = "https://webcast.bytedance.com/api/live_data/task/start";
  39. /** POST 停止抖音推送回调任务 **/
  40. public const string StopTaskUrl = "https://webcast.bytedance.com/api/live_data/task/stop";
  41. /** GET 查询任务状态 **/
  42. public const string CheckTaskUrl = "https://webcast.bytedance.com/api/live_data/task/get";
  43. }
  44. public static class DouyinItem
  45. {
  46. /** 1抖:仙女棒 **/
  47. public const string GiftId_1 = "n1/Dg1905sj1FyoBlQBvmbaDZFBNaKuKZH6zxHkv8Lg5x2cRfrKUTb8gzMs=";
  48. /** 10抖:能力药丸 **/
  49. public const string GiftId_10 = "28rYzVFNyXEXFC8HI+f/WG+I7a6lfl3OyZZjUS+CVuwCgYZrPrUdytGHu0c=";
  50. /** 52抖:甜甜圈 **/
  51. public const string GiftId_52 = "PJ0FFeaDzXUreuUBZH6Hs+b56Jh0tQjrq0bIrrlZmv13GSAL9Q1hf59fjGk=";
  52. /** 99抖:能量电池 **/
  53. public const string GiftId_99 = "IkkadLfz7O/a5UR45p/OOCCG6ewAWVbsuzR/Z+v1v76CBU+mTG/wPjqdpfg=";
  54. /** 199抖:恶魔炸弹 **/
  55. public const string GiftId_199 = "gx7pmjQfhBaDOG2XkWI2peZ66YFWkCWRjZXpTqb23O/epru+sxWyTV/3Ufs=";
  56. /** 520抖:神秘空投 **/
  57. public const string GiftId_520 = "pGLo7HKNk1i4djkicmJXf6iWEyd+pfPBjbsHmd3WcX0Ierm2UdnRR7UINvI=";
  58. public static Dictionary<string, int> GiftHash = new() {
  59. { DouyinItem.GiftId_1, 1 },
  60. { DouyinItem.GiftId_10, 2 },
  61. { DouyinItem.GiftId_52, 3 },
  62. { DouyinItem.GiftId_99, 4 },
  63. { DouyinItem.GiftId_199, 5 },
  64. { DouyinItem.GiftId_520, 6 }
  65. };
  66. }
  67. /** 通知战斗事件信息 */
  68. public static class NotifyBSName
  69. {
  70. // public const string ZoneFlagNotify = "ZoneFlagNotifyR2B";
  71. public const string TriggerEvent = "TriggerEventR2B";
  72. }
  73. /// <summary>
  74. /// 性别类型
  75. /// </summary>
  76. public enum SexType: byte
  77. {
  78. Man = 0,
  79. Woman = 1,
  80. }
  81. /// <summary>
  82. /// 职业类型
  83. /// </summary>
  84. public enum PlayerProType: byte
  85. {
  86. /** 通用 **/
  87. COMMON = 0,
  88. /** 苍刃 **/
  89. CANG_LANG = 1,
  90. /** 御剑 **/
  91. YU_JIAN = 2,
  92. /** 剑仙 **/
  93. YI_XIAN = 3,
  94. /** 神剑 **/
  95. SHEN_JIAN = 4,
  96. /** 道灵 **/
  97. LI_NHU = 5,
  98. }
  99. /// <summary>
  100. /// 出生类型
  101. /// </summary>
  102. public enum BORN_TYPE
  103. {
  104. HISTORY = 0,
  105. NORMAL = 1,
  106. BORN = 2,
  107. HISTORY_Dungeon_ReLogin = 3,
  108. }
  109. public enum AreaForce
  110. {
  111. None = 0,
  112. MONSTER = 1,
  113. FORCEA = 2,
  114. FORCEB = 3,
  115. }
  116. /// <summary>
  117. /// 地图玩法类型
  118. /// </summary>
  119. public enum MapType
  120. {
  121. /** 无 **/
  122. None = 0,
  123. /** 主城|野外 **/
  124. NORMAL = 1,
  125. /** 副本 **/
  126. FIGHT_LEVEL = 2,
  127. // >100属于跨服地图玩法
  128. /** 跨服野外场景 **/
  129. CROSS_NORMAL = 101,
  130. }
  131. /// <summary>
  132. /// 进入场景时候情况区分
  133. /// </summary>
  134. public enum ENTER_TYPE: byte
  135. {
  136. /** 默认 **/
  137. NONE = 0,
  138. /** 重连 **/
  139. RE_LOGIN = 1,
  140. /** 场景人数已满,踢出场景 **/
  141. SCENE_PLAYER_MAX = 2,
  142. }
  143. public enum ENTER_STATE
  144. {
  145. /** 切场景 **/
  146. changeArea = 1,
  147. /** 登陆游戏 **/
  148. online = 2,
  149. }
  150. public enum PkModel
  151. {
  152. /** PVP-PKModel表格 和平不攻击任何玩家*/
  153. Peace = 0,
  154. /** 和平不攻击任何玩家*/
  155. Justice = 1,
  156. /** 只攻击黑黄红名玩家*/
  157. Force = 2,
  158. /** 只攻击非本仙盟玩家*/
  159. Guild = 3,
  160. /** 只攻击非本队伍玩家*/
  161. Team = 4,
  162. /** 只攻击非本服玩家*/
  163. Server = 5,
  164. /** 攻击所有玩家*/
  165. All = 6,
  166. }
  167. /**
  168. * 技能类型
  169. */
  170. public enum SkillType
  171. {
  172. /** 主动技能 **/
  173. ACTIVE = 1,
  174. /** 宠物给主人增加的 **/
  175. PET_GIVE_ACTIVE = 2,
  176. /** 普攻 **/
  177. NORMAL = 3,
  178. /** 玩家被动 **/
  179. PLAYER_PASSIVE = 4,
  180. /** 宠物 给人的被动 **/
  181. PET_GIVE_PASSIVE = 5,
  182. CARD_SKILL = 6,
  183. }
  184. /**
  185. * 0:回城复活;1:原地复活;2:出生点复活;3:复活点复活;4:技能复活;5.随机点复活
  186. */
  187. public enum ReliveType
  188. {
  189. /** 回城复活 */
  190. CITY = 0,
  191. /** 原地复活 */
  192. NOW = 1,
  193. /** 出生点复活 */
  194. BORN = 2,
  195. /** 复活点复活 */
  196. PLACE = 3,
  197. /** 技能复活 */
  198. SKILL = 4,
  199. /** 随机点复活 */
  200. RANDOM = 5,
  201. }
  202. public enum PlayerBtlData
  203. {
  204. [Display(Name = "生命")]
  205. MaxHP = 1,
  206. [Display(Name = "生命%")]
  207. HPPer = 2,
  208. [Display(Name = "攻击")]
  209. Attack = 3,
  210. [Display(Name = "攻击%")]
  211. AttackPer = 4,
  212. [Display(Name = "防御")]
  213. Def = 5,
  214. [Display(Name = "防御%")]
  215. DefPer = 6,
  216. [Display(Name = "穿透")]
  217. IgnoreDefense = 7,
  218. [Display(Name = "穿透%")]
  219. IgnoreDefensePer = 8,
  220. [Display(Name = "暴击率")]
  221. CritRate = 9,
  222. [Display(Name = "抗暴")]
  223. ResCrit = 10,
  224. [Display(Name = "抗暴% ")]
  225. ResCritPer = 11,
  226. [Display(Name = "抗暴率")]
  227. ResCritRate = 12,
  228. [Display(Name = "暴击伤害%")]
  229. CritDamage = 13,
  230. [Display(Name = "暴伤抵御%")]
  231. CritDamageRes = 14,
  232. [Display(Name = "玩家间伤害增加%")]
  233. IncAllDamage = 15, // 玩家之间
  234. [Display(Name = "玩家间伤害减免%")]
  235. AllDamageReduce = 16, // 玩家之间
  236. [Display(Name = "韧性%")]
  237. CtrlTimeReduce = 17,
  238. [Display(Name = "冷却缩减%")]
  239. SkillCD = 18,
  240. [Display(Name = "生命恢复")]
  241. HPRegen = 19,
  242. [Display(Name = "银两掉落")]
  243. ExdGold = 20, //--
  244. [Display(Name = "杀怪经验")]
  245. ExdExp = 21, //--
  246. [Display(Name = "恢复生命")]
  247. HPRecover = 22, //--废弃了,用HPRegen
  248. [Display(Name = "恢复生命%")]
  249. HPRecoverPer = 23, //--
  250. [Display(Name = "治疗效果")]
  251. HealEffect = 24,
  252. [Display(Name = "被治疗效果")]
  253. HealedEffect = 25,
  254. [Display(Name = "移动速度")]
  255. RunSpeed = 26, // 移动速度加成百分比, moveSpeed基础移速
  256. [Display(Name = "技能加成%")]
  257. SkillDamage = 27,
  258. [Display(Name = "攻击速度")]
  259. AttackSpeed = 28,
  260. [Display(Name = "控制增幅%")]
  261. ControlUp = 29,
  262. [Display(Name = "金属性攻击")]
  263. GoldAttack = 30,
  264. [Display(Name = "金属性防御")]
  265. GoldDefense = 31,
  266. [Display(Name = "木属性攻击")]
  267. WoodAttack = 32,
  268. [Display(Name = "木属性防御")]
  269. WoodDefense = 33,
  270. [Display(Name = "水属性攻击")]
  271. WaterAttack = 34,
  272. [Display(Name = "水属性防御")]
  273. WaterDefense = 35,
  274. [Display(Name = "火属性攻击")]
  275. FireAttack = 36,
  276. [Display(Name = "火属性防御")]
  277. FireDefense = 37,
  278. [Display(Name = "土属性攻击")]
  279. SoilAttack = 38,
  280. [Display(Name = "土属性防御")]
  281. SoilDefense = 39,
  282. [Display(Name = "对boss额外暴击率")]
  283. ToBossCritRate = 40,
  284. [Display(Name = "对boss额外暴击伤害")]
  285. ToBossCritDamage = 41,
  286. [Display(Name = "金克制")]
  287. GoldRestraint = 42,
  288. [Display(Name = "木克制")]
  289. WoodRestraint = 43,
  290. [Display(Name = "水克制")]
  291. WaterRestraint = 44,
  292. [Display(Name = "火克制")]
  293. FireRestraint = 45,
  294. [Display(Name = "土克制")]
  295. SoilRestraint = 46,
  296. [Display(Name = "金抵御")]
  297. GoldResist = 47,
  298. [Display(Name = "木抵御")]
  299. WoodResist = 48,
  300. [Display(Name = "水抵御")]
  301. WaterResist = 49,
  302. [Display(Name = "火抵御")]
  303. FireResist = 50,
  304. [Display(Name = "土抵御")]
  305. SoilResist = 51,
  306. [Display(Name = "杀意值")]
  307. PvpKillValue = 52,
  308. [Display(Name = "妖气等级")]
  309. YaoQiLevel = 53,
  310. [Display(Name = "普攻吸血")]
  311. NormalAtkLeech = 54,
  312. [Display(Name = "技能吸血")]
  313. ActiveAtkLeech = 55,
  314. [Display(Name = "神器主属性伤害加成")]
  315. ArtifactMainPer = 56,
  316. [Display(Name = "怪物伤害增益%")]
  317. FieldBossDamageAdd = 57, // Map表有areaType,副本,野外地图类型区分
  318. [Display(Name = "怪物伤害减免%")]
  319. DungeonMonsterDamageAdd = 58, // 2021.3.30修改,含义以备注为准
  320. [Display(Name = "杀意等级")]
  321. PvpKillLevel = 59,
  322. [Display(Name = "七杀克制")]
  323. MonsterRestraint1 = 60,
  324. [Display(Name = "离明克制")]
  325. MonsterRestraint2 = 61,
  326. [Display(Name = "夜耀克制")]
  327. MonsterRestraint3 = 62,
  328. [Display(Name = "昌曲克制")]
  329. MonsterRestraint4 = 63,
  330. [Display(Name = "沧海克制")]
  331. MonsterRestraint5 = 64,
  332. [Display(Name = "所有伤害加成")]
  333. AllAtak = 65,
  334. [Display(Name = "所有伤害抵御")]
  335. AllDef = 66,
  336. }
  337. }