Skip to content

Commit

Permalink
Merge pull request #159 from GamerNoTitle/revert-157-dev
Browse files Browse the repository at this point in the history
Revert merge: Substitute part has something wrong
  • Loading branch information
GamerNoTitle authored Jul 17, 2024
2 parents fdf1e63 + 7342b1c commit d6c747b
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 65 deletions.
Binary file modified db/data.db
Binary file not shown.
17 changes: 5 additions & 12 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,11 @@ metadata:
# Available language: ar-AE / de-DE / en-US / es-ES / es-MX / fr-FR / id-ID / it-IT / ja-JP / ko-KR / pl-PL / pt-BR / ru-RU / th-TH / tr-TR / vi-VN / zh-CN / zh-TW
# For China mainland players, all the names of the guns are using zh-TW, cause this program does not support Valorant from Tencent.
# example: https://valorant-api.com/v1/weapons/skinlevels/a117218e-4f0e-0cca-7758-7ea30b08ac05?language=zh-CN
Voiceover:
- Localized voice-over may differ in your region
KillEffect:
- Every time you kill an enemy, a custom visual effect and sound plays
AttackerDefenderSwap:
- The skin design changes if you are Attacker or Defender
TopFrag:
- Aura is active only when player has the most kills in the game
Animation:
- During Inspect animation, a custom music track plays for 30 seconds.
VFX:
- Press inspect twice quickly to trigger rainbow effect
Voiceover: Localized voice-over may differ in your region
KillEffect: Every time you kill an enemy, a custom visual effect and sound plays
AttackerDefenderSwap: The skin design changes if you are Attacker or Defender
TopFrag: Aura is active only when player has the most kills in the game
Animation: During Inspect animation, a custom music track plays for 30 seconds.

global:
title:
Expand Down
17 changes: 5 additions & 12 deletions lang/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,11 @@ metadata:
# Available language: ar-AE / de-DE / en-US / es-ES / es-MX / fr-FR / id-ID / it-IT / ja-JP / ko-KR / pl-PL / pt-BR / ru-RU / th-TH / tr-TR / vi-VN / zh-CN / zh-TW
# For China mainland players, all the names of the guns are using zh-TW, cause this program does not support Valorant from Tencent.
# example: https://valorant-api.com/v1/weapons/skinlevels/a117218e-4f0e-0cca-7758-7ea30b08ac05?language=zh-CN
Voiceover:
- ローカライズされた音声は、お住まいの地域によって異なる可能性があります
KillEffect:
- 敵をキルするたびに、カスタムビジュアルエフェクトとオーディオが再生される
AttackerDefenderSwap:
- アタック時とディフェンス時でスキンのデザインが変化
TopFrag:
- オーラは試合中に最多キルを獲得している間のみ発動
Animation:
- 武器を見る動作中、専用の楽曲が 30 秒再生される
VFX:
- 「武器を見る」を素早く2回押すとレインボーエフェクトが発動
Voiceover: ローカライズされた音声は、お住まいの地域によって異なる可能性があります
KillEffect: 敵をキルするたびに、カスタムビジュアルエフェクトとオーディオが再生される
AttackerDefenderSwap: アタック時とディフェンス時でスキンのデザインが変化
TopFrag: オーラは試合中に最多キルを獲得している間のみ発動
Animation: 武器を見る動作中、専用の楽曲が 30 秒再生される

global:
title:
Expand Down
17 changes: 5 additions & 12 deletions lang/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,11 @@ metadata:
# Available language: ar-AE / de-DE / en-US / es-ES / es-MX / fr-FR / id-ID / it-IT / ja-JP / ko-KR / pl-PL / pt-BR / ru-RU / th-TH / tr-TR / vi-VN / zh-CN / zh-TW
# For China mainland players, all the names of the guns are using zh-TW, cause this program does not support Valorant from Tencent.
# example: https://valorant-api.com/v1/weapons/skinlevels/a117218e-4f0e-0cca-7758-7ea30b08ac05?language=zh-CN
Voiceover:
- 在地化語音可能會因地區而異
KillEffect:
- 每次擊殺敵人時,都會播放專屬視覺特效及音效
AttackerDefenderSwap:
- 此造型設計會因你是攻擊方或守備方而變化
TopFrag:
- 在對戰中取得最多擊殺時才會顯示光環
Animation:
- 查看武器動畫期間,會播放30秒的自訂配樂
VFX:
- 快速按兩下查看以觸發彩虹效果
Voiceover: 在地化語音可能會因地區而異
KillEffect: 每次擊殺敵人時,都會播放專屬視覺特效及音效
AttackerDefenderSwap: 此造型設計會因你是攻擊方或守備方而變化
TopFrag: 在對戰中取得最多擊殺時才會顯示光環
Animation: 查看武器動畫期間,會播放一段30秒的專屬配樂

global:
title:
Expand Down
17 changes: 5 additions & 12 deletions lang/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,11 @@ metadata:
# Available language: ar-AE / de-DE / en-US / es-ES / es-MX / fr-FR / id-ID / it-IT / ja-JP / ko-KR / pl-PL / pt-BR / ru-RU / th-TH / tr-TR / vi-VN / zh-CN / zh-TW
# For China mainland players, all the names of the guns are using zh-TW, cause this program does not support Valorant from Tencent.
# example: https://valorant-api.com/v1/weapons/skinlevels/a117218e-4f0e-0cca-7758-7ea30b08ac05?language=zh-CN
Voiceover:
- 在地化語音可能會因地區而異
KillEffect:
- 每次擊殺敵人時,都會播放專屬視覺特效及音效
AttackerDefenderSwap:
- 此造型設計會因你是攻擊方或守備方而變化
TopFrag:
- 在對戰中取得最多擊殺時才會顯示光環
Animation:
- 查看武器動畫期間,會播放30秒的自訂配樂
VFX:
- 快速按兩下查看以觸發彩虹效果
Voiceover: 在地化語音可能會因地區而異
KillEffect: 每次擊殺敵人時,都會播放專屬視覺特效及音效
AttackerDefenderSwap: 此造型設計會因你是攻擊方或守備方而變化
TopFrag: 在對戰中取得最多擊殺時才會顯示光環
Animation: 查看武器動畫期間,會播放一段30秒的專屬配樂

global:
title:
Expand Down
2 changes: 0 additions & 2 deletions templates/inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ <h5 class="modal-title"><img src={{weapon.tier}} height="28px" width="28px"> {{w
<video width=100% controls>
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'cdn.val.qq.com')}}"
type="video/mp4">
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'val.cdn.bili33.top')}}"
type="video/mp4">
<source src="{{level.streamedVideo}}" type="video/mp4">
{{lang.inventory.modal.videonotavaliable}}
</video>
Expand Down
2 changes: 0 additions & 2 deletions templates/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ <h5 class="modal-title"><img src={{weapon.tier}} height="28px" width="28px"> {{w
<video width=100% controls>
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'cdn.val.qq.com')}}"
type="video/mp4">
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'val.cdn.bili33.top')}}"
type="video/mp4">
<source src="{{level.streamedVideo}}" type="video/mp4">
{{lang.library.modal.videonotavaliable}}
</video>
Expand Down
4 changes: 0 additions & 4 deletions templates/myMarket.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ <h5 class="modal-title"><img src={{weapon.tier}} height="28px" width="28px"> {{w
<video id="{{level.streamedVideo}}" width=100% controls>
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'cdn.val.qq.com')}}"
type="video/mp4">
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'val.cdn.bili33.top')}}"
type="video/mp4">
<source src="{{level.streamedVideo}}" type="video/mp4">
{{lang.market.modal.videonotavaliable}}
</video>
Expand Down Expand Up @@ -206,8 +204,6 @@ <h5 class="modal-title"><img src={{weapon.tier}} height="28px" width="28px"> {{w
<video id="{{level.streamedVideo}}" width=100% controls>
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'cdn.val.qq.com')}}"
type="video/mp4">
<source src="{{level.streamedVideo|replace('valorant.dyn.riotcdn.net', 'cdn.val.bili33.top')}}"
type="video/mp4">
<source src="{{level.streamedVideo}}" type="video/mp4">
{{lang.nightmarket.modal.videonotavaliable}}
</video>
Expand Down
11 changes: 5 additions & 6 deletions utils/Register.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ def library(app: Flask, request: Request, lang):
level['displayName'] = level['displayName'].replace(name, '').replace('\n', '').replace(
'(', '').replace(')', '').replace(' / ', '').replace('/', '/').replace('(', '').replace(')', '').replace(':', '').replace(' - ', '').replace('。', '')
for descr in dict(description_to_del).values():
for subdescr in descr:
level['displayName'] = level['displayName'].replace(
subdescr, '')
level['displayName'] = level['displayName'].replace(
descr, '')
try:
if level['levelItem'] == None:
level['levelItem'] = levelup_info['EEquippableSkinLevelItem::VFX']
Expand All @@ -280,6 +279,7 @@ def library(app: Flask, request: Request, lang):
levelup_info['level'] + ' 5', '') # Clear out extra level symbols
weapon_list.append(
{"name": name, "img": base_img, "levels": levels, "chromas": chromas, "unlock": unlock, "tier": tier_img})
print(json.dumps(weapon_list))
return render_template('library.html', weapon_list=weapon_list,
lang=yaml.load(transtable, Loader=yaml.FullLoader),
search=True, query=request.form.get('query'), pc=pc)
Expand Down Expand Up @@ -457,9 +457,8 @@ def inventory(app: Flask, request: Request, lang):
level['displayName'] = level['displayName'].replace(name, '').replace('\n', '').replace(
'(', '').replace(')', '').replace(' / ', '').replace('/', '/').replace('(', '').replace(')', '').replace(':', '').replace(' - ', '').replace('。', '')
for descr in dict(description_to_del).values():
for subdescr in descr:
level['displayName'] = level['displayName'].replace(
subdescr, '')
level['displayName'] = level['displayName'].replace(
descr, '')
try:
if level['levelItem'] == None:
level['levelItem'] = levelup_info['EEquippableSkinLevelItem::VFX']
Expand Down
4 changes: 1 addition & 3 deletions utils/Weapon.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ def __init__(self, uuid: str, name: str, cost: int = 0, discount: int = 0, disco
level['displayName'] = level['displayName'].replace(self.name, '').replace('\n', '').replace(
'(', '').replace(')', '').replace(' / ', '').replace('/', '/').replace('(', '').replace(')', '').replace(':', '').replace(' - ', '').replace('。', '')
for descr in dict(description_to_del).values():
for subdescr in descr:
level['displayName'] = level['displayName'].replace(
subdescr, '')
level['displayName'] = level['displayName'].replace(descr, '')
try:
if level['levelItem'] == None:
level['levelItem'] = levelup_info['EEquippableSkinLevelItem::VFX']
Expand Down

0 comments on commit d6c747b

Please sign in to comment.