You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.h 15 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. #pragma once
  2. #ifndef CONSTANTS_H
  3. #define CONSTANTS_H
  4. #ifndef SCCI
  5. #define SCCI static const constexpr inline
  6. #endif
  7. #undef GetMessage
  8. #undef SendMessage
  9. #undef PeekMessage
  10. namespace Constants
  11. {
  12. SCCI int32_t frameDuration = 50; // 每帧毫秒数
  13. // 地图相关
  14. SCCI int32_t numOfGridPerCell = 1000; // 单位坐标数
  15. SCCI int32_t rows = 50; // 地图行数
  16. SCCI int32_t cols = 50; // 地图列数
  17. SCCI int32_t numOfClassroom = 10; // 教室数量
  18. SCCI int32_t numOfChest = 8; // 宝箱数量
  19. SCCI int32_t maxClassroomProgress = 10000000; // 教室最大进度
  20. SCCI int32_t maxDoorProgress = 10000000; // 开关门最大进度
  21. SCCI int32_t maxChestProgress = 10000000; // 宝箱最大进度
  22. SCCI int32_t maxGateProgress = 18000; // 大门最大进度
  23. SCCI int32_t numOfRequiredClassroomForGate = 7; // 打开大门需要完成的教室数量
  24. SCCI int32_t numOfRequiredClassroomForHiddenGate = 3; // 打开隐藏门需要完成的教室数量
  25. // 人物属性相关
  26. SCCI int32_t basicEncourageSpeed = 100;
  27. SCCI int32_t basicFixSpeed = 123;
  28. SCCI int32_t basicSpeedOfOpeningOrLocking = 5000;
  29. SCCI int32_t basicStudentSpeedOfClimbingThroughWindows = 1222;
  30. SCCI int32_t basicTrickerSpeedOfClimbingThroughWindows = 2540;
  31. SCCI int32_t basicSpeedOfOpenChest = 1250;
  32. SCCI int32_t basicHp = 3000000;
  33. SCCI int32_t basicMaxGamingAddiction = 60000;
  34. SCCI int32_t basicEncouragementDegree = 1500000;
  35. SCCI int32_t basicTimeOfRouse = 1000;
  36. SCCI int32_t basicStudentSpeed = 3000;
  37. SCCI int32_t basicTrickerSpeed = 3600;
  38. SCCI double basicConcealment = 1;
  39. SCCI int32_t basicStudentAlertnessRadius = 15 * numOfGridPerCell;
  40. SCCI int32_t basicTrickerAlertnessRadius = 17 * numOfGridPerCell;
  41. SCCI int32_t basicStudentViewRange = 10 * numOfGridPerCell;
  42. SCCI int32_t basicTrickerViewRange = 13 * numOfGridPerCell;
  43. SCCI int32_t PinningDownRange = 5 * numOfGridPerCell;
  44. SCCI int32_t maxNumOfProp = 3; // 人物道具栏容量
  45. // 攻击相关
  46. SCCI int32_t basicApOfTricker = 1500000;
  47. SCCI int32_t basicCD = 3000; // 初始子弹冷却
  48. SCCI int32_t basicCastTime = 500; // 基本前摇时间
  49. SCCI int32_t basicBackswing = 800; // 基本后摇时间
  50. SCCI int32_t basicRecoveryFromHit = 3700; // 基本命中攻击恢复时长
  51. SCCI int32_t basicStunnedTimeOfStudent = 4300;
  52. SCCI int32_t basicBulletMoveSpeed = 7400; // 基本子弹移动速度
  53. SCCI double basicRemoteAttackRange = 6000; // 基本远程攻击范围
  54. SCCI double basicAttackShortRange = 2200; // 基本近程攻击范围
  55. SCCI double basicBulletBombRange = 2000; // 基本子弹爆炸范围
  56. // 道具相关
  57. SCCI int32_t apPropAdd = basicApOfTricker * 12 / 10;
  58. SCCI int32_t apSpearAdd = basicApOfTricker * 6 / 10;
  59. // 职业相关
  60. struct Assassin
  61. {
  62. SCCI int32_t moveSpeed = basicTrickerSpeed * 11 / 10;
  63. SCCI double concealment = 1.5;
  64. SCCI int32_t alertnessRadius = basicTrickerAlertnessRadius * 13 / 10;
  65. SCCI int32_t viewRange = basicTrickerViewRange * 12 / 10;
  66. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  67. SCCI int32_t speedOfClimbingThroughWindows = basicTrickerSpeedOfClimbingThroughWindows;
  68. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest;
  69. };
  70. struct Klee
  71. {
  72. SCCI int32_t moveSpeed = basicTrickerSpeed;
  73. SCCI double concealment = 1;
  74. SCCI int32_t alertnessRadius = basicTrickerAlertnessRadius;
  75. SCCI int32_t viewRange = basicTrickerViewRange;
  76. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  77. SCCI int32_t speedOfClimbingThroughWindows = basicTrickerSpeedOfClimbingThroughWindows;
  78. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest * 11 / 10;
  79. };
  80. struct ANoisyPerson
  81. {
  82. SCCI int32_t moveSpeed = (int32_t)(basicTrickerSpeed * 1.07);
  83. SCCI double concealment = 0.8;
  84. SCCI int32_t alertnessRadius = basicTrickerAlertnessRadius * 9 / 10;
  85. SCCI int32_t viewRange = basicTrickerViewRange;
  86. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  87. SCCI int32_t speedOfClimbingThroughWindows = basicTrickerSpeedOfClimbingThroughWindows * 11 / 10;
  88. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest * 11 / 10;
  89. };
  90. struct Idol
  91. {
  92. SCCI int32_t moveSpeed = basicTrickerSpeed;
  93. SCCI double concealment = 0.75;
  94. SCCI int32_t alertnessRadius = basicTrickerAlertnessRadius;
  95. SCCI int32_t viewRange = basicTrickerViewRange * 11 / 10;
  96. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  97. SCCI int32_t speedOfClimbingThroughWindows = basicTrickerSpeedOfClimbingThroughWindows;
  98. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest;
  99. };
  100. struct Athlete
  101. {
  102. SCCI int32_t moveSpeed = basicStudentSpeed * 105 / 100;
  103. SCCI int32_t maxHp = basicHp;
  104. SCCI int32_t maxAddiction = basicMaxGamingAddiction * 9 / 10;
  105. SCCI int32_t fixSpeed = basicFixSpeed * 6 / 10;
  106. SCCI int32_t encourageSpeed = basicEncourageSpeed * 9 / 10;
  107. SCCI double concealment = 0.9;
  108. SCCI int32_t alertnessRadius = basicStudentAlertnessRadius;
  109. SCCI int32_t viewRange = basicStudentViewRange * 11 / 10;
  110. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  111. SCCI int32_t speedOfClimbingThroughWindows = basicStudentSpeedOfClimbingThroughWindows * 12 / 10;
  112. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest;
  113. };
  114. struct Teacher
  115. {
  116. SCCI int32_t moveSpeed = basicStudentSpeed * 9 / 10;
  117. SCCI int32_t maxHp = basicHp * 10;
  118. SCCI int32_t maxAddiction = basicMaxGamingAddiction * 10;
  119. SCCI int32_t fixSpeed = (int32_t)(basicFixSpeed * 50 / 123);
  120. SCCI int32_t encourageSpeed = basicEncourageSpeed * 8 / 10;
  121. SCCI double concealment = 0.5;
  122. SCCI int32_t alertnessRadius = basicStudentAlertnessRadius * 2 / 3;
  123. SCCI int32_t viewRange = basicStudentViewRange * 8 / 10;
  124. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  125. SCCI int32_t speedOfClimbingThroughWindows = (int32_t)(basicStudentSpeedOfClimbingThroughWindows * 1000 / 1222);
  126. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest;
  127. };
  128. struct StraightAStudent
  129. {
  130. SCCI int32_t moveSpeed = basicStudentSpeed * 24 / 25;
  131. SCCI int32_t maxHp = basicHp * 11 / 10;
  132. SCCI int32_t maxAddiction = basicMaxGamingAddiction * 13 / 10;
  133. SCCI int32_t fixSpeed = basicFixSpeed * 11 / 10;
  134. SCCI int32_t encourageSpeed = basicEncourageSpeed;
  135. SCCI double concealment = 0.9;
  136. SCCI int32_t alertnessRadius = basicStudentAlertnessRadius * 9 / 10;
  137. SCCI int32_t viewRange = basicStudentViewRange * 9 / 10;
  138. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  139. SCCI int32_t speedOfClimbingThroughWindows = basicStudentSpeedOfClimbingThroughWindows * 10 / 12;
  140. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest;
  141. };
  142. struct Robot
  143. {
  144. SCCI int32_t moveSpeed = basicStudentSpeed * 9 / 10;
  145. SCCI int32_t maxHp = basicHp * 3 / 10;
  146. SCCI int32_t maxAddiction = basicMaxGamingAddiction * 0;
  147. SCCI int32_t fixSpeed = basicFixSpeed * 7 / 10;
  148. SCCI int32_t encourageSpeed = 0;
  149. SCCI double concealment = 0.8;
  150. SCCI int32_t alertnessRadius = 0;
  151. SCCI int32_t viewRange = 0;
  152. SCCI int32_t speedOfOpeningOrLocking = 0;
  153. SCCI int32_t speedOfClimbingThroughWindows = 1;
  154. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest * 4 / 5;
  155. };
  156. struct TechOtaku
  157. {
  158. SCCI int32_t moveSpeed = (int32_t)(basicStudentSpeed * 0.96);
  159. SCCI int32_t maxHp = basicHp * 9 / 10;
  160. SCCI int32_t maxAddiction = basicMaxGamingAddiction;
  161. SCCI int32_t fixSpeed = (int32_t)(basicFixSpeed * 0.9);
  162. SCCI int32_t encourageSpeed = basicEncourageSpeed;
  163. SCCI double concealment = 1.1;
  164. SCCI int32_t alertnessRadius = basicStudentAlertnessRadius;
  165. SCCI int32_t viewRange = basicStudentViewRange * 9 / 10;
  166. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking;
  167. SCCI int32_t speedOfClimbingThroughWindows = (int32_t)(basicStudentSpeedOfClimbingThroughWindows * 0.9);
  168. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest * 22 / 25;
  169. };
  170. struct Sunshine
  171. {
  172. SCCI int32_t moveSpeed = basicStudentSpeed;
  173. SCCI int32_t maxHp = basicHp * 16 / 15;
  174. SCCI int32_t maxAddiction = basicMaxGamingAddiction * 11 / 10;
  175. SCCI int32_t fixSpeed = basicFixSpeed;
  176. SCCI int32_t encourageSpeed = basicEncourageSpeed * 6 / 5;
  177. SCCI double concealment = 1;
  178. SCCI int32_t alertnessRadius = basicStudentAlertnessRadius;
  179. SCCI int32_t viewRange = basicStudentViewRange;
  180. SCCI int32_t speedOfOpeningOrLocking = basicSpeedOfOpeningOrLocking * 7 / 10;
  181. SCCI int32_t speedOfClimbingThroughWindows = basicStudentSpeedOfClimbingThroughWindows;
  182. SCCI int32_t speedOfOpenChest = basicSpeedOfOpenChest * 9 / 10;
  183. };
  184. // 技能相关
  185. SCCI int32_t maxNumOfSkill = 3;
  186. SCCI int32_t commonSkillCD = 30000; // 普通技能标准冷却时间
  187. SCCI int32_t commonSkillTime = 10000; // 普通技能标准持续时间
  188. SCCI int32_t timeOfTrickerStunnedWhenCharge = 7220;
  189. SCCI int32_t timeOfStudentStunnedWhenCharge = 2090;
  190. SCCI int32_t timeOfTrickerStunnedWhenPunish = 3070;
  191. SCCI int32_t timeOfTrickerSwingingAfterHowl = 800;
  192. SCCI int32_t timeOfStudentStunnedWhenHowl = 5500;
  193. SCCI int32_t timeOfStunnedWhenJumpyDumpty = 3070;
  194. SCCI double addedTimeOfSpeedWhenInspire = 1.6;
  195. SCCI int32_t timeOfAddingSpeedWhenInspire = 6000;
  196. SCCI int32_t addHpWhenEncourage = basicHp / 4;
  197. SCCI int32_t checkIntervalWhenShowTime = 200;
  198. SCCI int32_t addAddictionPer100msWhenShowTime = 300;
  199. struct CanBeginToCharge
  200. {
  201. SCCI int32_t skillCD = commonSkillCD * 2;
  202. SCCI int32_t durationTime = commonSkillTime * 3 / 10;
  203. };
  204. struct BecomeInvisible
  205. {
  206. SCCI int32_t skillCD = commonSkillCD * 4 / 3;
  207. SCCI int32_t durationTime = commonSkillTime;
  208. };
  209. struct Punish
  210. {
  211. SCCI int32_t skillCD = commonSkillCD * 3 / 2;
  212. SCCI int32_t durationTime = commonSkillTime * 0;
  213. };
  214. struct SparksNSplash
  215. {
  216. SCCI int32_t skillCD = commonSkillCD * 3 / 2;
  217. SCCI int32_t durationTime = commonSkillTime * 1;
  218. };
  219. struct HaveTea
  220. {
  221. SCCI int32_t skillCD = commonSkillCD * 3;
  222. SCCI int32_t durationTime = commonSkillTime * 0;
  223. };
  224. struct Rouse
  225. {
  226. SCCI int32_t skillCD = commonSkillCD * 4;
  227. SCCI int32_t durationTime = commonSkillTime * 0;
  228. };
  229. struct Encourage
  230. {
  231. SCCI int32_t skillCD = commonSkillCD * 4;
  232. SCCI int32_t durationTime = commonSkillTime * 0;
  233. };
  234. struct Inspire
  235. {
  236. SCCI int32_t skillCD = commonSkillCD * 4;
  237. SCCI int32_t durationTime = commonSkillTime * 0;
  238. };
  239. struct Howl
  240. {
  241. SCCI int32_t skillCD = commonSkillCD * 25 / 30;
  242. SCCI int32_t durationTime = commonSkillTime * 0;
  243. };
  244. struct ShowTime
  245. {
  246. SCCI int32_t skillCD = commonSkillCD * 8 / 3;
  247. SCCI int32_t durationTime = commonSkillTime * 1;
  248. };
  249. struct JumpyBomb
  250. {
  251. SCCI int32_t skillCD = commonSkillCD / 2;
  252. SCCI int32_t durationTime = commonSkillTime * 3 / 10;
  253. };
  254. struct UseKnife
  255. {
  256. SCCI int32_t skillCD = commonSkillCD * 1;
  257. SCCI int32_t durationTime = commonSkillTime / 10;
  258. };
  259. struct UseRobot
  260. {
  261. SCCI int32_t skillCD = commonSkillCD / 15;
  262. SCCI int32_t durationTime = commonSkillTime * 0;
  263. };
  264. struct WriteAnswers
  265. {
  266. SCCI int32_t skillCD = commonSkillCD * 1;
  267. SCCI int32_t durationTime = commonSkillTime * 0;
  268. };
  269. struct SummonGolem
  270. {
  271. SCCI int32_t skillCD = commonSkillCD * 4 / 3;
  272. SCCI int32_t durationTime = commonSkillTime * 3 / 5;
  273. };
  274. struct CommonAttackOfTricker
  275. {
  276. SCCI double BulletBombRange = 0;
  277. SCCI double BulletAttackRange = basicAttackShortRange;
  278. SCCI int32_t ap = basicApOfTricker;
  279. SCCI int32_t Speed = basicBulletMoveSpeed;
  280. SCCI bool IsRemoteAttack = false;
  281. SCCI int32_t CastTime = (int32_t)BulletAttackRange * 1000 / Speed;
  282. SCCI int32_t Backswing = basicBackswing;
  283. SCCI int32_t RecoveryFromHit = basicRecoveryFromHit;
  284. SCCI int32_t cd = basicBackswing;
  285. SCCI int32_t maxBulletNum = 1;
  286. };
  287. struct FlyingKnife
  288. {
  289. SCCI double BulletBombRange = 0;
  290. SCCI double BulletAttackRange = basicRemoteAttackRange * 13;
  291. SCCI int32_t ap = basicApOfTricker * 4 / 5;
  292. SCCI int32_t Speed = basicBulletMoveSpeed * 25 / 10;
  293. SCCI bool IsRemoteAttack = true;
  294. SCCI int32_t CastTime = basicCastTime * 6 / 5;
  295. SCCI int32_t Backswing = 0;
  296. SCCI int32_t RecoveryFromHit = 0;
  297. SCCI int32_t cd = basicBackswing * 3 / 4;
  298. SCCI int32_t maxBulletNum = 1;
  299. };
  300. struct BombBomb
  301. {
  302. SCCI double BulletBombRange = basicBulletBombRange;
  303. SCCI double BulletAttackRange = basicAttackShortRange;
  304. SCCI int32_t ap = basicApOfTricker * 6 / 5;
  305. SCCI int32_t Speed = basicBulletMoveSpeed * 30 / 37;
  306. SCCI bool IsRemoteAttack = false;
  307. SCCI int32_t CastTime = (int32_t)BulletAttackRange * 1000 / Speed;
  308. SCCI int32_t Backswing = basicBackswing * 3 / 2;
  309. SCCI int32_t RecoveryFromHit = basicRecoveryFromHit;
  310. SCCI int32_t cd = basicCD;
  311. SCCI int32_t maxBulletNum = 1;
  312. };
  313. struct JumpyDumpty
  314. {
  315. SCCI double BulletBombRange = basicBulletBombRange / 2;
  316. SCCI double BulletAttackRange = basicAttackShortRange * 16 / 22;
  317. SCCI int32_t ap = (int32_t)(basicApOfTricker * 0.6);
  318. SCCI int32_t Speed = basicBulletMoveSpeed * 43 / 37;
  319. SCCI bool IsRemoteAttack = false;
  320. };
  321. struct Strike
  322. {
  323. SCCI double BulletBombRange = 0;
  324. SCCI double BulletAttackRange = basicAttackShortRange;
  325. SCCI int32_t ap = basicApOfTricker * 16 / 15;
  326. SCCI int32_t Speed = basicBulletMoveSpeed * 125 / 148;
  327. SCCI bool IsRemoteAttack = false;
  328. SCCI int32_t CastTime = basicCastTime * 16 / 25;
  329. SCCI int32_t Backswing = basicBackswing;
  330. SCCI int32_t RecoveryFromHit = basicRecoveryFromHit;
  331. SCCI int32_t cd = basicBackswing;
  332. SCCI int32_t maxBulletNum = 1;
  333. };
  334. } // namespace Constants
  335. #endif