Skip to content

Commit

Permalink
feat: unpack more anniversary stories
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz committed Oct 30, 2023
1 parent a1eb723 commit 7fba62a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/StoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const data: (MenuOption & TreeSelectOption)[] = [
generateChapterOption('anniversary', '周年庆'),
generateChapterOption('anniversary6', '六周年周年庆'),
generateChapterOption('anniversary5', '五周年周年庆'),
generateChapterOption('anniversary4', '四周年周年庆'),
generateChapterOption('skin', '皮肤故事'),
];
Expand Down
5 changes: 4 additions & 1 deletion src/types/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export function getUrlType(s: string): typeof MEDIA_TYPES[number] {
return 'sprite';
}

export type ChapterType = 'main' | 'event' | 'colab' | 'bonding' | 'upgrading' | 'anniversary' | 'anniversary6' | 'anniversary5' | 'skin';
export type ChapterType = (
'main' | 'event' | 'colab' | 'bonding' | 'upgrading'
| 'anniversary' | 'anniversary6' | 'anniversary5' | 'anniversary4' | 'skin'
);
export type Story = {
name: string;
description: string;
Expand Down
1 change: 1 addition & 0 deletions unpack/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ images/
audio/
gf-resource-downloader/
GFLData/
GirlsFrontlineData/
gf-data-ch/asset/avgtxt/anniversary5/
gf-data-ch/asset/avgtxt/anniversary6/
*.ipynb
1 change: 1 addition & 0 deletions unpack/src/gfunpack/chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def categorize_stories(self):
all_chapters['bonding'] = self._categorize_bonding_stories()
all_chapters['upgrading'] = self._categorize_upgrading_stories()
all_chapters['anniversary'] = self._categorize_anniversary()
all_chapters['anniversary4'] = self._categorize_anniversary('anniversary4')
all_chapters['anniversary5'] = self._categorize_anniversary('anniversary5')
all_chapters['anniversary6'] = self._categorize_anniversary('anniversary6')
all_chapters['skin'] = self._categorize_skins()
Expand Down
10 changes: 10 additions & 0 deletions unpack/src/gfunpack/manual_chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,20 @@ def get_block_list():

def get_extra_anniversary_stories(destination: pathlib.Path):
directory = pathlib.Path('GFLData', 'ch', 'text', 'avgtxt', 'anniversary')
old_directory = pathlib.Path('GirlsFrontlineData', 'zh-CN', 'asset_textes', 'avgtxt', 'anniversary')
if not pathlib.Path('GFLData').is_dir():
subprocess.run([
'git', 'clone', 'https://github.com/randomqwerty/GFLData.git',
], stdout=subprocess.DEVNULL).check_returncode()
if not pathlib.Path('GirlsFrontlineData').is_dir():
subprocess.run([
'git', 'clone', 'https://github.com/Dimbreath/GirlsFrontlineData.git',
], stdout=subprocess.DEVNULL).check_returncode()
if not destination.joinpath('anniversary4').is_dir():
subprocess.run([
'git', 'checkout', '41793e107cb4697de10ac5bf507f1909f1c47030',
], cwd='GirlsFrontlineData').check_returncode()
shutil.copytree(old_directory, destination.joinpath('anniversary4'))
if not destination.joinpath('anniversary5').is_dir():
subprocess.run([
'git', 'checkout', '9d0dae0066ccf1bc9e32abf35401d5ef7eaf7746',
Expand Down

0 comments on commit 7fba62a

Please sign in to comment.