hoshimi-venus 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/out/concert/concert.d.ts +69 -0
  4. package/out/concert/concert.js +161 -0
  5. package/out/concert/concert.js.map +1 -0
  6. package/out/concert/consts/chart_consts.d.ts +41 -0
  7. package/out/concert/consts/chart_consts.js +65 -0
  8. package/out/concert/consts/chart_consts.js.map +1 -0
  9. package/out/concert/consts/eff_grades.d.ts +1191 -0
  10. package/out/concert/consts/eff_grades.js +221 -0
  11. package/out/concert/consts/eff_grades.js.map +1 -0
  12. package/out/concert/consts/efficacy_list.d.ts +9 -0
  13. package/out/concert/consts/efficacy_list.js +50 -0
  14. package/out/concert/consts/efficacy_list.js.map +1 -0
  15. package/out/concert/efficacy_analyze.d.ts +11 -0
  16. package/out/concert/efficacy_analyze.js +82 -0
  17. package/out/concert/efficacy_analyze.js.map +1 -0
  18. package/out/concert/efficacy_proc.d.ts +0 -0
  19. package/out/concert/efficacy_proc.js +1 -0
  20. package/out/concert/efficacy_proc.js.map +1 -0
  21. package/out/concert/partial/a_migration.d.ts +2 -0
  22. package/out/concert/partial/a_migration.js +36 -0
  23. package/out/concert/partial/a_migration.js.map +1 -0
  24. package/out/concert/partial/actions/action.d.ts +24 -0
  25. package/out/concert/partial/actions/action.js +130 -0
  26. package/out/concert/partial/actions/action.js.map +1 -0
  27. package/out/concert/partial/actions/active_skill_chance_assignment.d.ts +2 -0
  28. package/out/concert/partial/actions/active_skill_chance_assignment.js +14 -0
  29. package/out/concert/partial/actions/active_skill_chance_assignment.js.map +1 -0
  30. package/out/concert/partial/actions/cool_time_increase.d.ts +4 -0
  31. package/out/concert/partial/actions/cool_time_increase.js +43 -0
  32. package/out/concert/partial/actions/cool_time_increase.js.map +1 -0
  33. package/out/concert/partial/actions/cool_time_reduction.d.ts +4 -0
  34. package/out/concert/partial/actions/cool_time_reduction.js +43 -0
  35. package/out/concert/partial/actions/cool_time_reduction.js.map +1 -0
  36. package/out/concert/partial/actions/dance_boost.d.ts +2 -0
  37. package/out/concert/partial/actions/dance_boost.js +35 -0
  38. package/out/concert/partial/actions/dance_boost.js.map +1 -0
  39. package/out/concert/partial/actions/dance_down.d.ts +2 -0
  40. package/out/concert/partial/actions/dance_down.js +35 -0
  41. package/out/concert/partial/actions/dance_down.js.map +1 -0
  42. package/out/concert/partial/actions/dance_up.d.ts +2 -0
  43. package/out/concert/partial/actions/dance_up.js +35 -0
  44. package/out/concert/partial/actions/dance_up.js.map +1 -0
  45. package/out/concert/partial/actions/fix_stamina_recovery.d.ts +2 -0
  46. package/out/concert/partial/actions/fix_stamina_recovery.js +35 -0
  47. package/out/concert/partial/actions/fix_stamina_recovery.js.map +1 -0
  48. package/out/concert/partial/actions/live_ability_cool_time_reduction.d.ts +2 -0
  49. package/out/concert/partial/actions/live_ability_cool_time_reduction.js +14 -0
  50. package/out/concert/partial/actions/live_ability_cool_time_reduction.js.map +1 -0
  51. package/out/concert/partial/actions/stamina_consumption.d.ts +2 -0
  52. package/out/concert/partial/actions/stamina_consumption.js +34 -0
  53. package/out/concert/partial/actions/stamina_consumption.js.map +1 -0
  54. package/out/concert/partial/actions/strength_effect_assignment.d.ts +2 -0
  55. package/out/concert/partial/actions/strength_effect_assignment.js +14 -0
  56. package/out/concert/partial/actions/strength_effect_assignment.js.map +1 -0
  57. package/out/concert/partial/actions/strength_effect_assignment_all.d.ts +2 -0
  58. package/out/concert/partial/actions/strength_effect_assignment_all.js +40 -0
  59. package/out/concert/partial/actions/strength_effect_assignment_all.js.map +1 -0
  60. package/out/concert/partial/actions/strength_effect_count_increase.d.ts +2 -0
  61. package/out/concert/partial/actions/strength_effect_count_increase.js +40 -0
  62. package/out/concert/partial/actions/strength_effect_count_increase.js.map +1 -0
  63. package/out/concert/partial/actions/strength_effect_erasing.d.ts +2 -0
  64. package/out/concert/partial/actions/strength_effect_erasing.js +41 -0
  65. package/out/concert/partial/actions/strength_effect_erasing.js.map +1 -0
  66. package/out/concert/partial/actions/strength_effect_erasing_all.d.ts +2 -0
  67. package/out/concert/partial/actions/strength_effect_erasing_all.js +34 -0
  68. package/out/concert/partial/actions/strength_effect_erasing_all.js.map +1 -0
  69. package/out/concert/partial/actions/strength_effect_migration_before_active_skill.d.ts +2 -0
  70. package/out/concert/partial/actions/strength_effect_migration_before_active_skill.js +47 -0
  71. package/out/concert/partial/actions/strength_effect_migration_before_active_skill.js.map +1 -0
  72. package/out/concert/partial/actions/strength_effect_migration_before_special_skill.d.ts +2 -0
  73. package/out/concert/partial/actions/strength_effect_migration_before_special_skill.js +47 -0
  74. package/out/concert/partial/actions/strength_effect_migration_before_special_skill.js.map +1 -0
  75. package/out/concert/partial/actions/strength_effect_value_increase.d.ts +2 -0
  76. package/out/concert/partial/actions/strength_effect_value_increase.js +55 -0
  77. package/out/concert/partial/actions/strength_effect_value_increase.js.map +1 -0
  78. package/out/concert/partial/actions/target_stamina_recovery.d.ts +2 -0
  79. package/out/concert/partial/actions/target_stamina_recovery.js +36 -0
  80. package/out/concert/partial/actions/target_stamina_recovery.js.map +1 -0
  81. package/out/concert/partial/actions/visual_boost.d.ts +2 -0
  82. package/out/concert/partial/actions/visual_boost.js +35 -0
  83. package/out/concert/partial/actions/visual_boost.js.map +1 -0
  84. package/out/concert/partial/actions/visual_down.d.ts +2 -0
  85. package/out/concert/partial/actions/visual_down.js +35 -0
  86. package/out/concert/partial/actions/visual_down.js.map +1 -0
  87. package/out/concert/partial/actions/visual_up.d.ts +2 -0
  88. package/out/concert/partial/actions/visual_up.js +35 -0
  89. package/out/concert/partial/actions/visual_up.js.map +1 -0
  90. package/out/concert/partial/actions/vocal_boost.d.ts +2 -0
  91. package/out/concert/partial/actions/vocal_boost.js +35 -0
  92. package/out/concert/partial/actions/vocal_boost.js.map +1 -0
  93. package/out/concert/partial/actions/vocal_down.d.ts +2 -0
  94. package/out/concert/partial/actions/vocal_down.js +35 -0
  95. package/out/concert/partial/actions/vocal_down.js.map +1 -0
  96. package/out/concert/partial/actions/vocal_up.d.ts +2 -0
  97. package/out/concert/partial/actions/vocal_up.js +35 -0
  98. package/out/concert/partial/actions/vocal_up.js.map +1 -0
  99. package/out/concert/partial/actions/weakness_effect_inversion.d.ts +2 -0
  100. package/out/concert/partial/actions/weakness_effect_inversion.js +60 -0
  101. package/out/concert/partial/actions/weakness_effect_inversion.js.map +1 -0
  102. package/out/concert/partial/actions/weakness_effect_recovery.d.ts +2 -0
  103. package/out/concert/partial/actions/weakness_effect_recovery.js +34 -0
  104. package/out/concert/partial/actions/weakness_effect_recovery.js.map +1 -0
  105. package/out/concert/partial/apply_continuous_effects.d.ts +2 -0
  106. package/out/concert/partial/apply_continuous_effects.js +22 -0
  107. package/out/concert/partial/apply_continuous_effects.js.map +1 -0
  108. package/out/concert/partial/b_check_existence.d.ts +2 -0
  109. package/out/concert/partial/b_check_existence.js +37 -0
  110. package/out/concert/partial/b_check_existence.js.map +1 -0
  111. package/out/concert/partial/c_check_act_skill_stamina.d.ts +2 -0
  112. package/out/concert/partial/c_check_act_skill_stamina.js +28 -0
  113. package/out/concert/partial/c_check_act_skill_stamina.js.map +1 -0
  114. package/out/concert/partial/d_check_act_skill_cool_time.d.ts +2 -0
  115. package/out/concert/partial/d_check_act_skill_cool_time.js +24 -0
  116. package/out/concert/partial/d_check_act_skill_cool_time.js.map +1 -0
  117. package/out/concert/partial/e_check_act_skill_possibility.d.ts +2 -0
  118. package/out/concert/partial/e_check_act_skill_possibility.js +21 -0
  119. package/out/concert/partial/e_check_act_skill_possibility.js.map +1 -0
  120. package/out/concert/partial/f_determine_act_skill_privilege.d.ts +2 -0
  121. package/out/concert/partial/f_determine_act_skill_privilege.js +28 -0
  122. package/out/concert/partial/f_determine_act_skill_privilege.js.map +1 -0
  123. package/out/concert/partial/handle_combo.d.ts +16 -0
  124. package/out/concert/partial/handle_combo.js +44 -0
  125. package/out/concert/partial/handle_combo.js.map +1 -0
  126. package/out/concert/partial/impl_efficacy.d.ts +7 -0
  127. package/out/concert/partial/impl_efficacy.js +19 -0
  128. package/out/concert/partial/impl_efficacy.js.map +1 -0
  129. package/out/concert/partial/init_concert.d.ts +7 -0
  130. package/out/concert/partial/init_concert.js +114 -0
  131. package/out/concert/partial/init_concert.js.map +1 -0
  132. package/out/concert/partial/perform_beat.d.ts +2 -0
  133. package/out/concert/partial/perform_beat.js +19 -0
  134. package/out/concert/partial/perform_beat.js.map +1 -0
  135. package/out/concert/partial/perform_skill.d.ts +15 -0
  136. package/out/concert/partial/perform_skill.js +166 -0
  137. package/out/concert/partial/perform_skill.js.map +1 -0
  138. package/out/concert/partial/prepare_p_skill.d.ts +5 -0
  139. package/out/concert/partial/prepare_p_skill.js +68 -0
  140. package/out/concert/partial/prepare_p_skill.js.map +1 -0
  141. package/out/concert/partial/rotate_ct.d.ts +2 -0
  142. package/out/concert/partial/rotate_ct.js +24 -0
  143. package/out/concert/partial/rotate_ct.js.map +1 -0
  144. package/out/concert/partial/rotate_remains.d.ts +2 -0
  145. package/out/concert/partial/rotate_remains.js +14 -0
  146. package/out/concert/partial/rotate_remains.js.map +1 -0
  147. package/out/concert/target_analyze.d.ts +4 -0
  148. package/out/concert/target_analyze.js +32 -0
  149. package/out/concert/target_analyze.js.map +1 -0
  150. package/out/concert/target_proc.d.ts +3 -0
  151. package/out/concert/target_proc.js +200 -0
  152. package/out/concert/target_proc.js.map +1 -0
  153. package/out/concert/trigger_analyze.d.ts +4 -0
  154. package/out/concert/trigger_analyze.js +38 -0
  155. package/out/concert/trigger_analyze.js.map +1 -0
  156. package/out/concert/trigger_proc.d.ts +5 -0
  157. package/out/concert/trigger_proc.js +334 -0
  158. package/out/concert/trigger_proc.js.map +1 -0
  159. package/out/database/Card.json +7641 -0
  160. package/out/database/CardParameter.json +4682 -0
  161. package/out/database/CardRarity.json +62 -0
  162. package/out/database/LiveAbility.json +26906 -0
  163. package/out/database/LiveBonus.json +464 -0
  164. package/out/database/LiveBonusGroup.json +466 -0
  165. package/out/database/Music.json +20282 -0
  166. package/out/database/MusicChartPattern.json +99842 -0
  167. package/out/database/Quest.json +95671 -0
  168. package/out/database/Setting.json +280 -0
  169. package/out/database/Skill.json +94030 -0
  170. package/out/database/SkillEfficacy.json +37042 -0
  171. package/out/database/SkillTarget.json +212 -0
  172. package/out/database/SkillTrigger.json +511 -0
  173. package/out/db/dao/card_dao.d.ts +5 -0
  174. package/out/db/dao/card_dao.js +27 -0
  175. package/out/db/dao/card_dao.js.map +1 -0
  176. package/out/db/dao/quest_dao.d.ts +8 -0
  177. package/out/db/dao/quest_dao.js +49 -0
  178. package/out/db/dao/quest_dao.js.map +1 -0
  179. package/out/db/dao/setting_dao.d.ts +3 -0
  180. package/out/db/dao/setting_dao.js +13 -0
  181. package/out/db/dao/setting_dao.js.map +1 -0
  182. package/out/db/dao/skill_dao.d.ts +6 -0
  183. package/out/db/dao/skill_dao.js +42 -0
  184. package/out/db/dao/skill_dao.js.map +1 -0
  185. package/out/db/repository/card_repository.d.ts +6 -0
  186. package/out/db/repository/card_repository.js +39 -0
  187. package/out/db/repository/card_repository.js.map +1 -0
  188. package/out/db/repository/quest_repository.d.ts +2 -0
  189. package/out/db/repository/quest_repository.js +17 -0
  190. package/out/db/repository/quest_repository.js.map +1 -0
  191. package/out/db/repository/setting_repository.d.ts +2 -0
  192. package/out/db/repository/setting_repository.js +9 -0
  193. package/out/db/repository/setting_repository.js.map +1 -0
  194. package/out/db/repository/skill_repository.d.ts +2 -0
  195. package/out/db/repository/skill_repository.js +31 -0
  196. package/out/db/repository/skill_repository.js.map +1 -0
  197. package/out/db/wrapper/card_wrapper.d.ts +2 -0
  198. package/out/db/wrapper/card_wrapper.js +30 -0
  199. package/out/db/wrapper/card_wrapper.js.map +1 -0
  200. package/out/db/wrapper/quest_wrapper.d.ts +2 -0
  201. package/out/db/wrapper/quest_wrapper.js +47 -0
  202. package/out/db/wrapper/quest_wrapper.js.map +1 -0
  203. package/out/db/wrapper/skill_wrapper.d.ts +5 -0
  204. package/out/db/wrapper/skill_wrapper.js +34 -0
  205. package/out/db/wrapper/skill_wrapper.js.map +1 -0
  206. package/out/index.d.ts +3 -0
  207. package/out/index.js +18 -0
  208. package/out/index.js.map +1 -0
  209. package/out/main.d.ts +1 -0
  210. package/out/main.js +67 -0
  211. package/out/main.js.map +1 -0
  212. package/out/satomi/card.d.ts +4 -0
  213. package/out/satomi/card.js +36 -0
  214. package/out/satomi/card.js.map +1 -0
  215. package/out/satomi/deck.d.ts +3 -0
  216. package/out/satomi/deck.js +28 -0
  217. package/out/satomi/deck.js.map +1 -0
  218. package/out/satomi/live.d.ts +4 -0
  219. package/out/satomi/live.js +14 -0
  220. package/out/satomi/live.js.map +1 -0
  221. package/out/types/card_types.d.ts +40 -0
  222. package/out/types/card_types.js +3 -0
  223. package/out/types/card_types.js.map +1 -0
  224. package/out/types/concert_types.d.ts +134 -0
  225. package/out/types/concert_types.js +3 -0
  226. package/out/types/concert_types.js.map +1 -0
  227. package/out/types/misc_types.d.ts +15 -0
  228. package/out/types/misc_types.js +3 -0
  229. package/out/types/misc_types.js.map +1 -0
  230. package/out/types/proto/proto_api.d.ts +4353 -0
  231. package/out/types/proto/proto_api.js +4 -0
  232. package/out/types/proto/proto_api.js.map +1 -0
  233. package/out/types/proto/proto_enum.d.ts +1607 -0
  234. package/out/types/proto/proto_enum.js +1744 -0
  235. package/out/types/proto/proto_enum.js.map +1 -0
  236. package/out/types/proto/proto_master.d.ts +1963 -0
  237. package/out/types/proto/proto_master.js +4 -0
  238. package/out/types/proto/proto_master.js.map +1 -0
  239. package/out/types/proto/proto_transaction.d.ts +395 -0
  240. package/out/types/proto/proto_transaction.js +4 -0
  241. package/out/types/proto/proto_transaction.js.map +1 -0
  242. package/out/types/trans_types.d.ts +23 -0
  243. package/out/types/trans_types.js +3 -0
  244. package/out/types/trans_types.js.map +1 -0
  245. package/out/types/wap/card_waps.d.ts +9 -0
  246. package/out/types/wap/card_waps.js +3 -0
  247. package/out/types/wap/card_waps.js.map +1 -0
  248. package/out/types/wap/misc_waps.d.ts +11 -0
  249. package/out/types/wap/misc_waps.js +3 -0
  250. package/out/types/wap/misc_waps.js.map +1 -0
  251. package/out/types/wap/quest_waps.d.ts +12 -0
  252. package/out/types/wap/quest_waps.js +3 -0
  253. package/out/types/wap/quest_waps.js.map +1 -0
  254. package/out/types/wap/skill_waps.d.ts +24 -0
  255. package/out/types/wap/skill_waps.js +3 -0
  256. package/out/types/wap/skill_waps.js.map +1 -0
  257. package/out/utils/calc_utils.d.ts +20 -0
  258. package/out/utils/calc_utils.js +137 -0
  259. package/out/utils/calc_utils.js.map +1 -0
  260. package/out/utils/chart_utils.d.ts +49 -0
  261. package/out/utils/chart_utils.js +218 -0
  262. package/out/utils/chart_utils.js.map +1 -0
  263. package/out/utils/console_utils.d.ts +1 -0
  264. package/out/utils/console_utils.js +9 -0
  265. package/out/utils/console_utils.js.map +1 -0
  266. package/out/utils/skill_utils.d.ts +9 -0
  267. package/out/utils/skill_utils.js +86 -0
  268. package/out/utils/skill_utils.js.map +1 -0
  269. package/package.json +32 -0
@@ -0,0 +1,3 @@
1
+ import { LiveDeck } from "../types/card_types";
2
+ import { TransDeck } from "../types/trans_types";
3
+ export declare function getLiveDeck(transDeck: TransDeck, transOpntDeck?: TransDeck): LiveDeck;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLiveDeck = void 0;
4
+ const chart_utils_1 = require("../utils/chart_utils");
5
+ const card_1 = require("./card");
6
+ function getLiveDeck(transDeck, transOpntDeck) {
7
+ const liveDeck = {
8
+ isBattle: false,
9
+ liveCards: transDeck.transCards.map(it => ({
10
+ index: it.index,
11
+ liveCard: (0, card_1.getLiveCard)(it.card)
12
+ })),
13
+ getCard: chart_utils_1.getCardByIndex
14
+ };
15
+ if (transOpntDeck) {
16
+ liveDeck.isBattle = true;
17
+ transOpntDeck.transCards.forEach(it => {
18
+ liveDeck.liveCards.push({
19
+ index: it.index,
20
+ liveCard: (0, card_1.getLiveCard)(it.card)
21
+ });
22
+ });
23
+ }
24
+ liveDeck.liveCards.sort((a, b) => a.index - b.index);
25
+ return liveDeck;
26
+ }
27
+ exports.getLiveDeck = getLiveDeck;
28
+ //# sourceMappingURL=deck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deck.js","sourceRoot":"","sources":["../../satomi/deck.ts"],"names":[],"mappings":";;;AAEA,sDAAqD;AACrD,iCAAoC;AAEpC,SAAgB,WAAW,CACzB,SAAoB,EACpB,aAAyB;IAEzB,MAAM,QAAQ,GAAa;QACzB,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACzC,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,QAAQ,EAAE,IAAA,kBAAW,EAAC,EAAE,CAAC,IAAI,CAAC;SAC/B,CAAC,CAAC;QACH,OAAO,EAAE,4BAAc;KACxB,CAAA;IACD,IAAI,aAAa,EAAE;QACjB,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAA;QACxB,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;YACpC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC;gBACtB,KAAK,EAAE,EAAE,CAAC,KAAK;gBACf,QAAQ,EAAE,IAAA,kBAAW,EAAC,EAAE,CAAC,IAAI,CAAC;aAC/B,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;KACH;IACD,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;IACpD,OAAO,QAAQ,CAAA;AACjB,CAAC;AAvBD,kCAuBC"}
@@ -0,0 +1,4 @@
1
+ import { LiveDeck } from "../types/card_types";
2
+ import { Live } from "../types/concert_types";
3
+ import { WapQuest } from "../types/wap/quest_waps";
4
+ export declare function getLive(quest: WapQuest, deck: LiveDeck, isBattle: boolean): Live;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLive = void 0;
4
+ function getLive(quest, deck, isBattle) {
5
+ // TODO: implement exSkills
6
+ return {
7
+ isBattle: isBattle,
8
+ quest: quest,
9
+ liveDeck: deck,
10
+ charts: [],
11
+ };
12
+ }
13
+ exports.getLive = getLive;
14
+ //# sourceMappingURL=live.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live.js","sourceRoot":"","sources":["../../satomi/live.ts"],"names":[],"mappings":";;;AAIA,SAAgB,OAAO,CACrB,KAAe,EACf,IAAc,EACd,QAAiB;IAEjB,2BAA2B;IAC3B,OAAO;QACL,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;KACX,CAAA;AACH,CAAC;AAZD,0BAYC"}
@@ -0,0 +1,40 @@
1
+ import { WapCard } from "./wap/card_waps";
2
+ import { WapSkillLevel } from "./wap/skill_waps";
3
+ export declare type LiveDeck = {
4
+ isBattle: boolean;
5
+ liveCards: {
6
+ index: number;
7
+ liveCard: LiveCard;
8
+ }[];
9
+ getCard: (index: number) => LiveCard;
10
+ };
11
+ export declare type LiveCard = UserCard & {
12
+ readonly deckVocal: number;
13
+ readonly deckDance: number;
14
+ readonly deckVisual: number;
15
+ readonly deckStamina: number;
16
+ readonly deckMental: number;
17
+ readonly deckTechnique: number;
18
+ isArbitrary: boolean;
19
+ audienceAmount?: number;
20
+ };
21
+ export declare type UserCard = WapCard & {
22
+ level: number;
23
+ rarity: number;
24
+ vocal: number;
25
+ dance: number;
26
+ visual: number;
27
+ stamina: number;
28
+ mental: number;
29
+ technique: number;
30
+ skillLevel1: number;
31
+ skillLevel2: number;
32
+ skillLevel3: number;
33
+ skills: {
34
+ index: number;
35
+ skill: WapSkillLevel;
36
+ }[];
37
+ liveAbilityLevel?: number;
38
+ activityAbilityLevel?: number;
39
+ getSkill: (index: number) => WapSkillLevel;
40
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=card_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card_types.js","sourceRoot":"","sources":["../../types/card_types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,134 @@
1
+ import { SkillEfficacyType, MusicChartType, SkillFailureType } from "./proto/proto_enum";
2
+ import { LiveCard, LiveDeck } from "./card_types";
3
+ import { WapLiveBeat } from "./wap/misc_waps";
4
+ import { WapQuest } from "./wap/quest_waps";
5
+ import { WapSkillLevel } from "./wap/skill_waps";
6
+ export declare type Live = {
7
+ charts: Chart[];
8
+ quest: WapQuest;
9
+ liveDeck: LiveDeck;
10
+ isBattle: boolean;
11
+ };
12
+ export declare type Chart = {
13
+ chartType: MusicChartType;
14
+ sequence: number;
15
+ actPosition: number;
16
+ cardStatuses: CardStatus[];
17
+ userStatuses: UserStatus[];
18
+ beats?: WapLiveBeat[];
19
+ stageSkillStatuses?: StageSkillStatus[];
20
+ actSkill?: ActSkill;
21
+ actPSkills: ActSkill[];
22
+ failureFlag?: SkillFailureType;
23
+ getCardStatus: (this: Chart, index: number) => CardStatus;
24
+ getUserStatus: (this: Chart, index: number) => UserStatus;
25
+ getStageStatus: (this: Chart, cardIndex: number, skillIndex: number) => StageSkillStatus | undefined;
26
+ };
27
+ export declare type CardStatus = {
28
+ cardIndex: number;
29
+ vocal: number;
30
+ dance: number;
31
+ visual: number;
32
+ stamina: number;
33
+ technique: number;
34
+ mental: number;
35
+ skillStatuses: SkillStatus[];
36
+ effects: Effect[];
37
+ getSkillStatus: (this: CardStatus, index: number) => SkillStatus;
38
+ /**
39
+ * Get all specified type `Effect`s in this CardStatus.
40
+ * By default zero-remaining effects will be ignored.
41
+ */
42
+ getEffects: (this: CardStatus, type: SkillEfficacyType, needZeroRemain?: boolean) => Effect[];
43
+ /**
44
+ * Get sum of specified type effect grades.
45
+ * If this CardStatus doesn't possess the effect, 0 will be returned.
46
+ */
47
+ getEffectSumGrade: (this: CardStatus, type: SkillEfficacyType) => number;
48
+ /**
49
+ * Get sum of specified type effect grade.
50
+ * If the grade exceeds maxGrade, maxGrade will be returned.
51
+ * 🚨CAUTION: If given `type` is not belong to `StrengthList`,
52
+ * maxGrade exceeding check will not be performed and sumGrade
53
+ * will be returned instead.
54
+ */
55
+ getEffectSumOrMaxGrade: (this: CardStatus, type: SkillEfficacyType) => number;
56
+ /**
57
+ * Get and calculate effect value of specified type.
58
+ * If the grade exceeds maxGrade, maxGrade will be used to calculate.
59
+ * If the type is not belong to `StrengthList`, always returns 0.
60
+ */
61
+ getEffectValue: (this: CardStatus, type: SkillEfficacyType) => number;
62
+ /**
63
+ * Apply all attribute-related effects, calculate sum of their permils, then return that sum.
64
+ * Note exceeding grades will be excluded.
65
+ */
66
+ getBuffedPermil: (this: CardStatus, type: "dance" | "vocal" | "visual") => number;
67
+ /**
68
+ * Refreshes property of given `type` in this `CardStatus`.
69
+ * If efficacy's grade reaches its maxGrade, exceeding grades will be ignored.
70
+ */
71
+ refreshParam: (this: CardStatus, card: LiveCard, type: "dance" | "vocal" | "visual") => void;
72
+ refreshAllParam: (this: CardStatus, card: LiveCard) => void;
73
+ };
74
+ export declare type ConcertSkill = WapSkillLevel & {
75
+ deckPosition: number;
76
+ skillIndex: number;
77
+ isFirstTime: boolean;
78
+ isOpponentSide: boolean;
79
+ };
80
+ export declare type UserStatus = {
81
+ userIndex: number;
82
+ combo: number;
83
+ };
84
+ export declare type SkillStatus = {
85
+ skillIndex: number;
86
+ coolTime: number;
87
+ remainCount: number;
88
+ initCount: number;
89
+ used: boolean;
90
+ hasTimes: () => boolean;
91
+ };
92
+ export declare type StageSkillStatus = SkillStatus & {
93
+ userIndex: number;
94
+ cardIndex: number;
95
+ };
96
+ export declare type DetEffect = {
97
+ efficacyType: SkillEfficacyType;
98
+ grade: number;
99
+ value: number;
100
+ isInstant: boolean;
101
+ ajusted?: boolean;
102
+ };
103
+ export declare type Effect = DetEffect & {
104
+ remain: number;
105
+ maxGrade: number;
106
+ include: boolean;
107
+ id: string;
108
+ sourceIndex: number;
109
+ sourceSkillIndex: number;
110
+ };
111
+ export declare type EfficacyDetail = {
112
+ name: string;
113
+ description: string;
114
+ grade: number;
115
+ maxGrade: number;
116
+ efficacyIndex: number;
117
+ efficacyType: SkillEfficacyType;
118
+ targetIndexes?: number[];
119
+ value?: number;
120
+ };
121
+ export declare type ActSkill = {
122
+ cardIndex: number;
123
+ skillIndex: number;
124
+ order: number;
125
+ stamina: number;
126
+ details: EfficacyDetail[];
127
+ isCritical: boolean;
128
+ isComboBreak: boolean;
129
+ score?: number;
130
+ };
131
+ export declare type Actable = {
132
+ index: number;
133
+ skills: number[];
134
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=concert_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concert_types.js","sourceRoot":"","sources":["../../types/concert_types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { Accessory } from "./proto/proto_master";
2
+ import { WapPhotoAbility } from "./wap/misc_waps";
3
+ export declare type Equipment = {
4
+ wapPhotos: UserPhoto[];
5
+ accessories: Accessory[];
6
+ };
7
+ export declare type UserPhoto = {
8
+ photoId: string;
9
+ name: string;
10
+ rarity: number;
11
+ level: number;
12
+ abilities: WapPhotoAbility[];
13
+ focusCharacterId: string;
14
+ photoRecipeId: string;
15
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=misc_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc_types.js","sourceRoot":"","sources":["../../types/misc_types.ts"],"names":[],"mappings":""}