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.
- package/LICENSE +201 -0
- package/README.md +17 -0
- package/out/concert/concert.d.ts +69 -0
- package/out/concert/concert.js +161 -0
- package/out/concert/concert.js.map +1 -0
- package/out/concert/consts/chart_consts.d.ts +41 -0
- package/out/concert/consts/chart_consts.js +65 -0
- package/out/concert/consts/chart_consts.js.map +1 -0
- package/out/concert/consts/eff_grades.d.ts +1191 -0
- package/out/concert/consts/eff_grades.js +221 -0
- package/out/concert/consts/eff_grades.js.map +1 -0
- package/out/concert/consts/efficacy_list.d.ts +9 -0
- package/out/concert/consts/efficacy_list.js +50 -0
- package/out/concert/consts/efficacy_list.js.map +1 -0
- package/out/concert/efficacy_analyze.d.ts +11 -0
- package/out/concert/efficacy_analyze.js +82 -0
- package/out/concert/efficacy_analyze.js.map +1 -0
- package/out/concert/efficacy_proc.d.ts +0 -0
- package/out/concert/efficacy_proc.js +1 -0
- package/out/concert/efficacy_proc.js.map +1 -0
- package/out/concert/partial/a_migration.d.ts +2 -0
- package/out/concert/partial/a_migration.js +36 -0
- package/out/concert/partial/a_migration.js.map +1 -0
- package/out/concert/partial/actions/action.d.ts +24 -0
- package/out/concert/partial/actions/action.js +130 -0
- package/out/concert/partial/actions/action.js.map +1 -0
- package/out/concert/partial/actions/active_skill_chance_assignment.d.ts +2 -0
- package/out/concert/partial/actions/active_skill_chance_assignment.js +14 -0
- package/out/concert/partial/actions/active_skill_chance_assignment.js.map +1 -0
- package/out/concert/partial/actions/cool_time_increase.d.ts +4 -0
- package/out/concert/partial/actions/cool_time_increase.js +43 -0
- package/out/concert/partial/actions/cool_time_increase.js.map +1 -0
- package/out/concert/partial/actions/cool_time_reduction.d.ts +4 -0
- package/out/concert/partial/actions/cool_time_reduction.js +43 -0
- package/out/concert/partial/actions/cool_time_reduction.js.map +1 -0
- package/out/concert/partial/actions/dance_boost.d.ts +2 -0
- package/out/concert/partial/actions/dance_boost.js +35 -0
- package/out/concert/partial/actions/dance_boost.js.map +1 -0
- package/out/concert/partial/actions/dance_down.d.ts +2 -0
- package/out/concert/partial/actions/dance_down.js +35 -0
- package/out/concert/partial/actions/dance_down.js.map +1 -0
- package/out/concert/partial/actions/dance_up.d.ts +2 -0
- package/out/concert/partial/actions/dance_up.js +35 -0
- package/out/concert/partial/actions/dance_up.js.map +1 -0
- package/out/concert/partial/actions/fix_stamina_recovery.d.ts +2 -0
- package/out/concert/partial/actions/fix_stamina_recovery.js +35 -0
- package/out/concert/partial/actions/fix_stamina_recovery.js.map +1 -0
- package/out/concert/partial/actions/live_ability_cool_time_reduction.d.ts +2 -0
- package/out/concert/partial/actions/live_ability_cool_time_reduction.js +14 -0
- package/out/concert/partial/actions/live_ability_cool_time_reduction.js.map +1 -0
- package/out/concert/partial/actions/stamina_consumption.d.ts +2 -0
- package/out/concert/partial/actions/stamina_consumption.js +34 -0
- package/out/concert/partial/actions/stamina_consumption.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_assignment.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_assignment.js +14 -0
- package/out/concert/partial/actions/strength_effect_assignment.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_assignment_all.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_assignment_all.js +40 -0
- package/out/concert/partial/actions/strength_effect_assignment_all.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_count_increase.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_count_increase.js +40 -0
- package/out/concert/partial/actions/strength_effect_count_increase.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_erasing.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_erasing.js +41 -0
- package/out/concert/partial/actions/strength_effect_erasing.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_erasing_all.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_erasing_all.js +34 -0
- package/out/concert/partial/actions/strength_effect_erasing_all.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_migration_before_active_skill.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_migration_before_active_skill.js +47 -0
- package/out/concert/partial/actions/strength_effect_migration_before_active_skill.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_migration_before_special_skill.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_migration_before_special_skill.js +47 -0
- package/out/concert/partial/actions/strength_effect_migration_before_special_skill.js.map +1 -0
- package/out/concert/partial/actions/strength_effect_value_increase.d.ts +2 -0
- package/out/concert/partial/actions/strength_effect_value_increase.js +55 -0
- package/out/concert/partial/actions/strength_effect_value_increase.js.map +1 -0
- package/out/concert/partial/actions/target_stamina_recovery.d.ts +2 -0
- package/out/concert/partial/actions/target_stamina_recovery.js +36 -0
- package/out/concert/partial/actions/target_stamina_recovery.js.map +1 -0
- package/out/concert/partial/actions/visual_boost.d.ts +2 -0
- package/out/concert/partial/actions/visual_boost.js +35 -0
- package/out/concert/partial/actions/visual_boost.js.map +1 -0
- package/out/concert/partial/actions/visual_down.d.ts +2 -0
- package/out/concert/partial/actions/visual_down.js +35 -0
- package/out/concert/partial/actions/visual_down.js.map +1 -0
- package/out/concert/partial/actions/visual_up.d.ts +2 -0
- package/out/concert/partial/actions/visual_up.js +35 -0
- package/out/concert/partial/actions/visual_up.js.map +1 -0
- package/out/concert/partial/actions/vocal_boost.d.ts +2 -0
- package/out/concert/partial/actions/vocal_boost.js +35 -0
- package/out/concert/partial/actions/vocal_boost.js.map +1 -0
- package/out/concert/partial/actions/vocal_down.d.ts +2 -0
- package/out/concert/partial/actions/vocal_down.js +35 -0
- package/out/concert/partial/actions/vocal_down.js.map +1 -0
- package/out/concert/partial/actions/vocal_up.d.ts +2 -0
- package/out/concert/partial/actions/vocal_up.js +35 -0
- package/out/concert/partial/actions/vocal_up.js.map +1 -0
- package/out/concert/partial/actions/weakness_effect_inversion.d.ts +2 -0
- package/out/concert/partial/actions/weakness_effect_inversion.js +60 -0
- package/out/concert/partial/actions/weakness_effect_inversion.js.map +1 -0
- package/out/concert/partial/actions/weakness_effect_recovery.d.ts +2 -0
- package/out/concert/partial/actions/weakness_effect_recovery.js +34 -0
- package/out/concert/partial/actions/weakness_effect_recovery.js.map +1 -0
- package/out/concert/partial/apply_continuous_effects.d.ts +2 -0
- package/out/concert/partial/apply_continuous_effects.js +22 -0
- package/out/concert/partial/apply_continuous_effects.js.map +1 -0
- package/out/concert/partial/b_check_existence.d.ts +2 -0
- package/out/concert/partial/b_check_existence.js +37 -0
- package/out/concert/partial/b_check_existence.js.map +1 -0
- package/out/concert/partial/c_check_act_skill_stamina.d.ts +2 -0
- package/out/concert/partial/c_check_act_skill_stamina.js +28 -0
- package/out/concert/partial/c_check_act_skill_stamina.js.map +1 -0
- package/out/concert/partial/d_check_act_skill_cool_time.d.ts +2 -0
- package/out/concert/partial/d_check_act_skill_cool_time.js +24 -0
- package/out/concert/partial/d_check_act_skill_cool_time.js.map +1 -0
- package/out/concert/partial/e_check_act_skill_possibility.d.ts +2 -0
- package/out/concert/partial/e_check_act_skill_possibility.js +21 -0
- package/out/concert/partial/e_check_act_skill_possibility.js.map +1 -0
- package/out/concert/partial/f_determine_act_skill_privilege.d.ts +2 -0
- package/out/concert/partial/f_determine_act_skill_privilege.js +28 -0
- package/out/concert/partial/f_determine_act_skill_privilege.js.map +1 -0
- package/out/concert/partial/handle_combo.d.ts +16 -0
- package/out/concert/partial/handle_combo.js +44 -0
- package/out/concert/partial/handle_combo.js.map +1 -0
- package/out/concert/partial/impl_efficacy.d.ts +7 -0
- package/out/concert/partial/impl_efficacy.js +19 -0
- package/out/concert/partial/impl_efficacy.js.map +1 -0
- package/out/concert/partial/init_concert.d.ts +7 -0
- package/out/concert/partial/init_concert.js +114 -0
- package/out/concert/partial/init_concert.js.map +1 -0
- package/out/concert/partial/perform_beat.d.ts +2 -0
- package/out/concert/partial/perform_beat.js +19 -0
- package/out/concert/partial/perform_beat.js.map +1 -0
- package/out/concert/partial/perform_skill.d.ts +15 -0
- package/out/concert/partial/perform_skill.js +166 -0
- package/out/concert/partial/perform_skill.js.map +1 -0
- package/out/concert/partial/prepare_p_skill.d.ts +5 -0
- package/out/concert/partial/prepare_p_skill.js +68 -0
- package/out/concert/partial/prepare_p_skill.js.map +1 -0
- package/out/concert/partial/rotate_ct.d.ts +2 -0
- package/out/concert/partial/rotate_ct.js +24 -0
- package/out/concert/partial/rotate_ct.js.map +1 -0
- package/out/concert/partial/rotate_remains.d.ts +2 -0
- package/out/concert/partial/rotate_remains.js +14 -0
- package/out/concert/partial/rotate_remains.js.map +1 -0
- package/out/concert/target_analyze.d.ts +4 -0
- package/out/concert/target_analyze.js +32 -0
- package/out/concert/target_analyze.js.map +1 -0
- package/out/concert/target_proc.d.ts +3 -0
- package/out/concert/target_proc.js +200 -0
- package/out/concert/target_proc.js.map +1 -0
- package/out/concert/trigger_analyze.d.ts +4 -0
- package/out/concert/trigger_analyze.js +38 -0
- package/out/concert/trigger_analyze.js.map +1 -0
- package/out/concert/trigger_proc.d.ts +5 -0
- package/out/concert/trigger_proc.js +334 -0
- package/out/concert/trigger_proc.js.map +1 -0
- package/out/database/Card.json +7641 -0
- package/out/database/CardParameter.json +4682 -0
- package/out/database/CardRarity.json +62 -0
- package/out/database/LiveAbility.json +26906 -0
- package/out/database/LiveBonus.json +464 -0
- package/out/database/LiveBonusGroup.json +466 -0
- package/out/database/Music.json +20282 -0
- package/out/database/MusicChartPattern.json +99842 -0
- package/out/database/Quest.json +95671 -0
- package/out/database/Setting.json +280 -0
- package/out/database/Skill.json +94030 -0
- package/out/database/SkillEfficacy.json +37042 -0
- package/out/database/SkillTarget.json +212 -0
- package/out/database/SkillTrigger.json +511 -0
- package/out/db/dao/card_dao.d.ts +5 -0
- package/out/db/dao/card_dao.js +27 -0
- package/out/db/dao/card_dao.js.map +1 -0
- package/out/db/dao/quest_dao.d.ts +8 -0
- package/out/db/dao/quest_dao.js +49 -0
- package/out/db/dao/quest_dao.js.map +1 -0
- package/out/db/dao/setting_dao.d.ts +3 -0
- package/out/db/dao/setting_dao.js +13 -0
- package/out/db/dao/setting_dao.js.map +1 -0
- package/out/db/dao/skill_dao.d.ts +6 -0
- package/out/db/dao/skill_dao.js +42 -0
- package/out/db/dao/skill_dao.js.map +1 -0
- package/out/db/repository/card_repository.d.ts +6 -0
- package/out/db/repository/card_repository.js +39 -0
- package/out/db/repository/card_repository.js.map +1 -0
- package/out/db/repository/quest_repository.d.ts +2 -0
- package/out/db/repository/quest_repository.js +17 -0
- package/out/db/repository/quest_repository.js.map +1 -0
- package/out/db/repository/setting_repository.d.ts +2 -0
- package/out/db/repository/setting_repository.js +9 -0
- package/out/db/repository/setting_repository.js.map +1 -0
- package/out/db/repository/skill_repository.d.ts +2 -0
- package/out/db/repository/skill_repository.js +31 -0
- package/out/db/repository/skill_repository.js.map +1 -0
- package/out/db/wrapper/card_wrapper.d.ts +2 -0
- package/out/db/wrapper/card_wrapper.js +30 -0
- package/out/db/wrapper/card_wrapper.js.map +1 -0
- package/out/db/wrapper/quest_wrapper.d.ts +2 -0
- package/out/db/wrapper/quest_wrapper.js +47 -0
- package/out/db/wrapper/quest_wrapper.js.map +1 -0
- package/out/db/wrapper/skill_wrapper.d.ts +5 -0
- package/out/db/wrapper/skill_wrapper.js +34 -0
- package/out/db/wrapper/skill_wrapper.js.map +1 -0
- package/out/index.d.ts +3 -0
- package/out/index.js +18 -0
- package/out/index.js.map +1 -0
- package/out/main.d.ts +1 -0
- package/out/main.js +67 -0
- package/out/main.js.map +1 -0
- package/out/satomi/card.d.ts +4 -0
- package/out/satomi/card.js +36 -0
- package/out/satomi/card.js.map +1 -0
- package/out/satomi/deck.d.ts +3 -0
- package/out/satomi/deck.js +28 -0
- package/out/satomi/deck.js.map +1 -0
- package/out/satomi/live.d.ts +4 -0
- package/out/satomi/live.js +14 -0
- package/out/satomi/live.js.map +1 -0
- package/out/types/card_types.d.ts +40 -0
- package/out/types/card_types.js +3 -0
- package/out/types/card_types.js.map +1 -0
- package/out/types/concert_types.d.ts +134 -0
- package/out/types/concert_types.js +3 -0
- package/out/types/concert_types.js.map +1 -0
- package/out/types/misc_types.d.ts +15 -0
- package/out/types/misc_types.js +3 -0
- package/out/types/misc_types.js.map +1 -0
- package/out/types/proto/proto_api.d.ts +4353 -0
- package/out/types/proto/proto_api.js +4 -0
- package/out/types/proto/proto_api.js.map +1 -0
- package/out/types/proto/proto_enum.d.ts +1607 -0
- package/out/types/proto/proto_enum.js +1744 -0
- package/out/types/proto/proto_enum.js.map +1 -0
- package/out/types/proto/proto_master.d.ts +1963 -0
- package/out/types/proto/proto_master.js +4 -0
- package/out/types/proto/proto_master.js.map +1 -0
- package/out/types/proto/proto_transaction.d.ts +395 -0
- package/out/types/proto/proto_transaction.js +4 -0
- package/out/types/proto/proto_transaction.js.map +1 -0
- package/out/types/trans_types.d.ts +23 -0
- package/out/types/trans_types.js +3 -0
- package/out/types/trans_types.js.map +1 -0
- package/out/types/wap/card_waps.d.ts +9 -0
- package/out/types/wap/card_waps.js +3 -0
- package/out/types/wap/card_waps.js.map +1 -0
- package/out/types/wap/misc_waps.d.ts +11 -0
- package/out/types/wap/misc_waps.js +3 -0
- package/out/types/wap/misc_waps.js.map +1 -0
- package/out/types/wap/quest_waps.d.ts +12 -0
- package/out/types/wap/quest_waps.js +3 -0
- package/out/types/wap/quest_waps.js.map +1 -0
- package/out/types/wap/skill_waps.d.ts +24 -0
- package/out/types/wap/skill_waps.js +3 -0
- package/out/types/wap/skill_waps.js.map +1 -0
- package/out/utils/calc_utils.d.ts +20 -0
- package/out/utils/calc_utils.js +137 -0
- package/out/utils/calc_utils.js.map +1 -0
- package/out/utils/chart_utils.d.ts +49 -0
- package/out/utils/chart_utils.js +218 -0
- package/out/utils/chart_utils.js.map +1 -0
- package/out/utils/console_utils.d.ts +1 -0
- package/out/utils/console_utils.js +9 -0
- package/out/utils/console_utils.js.map +1 -0
- package/out/utils/skill_utils.d.ts +9 -0
- package/out/utils/skill_utils.js +86 -0
- package/out/utils/skill_utils.js.map +1 -0
- package/package.json +32 -0
package/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2022 JH.L
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# VenusSysLib
|
2
|
+
|
3
|
+
[**hoshimi-venus**](https://www.npmjs.com/package/hoshimi-venus) (project name: **VenusSysLib**) is a common Node.js library used for simulating in-game Live.
|
4
|
+
|
5
|
+
## Request for information
|
6
|
+
|
7
|
+
This project is still under development and is expected to be in that state for a long turn.
|
8
|
+
|
9
|
+
The ultimate goal of this project is to achive a **completely reliable** live simulation library which's outputs are completely match in-game live results. For the sake of that, to ensure outputs are completely reliable, a large amount of comparative experiments are indispensable during the whole development lifecycle. Even if I will do that at a slow pace it still would be difficult to cover all the situations. That said, **your** help is crucial for this purpose.
|
10
|
+
Welcome to commit issues if you find any incorrect results while using this library.
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
## Data structure
|
15
|
+
|
16
|
+
## License
|
17
|
+
Apache License 2.0
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { Actable, Chart, Effect, Live } from "../types/concert_types";
|
2
|
+
import { SkillEfficacyType } from "../types/proto/proto_enum";
|
3
|
+
import * as _init from "./partial/init_concert";
|
4
|
+
import migration from "./partial/a_migration";
|
5
|
+
import checkActSkillExistence from "./partial/b_check_existence";
|
6
|
+
import { LiveDeck } from "../types/card_types";
|
7
|
+
import checkActSkillStamina from "./partial/c_check_act_skill_stamina";
|
8
|
+
import checkActSkillCoolTime from "./partial/d_check_act_skill_cool_time";
|
9
|
+
import determineActSkillPrivilege from "./partial/f_determine_act_skill_privilege";
|
10
|
+
import { performASPSkill, performPSkill, performStageSkill, _performSkill } from "./partial/perform_skill";
|
11
|
+
import { implementEfficacy } from "./partial/impl_efficacy";
|
12
|
+
import { preparePSkill } from "./partial/prepare_p_skill";
|
13
|
+
import checkActSkillPossibility from "./partial/e_check_act_skill_possibility";
|
14
|
+
import { rotateCT } from "./partial/rotate_ct";
|
15
|
+
import { rotateRemains } from "./partial/rotate_remains";
|
16
|
+
import { performBeat } from "./partial/perform_beat";
|
17
|
+
import { handleCombo } from "./partial/handle_combo";
|
18
|
+
import { applyContinuousEffects } from "./partial/apply_continuous_effects";
|
19
|
+
export declare class Concert {
|
20
|
+
constructor(live: Live);
|
21
|
+
live: Live;
|
22
|
+
charts: Chart[];
|
23
|
+
liveDeck: LiveDeck;
|
24
|
+
protected previous: Chart;
|
25
|
+
current: Chart;
|
26
|
+
protected order: number;
|
27
|
+
protected actables: Actable[];
|
28
|
+
pSkills: {
|
29
|
+
cardIndex: number;
|
30
|
+
skillIndex: number;
|
31
|
+
}[];
|
32
|
+
pSkillPerformed: {
|
33
|
+
cardIndex: number;
|
34
|
+
skillIndex: number;
|
35
|
+
}[];
|
36
|
+
migratedEffs: {
|
37
|
+
index: number;
|
38
|
+
type: SkillEfficacyType.StrengthEffectMigrationBeforeActiveSkill | SkillEfficacyType.StrengthEffectMigrationBeforeSpecialSkill;
|
39
|
+
effs: Effect[];
|
40
|
+
fromOrder: number;
|
41
|
+
sourceIndex: number;
|
42
|
+
sourceSkillIndex: number;
|
43
|
+
}[];
|
44
|
+
go(): void;
|
45
|
+
private prepare;
|
46
|
+
private rotate;
|
47
|
+
init: typeof _init.default;
|
48
|
+
initCardStatus: typeof _init.initCardStatus;
|
49
|
+
initUserStatus: typeof _init.initUserStatus;
|
50
|
+
initSkillStatus: typeof _init.initSkillStatus;
|
51
|
+
initStageSkillStatus: typeof _init.initStageSkillStatus;
|
52
|
+
migration: typeof migration;
|
53
|
+
checkActSkillExistence: typeof checkActSkillExistence;
|
54
|
+
checkActSkillStamina: typeof checkActSkillStamina;
|
55
|
+
checkActSkillCoolTime: typeof checkActSkillCoolTime;
|
56
|
+
checkActSkillPossibility: typeof checkActSkillPossibility;
|
57
|
+
determineActSkillPrivilege: typeof determineActSkillPrivilege;
|
58
|
+
preparePSkill: typeof preparePSkill;
|
59
|
+
performASPSkill: typeof performASPSkill;
|
60
|
+
performBeat: typeof performBeat;
|
61
|
+
performPSkill: typeof performPSkill;
|
62
|
+
performStageSkill: typeof performStageSkill;
|
63
|
+
_performSkill: typeof _performSkill;
|
64
|
+
implementEfficacy: typeof implementEfficacy;
|
65
|
+
handleCombo: typeof handleCombo;
|
66
|
+
rotateCT: typeof rotateCT;
|
67
|
+
rotateRemains: typeof rotateRemains;
|
68
|
+
applyContinuousEffects: typeof applyContinuousEffects;
|
69
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.Concert = void 0;
|
30
|
+
const lodash_1 = __importDefault(require("lodash"));
|
31
|
+
const proto_enum_1 = require("../types/proto/proto_enum");
|
32
|
+
const util = __importStar(require("../utils/chart_utils"));
|
33
|
+
const _init = __importStar(require("./partial/init_concert"));
|
34
|
+
const a_migration_1 = __importDefault(require("./partial/a_migration"));
|
35
|
+
const b_check_existence_1 = __importDefault(require("./partial/b_check_existence"));
|
36
|
+
const c_check_act_skill_stamina_1 = __importDefault(require("./partial/c_check_act_skill_stamina"));
|
37
|
+
const d_check_act_skill_cool_time_1 = __importDefault(require("./partial/d_check_act_skill_cool_time"));
|
38
|
+
const f_determine_act_skill_privilege_1 = __importDefault(require("./partial/f_determine_act_skill_privilege"));
|
39
|
+
const perform_skill_1 = require("./partial/perform_skill");
|
40
|
+
const impl_efficacy_1 = require("./partial/impl_efficacy");
|
41
|
+
const prepare_p_skill_1 = require("./partial/prepare_p_skill");
|
42
|
+
const e_check_act_skill_possibility_1 = __importDefault(require("./partial/e_check_act_skill_possibility"));
|
43
|
+
const rotate_ct_1 = require("./partial/rotate_ct");
|
44
|
+
const rotate_remains_1 = require("./partial/rotate_remains");
|
45
|
+
const perform_beat_1 = require("./partial/perform_beat");
|
46
|
+
const handle_combo_1 = require("./partial/handle_combo");
|
47
|
+
const apply_continuous_effects_1 = require("./partial/apply_continuous_effects");
|
48
|
+
class Concert {
|
49
|
+
constructor(live) {
|
50
|
+
//#region partial imports
|
51
|
+
this.init = _init.default;
|
52
|
+
this.initCardStatus = _init.initCardStatus;
|
53
|
+
this.initUserStatus = _init.initUserStatus;
|
54
|
+
this.initSkillStatus = _init.initSkillStatus;
|
55
|
+
this.initStageSkillStatus = _init.initStageSkillStatus;
|
56
|
+
this.migration = a_migration_1.default;
|
57
|
+
this.checkActSkillExistence = b_check_existence_1.default;
|
58
|
+
this.checkActSkillStamina = c_check_act_skill_stamina_1.default;
|
59
|
+
this.checkActSkillCoolTime = d_check_act_skill_cool_time_1.default;
|
60
|
+
this.checkActSkillPossibility = e_check_act_skill_possibility_1.default;
|
61
|
+
this.determineActSkillPrivilege = f_determine_act_skill_privilege_1.default;
|
62
|
+
this.preparePSkill = prepare_p_skill_1.preparePSkill;
|
63
|
+
this.performASPSkill = perform_skill_1.performASPSkill;
|
64
|
+
this.performBeat = perform_beat_1.performBeat;
|
65
|
+
this.performPSkill = perform_skill_1.performPSkill;
|
66
|
+
this.performStageSkill = perform_skill_1.performStageSkill;
|
67
|
+
this._performSkill = perform_skill_1._performSkill;
|
68
|
+
this.implementEfficacy = impl_efficacy_1.implementEfficacy;
|
69
|
+
this.handleCombo = handle_combo_1.handleCombo;
|
70
|
+
this.rotateCT = rotate_ct_1.rotateCT;
|
71
|
+
this.rotateRemains = rotate_remains_1.rotateRemains;
|
72
|
+
this.applyContinuousEffects = apply_continuous_effects_1.applyContinuousEffects;
|
73
|
+
this.live = live;
|
74
|
+
this.charts = live.charts;
|
75
|
+
this.liveDeck = live.liveDeck;
|
76
|
+
}
|
77
|
+
// methods
|
78
|
+
go() {
|
79
|
+
this.init();
|
80
|
+
this.live.quest.musicChartPatterns.forEach(musicPtn => {
|
81
|
+
// if type = 0, dismiss
|
82
|
+
if (musicPtn.type !== proto_enum_1.MusicChartType.Unknown) {
|
83
|
+
this.prepare(musicPtn);
|
84
|
+
this.rotate();
|
85
|
+
}
|
86
|
+
});
|
87
|
+
}
|
88
|
+
prepare(musicPtn) {
|
89
|
+
if (musicPtn.sequence != 1) {
|
90
|
+
this.previous = this.charts[this.charts.length - 1];
|
91
|
+
}
|
92
|
+
this.actables = [];
|
93
|
+
this.pSkillPerformed = [];
|
94
|
+
this.current = {
|
95
|
+
chartType: musicPtn.type,
|
96
|
+
sequence: musicPtn.sequence,
|
97
|
+
actPosition: musicPtn.position,
|
98
|
+
actPSkills: [],
|
99
|
+
cardStatuses: lodash_1.default.cloneDeep(this.previous.cardStatuses),
|
100
|
+
userStatuses: lodash_1.default.cloneDeep(this.previous.userStatuses),
|
101
|
+
stageSkillStatuses: lodash_1.default.cloneDeep(this.previous.stageSkillStatuses),
|
102
|
+
getCardStatus: util.getCardStatusByIndex,
|
103
|
+
getUserStatus: util.getUserStatusByIndex,
|
104
|
+
getStageStatus: util.getStageStatusByIndexes,
|
105
|
+
};
|
106
|
+
// remove effects which have no remain count
|
107
|
+
this.current.cardStatuses.forEach(cardStat => {
|
108
|
+
cardStat.effects = cardStat.effects.filter(eff => eff.remain !== 0);
|
109
|
+
});
|
110
|
+
}
|
111
|
+
rotate() {
|
112
|
+
this.migration();
|
113
|
+
if (this.current.chartType != proto_enum_1.MusicChartType.Beat) {
|
114
|
+
this.checkActSkillExistence();
|
115
|
+
this.checkActSkillStamina();
|
116
|
+
if (this.current.chartType === proto_enum_1.MusicChartType.ActiveSkill) {
|
117
|
+
this.checkActSkillCoolTime();
|
118
|
+
}
|
119
|
+
this.checkActSkillPossibility();
|
120
|
+
this.determineActSkillPrivilege();
|
121
|
+
}
|
122
|
+
// validate and perform P skills (p1)
|
123
|
+
for (const idxes of this.preparePSkill(true)) {
|
124
|
+
if (idxes.cardIndex > 100) {
|
125
|
+
this.performStageSkill(idxes.cardIndex, idxes.skillIndex, true);
|
126
|
+
}
|
127
|
+
else {
|
128
|
+
this.performPSkill(idxes.cardIndex, idxes.skillIndex, true);
|
129
|
+
}
|
130
|
+
}
|
131
|
+
// TODO: save a snapshot at this point
|
132
|
+
// ...
|
133
|
+
// perform A SP skill
|
134
|
+
let flag = handle_combo_1.ComboType.AddBoth;
|
135
|
+
if (this.current.chartType === proto_enum_1.MusicChartType.ActiveSkill
|
136
|
+
|| this.current.chartType === proto_enum_1.MusicChartType.SpecialSkill) {
|
137
|
+
flag = this.performASPSkill(this.actables);
|
138
|
+
}
|
139
|
+
else if (this.current.chartType === proto_enum_1.MusicChartType.Beat) {
|
140
|
+
this.performBeat();
|
141
|
+
}
|
142
|
+
// reset combo
|
143
|
+
this.handleCombo(flag);
|
144
|
+
this.rotateCT();
|
145
|
+
this.rotateRemains();
|
146
|
+
// validate and perform P skills (p2)
|
147
|
+
for (const idxes of this.preparePSkill(false)) {
|
148
|
+
if (idxes.cardIndex > 100) {
|
149
|
+
this.performStageSkill(idxes.cardIndex, idxes.skillIndex, false);
|
150
|
+
}
|
151
|
+
else {
|
152
|
+
this.performPSkill(idxes.cardIndex, idxes.skillIndex, false);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
this.applyContinuousEffects();
|
156
|
+
// aftermath
|
157
|
+
this.charts.push(this.current);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
exports.Concert = Concert;
|
161
|
+
//# sourceMappingURL=concert.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"concert.js","sourceRoot":"","sources":["../../concert/concert.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsB;AAEtB,0DAA8E;AAE9E,2DAA6C;AAC7C,8DAA+C;AAC/C,wEAA8C;AAC9C,oFAAiE;AAEjE,oGAAuE;AACvE,wGAA0E;AAC1E,gHAAmF;AACnF,2DAA2G;AAC3G,2DAA4D;AAC5D,+DAA0D;AAC1D,4GAA+E;AAC/E,mDAA+C;AAC/C,6DAAyD;AACzD,yDAAqD;AACrD,yDAAgE;AAChE,iFAA4E;AAE5E,MAAa,OAAO;IAElB,YAAY,IAAU;QAoHtB,yBAAyB;QACzB,SAAI,GAAG,KAAK,CAAC,OAAO,CAAA;QACpB,mBAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QACrC,mBAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QACrC,oBAAe,GAAG,KAAK,CAAC,eAAe,CAAA;QACvC,yBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QAEjD,cAAS,GAAG,qBAAS,CAAA;QACrB,2BAAsB,GAAG,2BAAsB,CAAA;QAC/C,yBAAoB,GAAG,mCAAoB,CAAA;QAC3C,0BAAqB,GAAG,qCAAqB,CAAA;QAC7C,6BAAwB,GAAG,uCAAwB,CAAA;QACnD,+BAA0B,GAAG,yCAA0B,CAAA;QACvD,kBAAa,GAAG,+BAAa,CAAA;QAC7B,oBAAe,GAAG,+BAAe,CAAA;QACjC,gBAAW,GAAG,0BAAW,CAAA;QACzB,kBAAa,GAAG,6BAAa,CAAA;QAC7B,sBAAiB,GAAG,iCAAiB,CAAA;QACrC,kBAAa,GAAG,6BAAa,CAAA;QAC7B,sBAAiB,GAA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|
+
2: number;
|
5
|
+
3: number;
|
6
|
+
4: number;
|
7
|
+
5: number;
|
8
|
+
6: number;
|
9
|
+
7: number;
|
10
|
+
8: number;
|
11
|
+
9: number;
|
12
|
+
10: number;
|
13
|
+
};
|
14
|
+
export declare const Lane2Indexes: {
|
15
|
+
1: number[];
|
16
|
+
2: number[];
|
17
|
+
3: number[];
|
18
|
+
4: number[];
|
19
|
+
5: number[];
|
20
|
+
};
|
21
|
+
export declare const Str2EfficacyType: {
|
22
|
+
[key: string]: SkillEfficacyType;
|
23
|
+
};
|
24
|
+
export declare const Str2EfficacyGroup: {
|
25
|
+
[key: string]: SkillEfficacyType[];
|
26
|
+
};
|
27
|
+
export declare const IndexNeighbor: {
|
28
|
+
[key: number]: number[];
|
29
|
+
};
|
30
|
+
export declare const SameLaneOpponent: {
|
31
|
+
1: number;
|
32
|
+
2: number;
|
33
|
+
3: number;
|
34
|
+
4: number;
|
35
|
+
5: number;
|
36
|
+
6: number;
|
37
|
+
7: number;
|
38
|
+
8: number;
|
39
|
+
9: number;
|
40
|
+
10: number;
|
41
|
+
};
|
@@ -0,0 +1,65 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SameLaneOpponent = exports.IndexNeighbor = exports.Str2EfficacyGroup = exports.Str2EfficacyType = exports.Lane2Indexes = exports.Index2Lane = void 0;
|
4
|
+
const proto_enum_1 = require("../../types/proto/proto_enum");
|
5
|
+
const efficacy_list_1 = require("./efficacy_list");
|
6
|
+
exports.Index2Lane = {
|
7
|
+
1: 1, 2: 2, 3: 3, 4: 4, 5: 5,
|
8
|
+
6: 1, 7: 2, 8: 3, 9: 4, 10: 5,
|
9
|
+
};
|
10
|
+
exports.Lane2Indexes = {
|
11
|
+
1: [1, 6],
|
12
|
+
2: [2, 7],
|
13
|
+
3: [3, 8],
|
14
|
+
4: [4, 9],
|
15
|
+
5: [5, 10],
|
16
|
+
};
|
17
|
+
exports.Str2EfficacyType = {
|
18
|
+
audience_amount_increase: proto_enum_1.SkillEfficacyType.AudienceAmountIncrease,
|
19
|
+
audience_amount_reduction: proto_enum_1.SkillEfficacyType.AudienceAmountReduction,
|
20
|
+
beat_score_up: proto_enum_1.SkillEfficacyType.BeatScoreUp,
|
21
|
+
combo_continuation: proto_enum_1.SkillEfficacyType.ComboContinuation,
|
22
|
+
critical_bonus_permil_up: proto_enum_1.SkillEfficacyType.CriticalBonusPermilUp,
|
23
|
+
critical_rate_up: proto_enum_1.SkillEfficacyType.CriticalRateUp,
|
24
|
+
dance_down: proto_enum_1.SkillEfficacyType.DanceDown,
|
25
|
+
dance_up: proto_enum_1.SkillEfficacyType.DanceUp,
|
26
|
+
score_up: proto_enum_1.SkillEfficacyType.ScoreUp,
|
27
|
+
skill_impossible: proto_enum_1.SkillEfficacyType.SkillImpossible,
|
28
|
+
skill_score_up: proto_enum_1.SkillEfficacyType.ActiveSkillScoreUp,
|
29
|
+
stamina_consumption_increase: proto_enum_1.SkillEfficacyType.StaminaConsumptionIncrease,
|
30
|
+
stamina_consumption_reduction: proto_enum_1.SkillEfficacyType.StaminaConsumptionReduction,
|
31
|
+
tension_up: proto_enum_1.SkillEfficacyType.TensionUp,
|
32
|
+
visual_down: proto_enum_1.SkillEfficacyType.VisualDown,
|
33
|
+
visual_up: proto_enum_1.SkillEfficacyType.VisualUp,
|
34
|
+
vocal_down: proto_enum_1.SkillEfficacyType.VocalDown,
|
35
|
+
vocal_up: proto_enum_1.SkillEfficacyType.VocalUp,
|
36
|
+
};
|
37
|
+
exports.Str2EfficacyGroup = {
|
38
|
+
weekness: efficacy_list_1.WeaknessDurationList,
|
39
|
+
};
|
40
|
+
exports.IndexNeighbor = {
|
41
|
+
1: [2, 3],
|
42
|
+
2: [1, 4],
|
43
|
+
3: [1, 5],
|
44
|
+
4: [2],
|
45
|
+
5: [3],
|
46
|
+
6: [7, 8],
|
47
|
+
7: [6, 9],
|
48
|
+
8: [6, 10],
|
49
|
+
9: [7],
|
50
|
+
10: [8],
|
51
|
+
};
|
52
|
+
exports.SameLaneOpponent = {
|
53
|
+
1: 6, 2: 7, 3: 8, 4: 9, 5: 10,
|
54
|
+
6: 1, 7: 2, 8: 3, 9: 4, 10: 5,
|
55
|
+
};
|
56
|
+
// export const WeaknessEffectInversionDict: {
|
57
|
+
// [key in SkillEfficacyType]?: SkillEfficacyType
|
58
|
+
// } = {
|
59
|
+
// [SkillEfficacyType.DanceDown]: SkillEfficacyType.DanceUp,
|
60
|
+
// [SkillEfficacyType.VocalDown]: SkillEfficacyType.VocalUp,
|
61
|
+
// [SkillEfficacyType.VisualDown]: SkillEfficacyType.VisualUp,
|
62
|
+
// [SkillEfficacyType.StaminaConsumptionIncrease]: SkillEfficacyType.StaminaConsumptionReduction,
|
63
|
+
// ?
|
64
|
+
// }
|
65
|
+
//# sourceMappingURL=chart_consts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chart_consts.js","sourceRoot":"","sources":["../../../concert/consts/chart_consts.ts"],"names":[],"mappings":";;;AAAA,6DAAgE;AAChE,mDAAsD;AAEzC,QAAA,UAAU,GAAG;IACxB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC5B,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CAC9B,CAAA;AAEY,QAAA,YAAY,GAAG;IAC1B,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CACX,CAAA;AAEY,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