cutechicken commited on
Commit
5f52cd3
Β·
verified Β·
1 Parent(s): aca7698

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +19 -17
game.js CHANGED
@@ -1032,23 +1032,7 @@ class Fighter {
1032
  window.gameInstance.notifyMissilesOfFlare(flare);
1033
  }
1034
  }
1035
- console.log('Enemy deployed flares!');
1036
-
1037
- // 적이 ν”Œλ ˆμ–΄λ₯Ό μ‚¬μš©ν–ˆμ„ λ•Œ μŒμ„± μž¬μƒ (μΆ”κ°€)
1038
- if (window.gameInstance) {
1039
- try {
1040
- const flareVoice = new Audio('sounds/voice_flare_a.ogg');
1041
- flareVoice.volume = 0.8;
1042
- flareVoice.play().catch(e => {
1043
- console.log('Flare voice failed to play:', e);
1044
- });
1045
- } catch (e) {
1046
- console.log('Flare voice error:', e);
1047
- }
1048
-
1049
- // μžλ§‰ ν‘œμ‹œ
1050
- window.gameInstance.showSubtitle('The enemy evaded the missile using flares!', 4000);
1051
- }
1052
 
1053
 
1054
  // ν”Œλ ˆμ–΄ λ°œμ‚¬μŒ
@@ -2672,7 +2656,25 @@ class EnemyFighter {
2672
  }
2673
  }
2674
 
 
 
2675
  console.log('Enemy deployed flares!');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2676
  }
2677
 
2678
  calculateAimAccuracy(target) {
 
1032
  window.gameInstance.notifyMissilesOfFlare(flare);
1033
  }
1034
  }
1035
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1036
 
1037
 
1038
  // ν”Œλ ˆμ–΄ λ°œμ‚¬μŒ
 
2656
  }
2657
  }
2658
 
2659
+ }
2660
+
2661
  console.log('Enemy deployed flares!');
2662
+
2663
+ // 적이 ν”Œλ ˆμ–΄λ₯Ό μ‚¬μš©ν–ˆμ„ λ•Œ μŒμ„± μž¬μƒ
2664
+ if (window.gameInstance) {
2665
+ try {
2666
+ const flareVoice = new Audio('sounds/voice_flare_a.ogg');
2667
+ flareVoice.volume = 0.8;
2668
+ flareVoice.play().catch(e => {
2669
+ console.log('Flare voice failed to play:', e);
2670
+ });
2671
+ } catch (e) {
2672
+ console.log('Flare voice error:', e);
2673
+ }
2674
+
2675
+ // μžλ§‰ ν‘œμ‹œ
2676
+ window.gameInstance.showSubtitle('The enemy evaded the missile using flares!', 4000);
2677
+ }
2678
  }
2679
 
2680
  calculateAimAccuracy(target) {