Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TA page backend #1062

Merged
merged 14 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimenta
dotnet_diagnostic.RMG012.severity = error # Unmapped target member
dotnet_diagnostic.RMG020.severity = error # Unmapped source member

# BannedApiAnalyzers
dotnet_diagnostic.RS0030.severity = error # Banned symbol

[DragaliaAPI/DragaliaAPI.Database/Migrations/*.cs]
generated_code = true

Expand Down
2 changes: 2 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
<PackageVersion Include="Immediate.Apis" Version="1.1.0" />
<PackageVersion Include="Immediate.Handlers" Version="1.4.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageVersion Include="linq2db.EntityFrameworkCore" Version="8.1.0" />
<PackageVersion Include="MessagePack" Version="2.5.172" />
<PackageVersion Include="MessagePack.AspNetCoreMvcFormatter" Version="2.5.172" />
<PackageVersion Include="MessagePackAnalyzer" Version="2.5.172" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="8.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="8.0.8" />
<PackageVersion Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Features" Version="4.11.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
Expand Down
1 change: 1 addition & 0 deletions DragaliaAPI/DragaliaAPI.Database/DatabaseConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ IConfiguration config
.Value;
options
.UseNpgsql(postgresOptions.GetConnectionString("ApiContext"))
.UseLoggerFactory(serviceProvider.GetRequiredService<ILoggerFactory>())
.EnableDetailedErrors();
}
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"event_boost": null, "support_data": {"name": null, "is_friend": false, "viewer_id": 0, "chara_data": null, "amulet_data": null, "dragon_data": null, "weapon_data": null, "amulet_2_data": null, "talisman_data": null, "weapon_body_data": null, "weapon_skin_data": null, "crest_slot_type_1_crest_list": null, "crest_slot_type_2_crest_list": null, "crest_slot_type_3_crest_list": null, "game_weapon_passive_ability_list": null}, "fort_bonus_list": {"all_bonus": {"hp": 0, "attack": 0}, "param_bonus": [{"hp": 39, "attack": 39, "weapon_type": 1}, {"hp": 45, "attack": 45, "weapon_type": 2}, {"hp": 45, "attack": 45, "weapon_type": 3}, {"hp": 45, "attack": 45, "weapon_type": 4}, {"hp": 39, "attack": 39, "weapon_type": 5}, {"hp": 45, "attack": 45, "weapon_type": 6}, {"hp": 45, "attack": 45, "weapon_type": 7}, {"hp": 45, "attack": 45, "weapon_type": 8}, {"hp": 45, "attack": 45, "weapon_type": 9}], "dragon_bonus": [{"hp": 11.5, "attack": 11.5, "dragon_bonus": 50, "elemental_type": 1}, {"hp": 11.5, "attack": 11.5, "dragon_bonus": 50, "elemental_type": 2}, {"hp": 11.5, "attack": 11.5, "dragon_bonus": 50, "elemental_type": 3}, {"hp": 11.5, "attack": 11.5, "dragon_bonus": 50, "elemental_type": 4}, {"hp": 11.5, "attack": 11.5, "dragon_bonus": 50, "elemental_type": 5}, {"hp": 0, "attack": 0, "dragon_bonus": 0, "elemental_type": 99}], "element_bonus": [{"hp": 70.5, "attack": 69.5, "elemental_type": 1}, {"hp": 80, "attack": 78, "elemental_type": 2}, {"hp": 70.5, "attack": 69.5, "elemental_type": 3}, {"hp": 80, "attack": 78, "elemental_type": 4}, {"hp": 70.5, "attack": 69.5, "elemental_type": 5}, {"hp": 0, "attack": 0, "elemental_type": 99}], "dragon_time_bonus": {"dragon_time_bonus": 0}, "chara_bonus_by_album": [{"hp": 14.1, "attack": 14.1, "elemental_type": 1}, {"hp": 13.8, "attack": 13.8, "elemental_type": 2}, {"hp": 13.9, "attack": 13.9, "elemental_type": 3}, {"hp": 14.5, "attack": 14.5, "elemental_type": 4}, {"hp": 13.3, "attack": 13.3, "elemental_type": 5}], "dragon_bonus_by_album": [{"hp": 5.8, "attack": 5, "elemental_type": 1}, {"hp": 5.4, "attack": 4.6, "elemental_type": 2}, {"hp": 6.3, "attack": 5.4, "elemental_type": 3}, {"hp": 6, "attack": 5.2, "elemental_type": 4}, {"hp": 7.3, "attack": 6.4, "elemental_type": 5}], "param_bonus_by_weapon": [{"hp": 30, "attack": 30, "weapon_type": 1}, {"hp": 30, "attack": 30, "weapon_type": 2}, {"hp": 30, "attack": 30, "weapon_type": 3}, {"hp": 30, "attack": 30, "weapon_type": 4}, {"hp": 30, "attack": 30, "weapon_type": 5}, {"hp": 30, "attack": 30, "weapon_type": 6}, {"hp": 30, "attack": 30, "weapon_type": 7}, {"hp": 30, "attack": 30, "weapon_type": 8}, {"hp": 27.5, "attack": 27.5, "weapon_type": 9}]}, "party_unit_list": [{"position": 1, "chara_data": {"hp": 758, "exp": 1191950, "level": 80, "attack": 500, "is_new": 1, "rarity": 5, "gettime": "2022-03-14T06:29:33+00:00", "chara_id": 10350104, "is_temporary": 0, "hp_plus_count": 0, "skill_1_level": 3, "skill_2_level": 2, "list_view_flag": 1, "ability_1_level": 2, "ability_2_level": 2, "ability_3_level": 2, "ex_ability_level": 5, "attack_plus_count": 100, "limit_break_count": 4, "status_plus_count": 0, "burst_attack_level": 2, "ex_ability_2_level": 5, "combo_buildup_count": 0, "additional_max_level": 0, "is_unlock_edit_skill": 1, "mana_circle_piece_id_list": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]}, "dragon_data": {"exp": 1240020, "level": 100, "is_new": 1, "is_lock": 0, "get_time": "2022-03-30T06:18:32+00:00", "dragon_id": 20050119, "dragon_key_id": 771480, "hp_plus_count": 0, "skill_1_level": 2, "ability_1_level": 5, "ability_2_level": 5, "attack_plus_count": 50, "limit_break_count": 4, "status_plus_count": 0}, "talisman_data": {"is_new": 1, "gettime": "2023-06-14T04:31:11+00:00", "is_lock": 0, "talisman_id": 50350103, "additional_hp": 0, "talisman_key_id": 398027, "additional_attack": 0, "talisman_ability_id_1": 340000020, "talisman_ability_id_2": 340000132, "talisman_ability_id_3": 0}, "weapon_body_data": {"skill_no": 1, "skill_level": 2, "buildup_count": 80, "weapon_body_id": 30360104, "ability_1_level": 2, "ability_2_level": 0, "equipable_count": 4, "limit_over_count": 1, "limit_break_count": 8, "additional_effect_count": 0, "additional_crest_slot_type_1_count": 1, "additional_crest_slot_type_2_count": 0, "additional_crest_slot_type_3_count": 2}, "weapon_skin_data": {"weapon_skin_id": 30319901}, "edit_skill_1_chara_data": {"chara_id": 10530202, "edit_skill_level": 2}, "edit_skill_2_chara_data": {"chara_id": 10250402, "edit_skill_level": 4}, "dragon_reliability_level": 30, "crest_slot_type_1_crest_list": [{"buildup_count": 50, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40050107, "attack_plus_count": 50, "limit_break_count": 4}, {"buildup_count": 50, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40050098, "attack_plus_count": 50, "limit_break_count": 4}, {"buildup_count": 50, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40050088, "attack_plus_count": 50, "limit_break_count": 4}], "crest_slot_type_2_crest_list": [{"buildup_count": 40, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40040051, "attack_plus_count": 50, "limit_break_count": 4}, {"buildup_count": 40, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40040105, "attack_plus_count": 50, "limit_break_count": 4}], "crest_slot_type_3_crest_list": [{"buildup_count": 30, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40090017, "attack_plus_count": 40, "limit_break_count": 4}, {"buildup_count": 30, "hp_plus_count": 0, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40090025, "attack_plus_count": 40, "limit_break_count": 4}], "game_weapon_passive_ability_list": [{"weapon_passive_ability_id": 1030101}, {"weapon_passive_ability_id": 1030102}, {"weapon_passive_ability_id": 1030103}, {"weapon_passive_ability_id": 1030104}, {"weapon_passive_ability_id": 1030105}, {"weapon_passive_ability_id": 1030106}, {"weapon_passive_ability_id": 1030107}, {"weapon_passive_ability_id": 1030109}]}, {"position": 2, "chara_data": {"hp": 740, "exp": 1191950, "level": 80, "attack": 520, "is_new": 1, "rarity": 5, "gettime": "2022-07-15T06:38:26+00:00", "chara_id": 10250103, "is_temporary": 0, "hp_plus_count": 100, "skill_1_level": 3, "skill_2_level": 2, "list_view_flag": 1, "ability_1_level": 2, "ability_2_level": 2, "ability_3_level": 2, "ex_ability_level": 5, "attack_plus_count": 100, "limit_break_count": 4, "status_plus_count": 0, "burst_attack_level": 2, "ex_ability_2_level": 5, "combo_buildup_count": 0, "additional_max_level": 0, "is_unlock_edit_skill": 1, "mana_circle_piece_id_list": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]}, "dragon_data": {"exp": 0, "level": 0, "is_new": 0, "is_lock": 0, "get_time": "0001-01-01T00:00:00+00:00", "dragon_id": 0, "dragon_key_id": 0, "hp_plus_count": 0, "skill_1_level": 0, "ability_1_level": 0, "ability_2_level": 0, "attack_plus_count": 0, "limit_break_count": 0, "status_plus_count": 0}, "talisman_data": {"is_new": 0, "gettime": "0001-01-01T00:00:00+00:00", "is_lock": 0, "talisman_id": 0, "additional_hp": 0, "talisman_key_id": 0, "additional_attack": 0, "talisman_ability_id_1": 0, "talisman_ability_id_2": 0, "talisman_ability_id_3": 0}, "weapon_body_data": {"skill_no": 1, "skill_level": 2, "buildup_count": 80, "weapon_body_id": 30260104, "ability_1_level": 2, "ability_2_level": 0, "equipable_count": 4, "limit_over_count": 1, "limit_break_count": 8, "additional_effect_count": 0, "additional_crest_slot_type_1_count": 1, "additional_crest_slot_type_2_count": 0, "additional_crest_slot_type_3_count": 2}, "weapon_skin_data": {"weapon_skin_id": 0}, "edit_skill_1_chara_data": {"chara_id": 10840501, "edit_skill_level": 4}, "edit_skill_2_chara_data": {"chara_id": 10440301, "edit_skill_level": 4}, "dragon_reliability_level": 0, "crest_slot_type_1_crest_list": [{"buildup_count": 50, "hp_plus_count": 50, "ability_1_level": 3, "ability_2_level": 3, "equipable_count": 4, "ability_crest_id": 40050047, "attack_plus_count": 50, "limit_break_count": 4}], "crest_slot_type_2_crest_list": [], "crest_slot_type_3_crest_list": [], "game_weapon_passive_ability_list": [{"weapon_passive_ability_id": 1020101}, {"weapon_passive_ability_id": 1020102}, {"weapon_passive_ability_id": 1020103}, {"weapon_passive_ability_id": 1020104}, {"weapon_passive_ability_id": 1020105}, {"weapon_passive_ability_id": 1020106}, {"weapon_passive_ability_id": 1020107}, {"weapon_passive_ability_id": 1020109}]}, {"position": 3, "chara_data": {"hp": 850, "exp": 8866950, "level": 100, "attack": 584, "is_new": 1, "rarity": 5, "gettime": "2020-02-21T18:01:35+00:00", "chara_id": 10730101, "is_temporary": 0, "hp_plus_count": 100, "skill_1_level": 4, "skill_2_level": 3, "list_view_flag": 1, "ability_1_level": 3, "ability_2_level": 3, "ability_3_level": 2, "ex_ability_level": 5, "attack_plus_count": 100, "limit_break_count": 5, "status_plus_count": 0, "burst_attack_level": 2, "ex_ability_2_level": 5, "combo_buildup_count": 1, "additional_max_level": 20, "is_unlock_edit_skill": 1, "mana_circle_piece_id_list": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70]}, "dragon_data": {"exp": 0, "level": 0, "is_new": 0, "is_lock": 0, "get_time": "0001-01-01T00:00:00+00:00", "dragon_id": 0, "dragon_key_id": 0, "hp_plus_count": 0, "skill_1_level": 0, "ability_1_level": 0, "ability_2_level": 0, "attack_plus_count": 0, "limit_break_count": 0, "status_plus_count": 0}, "talisman_data": {"is_new": 0, "gettime": "0001-01-01T00:00:00+00:00", "is_lock": 0, "talisman_id": 0, "additional_hp": 0, "talisman_key_id": 0, "additional_attack": 0, "talisman_ability_id_1": 0, "talisman_ability_id_2": 0, "talisman_ability_id_3": 0}, "weapon_body_data": {"skill_no": 0, "skill_level": 0, "buildup_count": 0, "weapon_body_id": 0, "ability_1_level": 0, "ability_2_level": 0, "equipable_count": 0, "limit_over_count": 0, "limit_break_count": 0, "additional_effect_count": 0, "additional_crest_slot_type_1_count": 0, "additional_crest_slot_type_2_count": 0, "additional_crest_slot_type_3_count": 0}, "weapon_skin_data": {"weapon_skin_id": 0}, "edit_skill_1_chara_data": {"chara_id": 10840501, "edit_skill_level": 4}, "edit_skill_2_chara_data": {"chara_id": 10440301, "edit_skill_level": 4}, "dragon_reliability_level": 0, "crest_slot_type_1_crest_list": [], "crest_slot_type_2_crest_list": [], "crest_slot_type_3_crest_list": [], "game_weapon_passive_ability_list": []}, {"position": 4, "chara_data": {"hp": 781, "exp": 1191950, "level": 80, "attack": 493, "is_new": 1, "rarity": 5, "gettime": "2021-07-19T06:54:18+00:00", "chara_id": 10450102, "is_temporary": 0, "hp_plus_count": 100, "skill_1_level": 3, "skill_2_level": 2, "list_view_flag": 1, "ability_1_level": 2, "ability_2_level": 2, "ability_3_level": 2, "ex_ability_level": 5, "attack_plus_count": 100, "limit_break_count": 4, "status_plus_count": 0, "burst_attack_level": 2, "ex_ability_2_level": 5, "combo_buildup_count": 0, "additional_max_level": 0, "is_unlock_edit_skill": 1, "mana_circle_piece_id_list": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]}, "dragon_data": {"exp": 0, "level": 0, "is_new": 0, "is_lock": 0, "get_time": "0001-01-01T00:00:00+00:00", "dragon_id": 0, "dragon_key_id": 0, "hp_plus_count": 0, "skill_1_level": 0, "ability_1_level": 0, "ability_2_level": 0, "attack_plus_count": 0, "limit_break_count": 0, "status_plus_count": 0}, "talisman_data": {"is_new": 0, "gettime": "0001-01-01T00:00:00+00:00", "is_lock": 0, "talisman_id": 0, "additional_hp": 0, "talisman_key_id": 0, "additional_attack": 0, "talisman_ability_id_1": 0, "talisman_ability_id_2": 0, "talisman_ability_id_3": 0}, "weapon_body_data": {"skill_no": 0, "skill_level": 0, "buildup_count": 0, "weapon_body_id": 0, "ability_1_level": 0, "ability_2_level": 0, "equipable_count": 0, "limit_over_count": 0, "limit_break_count": 0, "additional_effect_count": 0, "additional_crest_slot_type_1_count": 0, "additional_crest_slot_type_2_count": 0, "additional_crest_slot_type_3_count": 0}, "weapon_skin_data": {"weapon_skin_id": 0}, "edit_skill_1_chara_data": {"chara_id": 10840501, "edit_skill_level": 4}, "edit_skill_2_chara_data": {"chara_id": 10440301, "edit_skill_level": 4}, "dragon_reliability_level": 0, "crest_slot_type_1_crest_list": [], "crest_slot_type_2_crest_list": [], "crest_slot_type_3_crest_list": [], "game_weapon_passive_ability_list": []}], "event_passive_grow_list": []}
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@
<None Update="Data\savefile_excess_dragons.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<Folder Include="Features\Missions\" />
<Folder Include="Features\Dmode\" />
<Folder Include="Features\Item\" />
<Folder Include="Features\Shop\" />
<None Update="Data\time_attack_party_info.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<PropertyGroup>
Expand Down
Loading
Loading